log and other fixes

This commit is contained in:
Ricsi
2017-02-14 19:04:49 +01:00
parent 8e31db7ef1
commit 7080ef002c
6 changed files with 19 additions and 9 deletions

View File

@@ -273,13 +273,13 @@ if (isset($_POST['action'])) {
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);
log::register('new_mox', $_POST['mox_item'] . ": " . $_POST['mox_sum'] . " Ft");
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']);
log::register('update_mox', $_POST['mox_item'] . ": " . $_POST['mox_sum'] . " Ft");
header("Location: /admin/money_expense");
case 'settings_data_edit':
$sql->update_table('setting_value',