created money expense
This commit is contained in:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user