created money expense

This commit is contained in:
Ricsi
2017-02-11 22:42:44 +01:00
parent 73db6b620a
commit 08ed5a85d4
20 changed files with 814 additions and 4 deletions

View File

@@ -119,6 +119,23 @@ switch ($this->get_id()) {
$smarty->assign('user_kids', $user_kids);
$smarty->display('money_deposit_create.tpl');
break;
case 'money_expense':
# ÚJ KIADÁS
$moxc_assoc_array = $sql->assoc_array('SELECT * FROM money_expense_category WHERE moxc_deleted = 0 ORDER BY moxc_name ASC;');
$moxc_array = array();
foreach ($moxc_assoc_array as $key => $moxc) {
$new_moxc = new money_expense_category();
$new_moxc->set_moxc_data_by_id($moxc['moxc_id']);
$moxc_array[] = $new_moxc;
}
$smarty->assign('moxc_array', $moxc_array);
$smarty->display('money_expense_create.tpl');
break;
case 'money_expense_category':
# ÚJ KIADÁS KATEGÓRIA
$smarty->display('money_expense_category_create.tpl');
break;
default:
# code...