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

@@ -258,6 +258,30 @@ if (isset($_POST['action'])) {
log::register('update_money_deposit', $tmp_user->get_uk_name() . ': ' . $_POST['mod_sum']. ' Ft (' . $_POST['mod_date'] . ')');
header("Location: /admin/money_deposit");
break;
case 'moxc_create':
# befizetés kategória létrehozása
$new_moxc_id = money_expense_category::create_money_expense_category($_POST['moxc_name']);
log::register('new_moxc', $new_moxc_id);
header("Location: /admin/money_expense_category");
break;
case 'moxc_update':
# befizetés kategória módosítása
money_expense_category::update_money_expense_category($_POST['moxc_name'], $_POST['moxc_id']);
log::register('update_moxc', $_POST['moxc_id']);
header("Location: /admin/money_expense_category");
break;
case 'mox_create':
# befizetés létrehozása
$new_mox_id = money_expense::create_money_expense($_POST['mox_name'], $_POST['mox_date'], $_POST['mox_item'], $_POST['mox_sum'], $_POST['mox_moxc_id']);
log::register('new_mox', $new_mox_id);
header("Location: /admin/money_expense");
break;
case 'mox_update':
# befizetés módosítása
money_expense::update_money_expense($_POST['mox_name'], $_POST['mox_date'], $_POST['mox_item'], $_POST['mox_sum'], $_POST['mox_moxc_id'], $_POST['mox_id']);
log::register('update_mox', $_POST['mox_id']);
header("Location: /admin/money_expense");
break;
default:
# code...
break;