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