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

@@ -2,7 +2,9 @@
if ($this->is_id()) {
$sql->update_table('money_expense', array('mox_deleted' => 1), array('mox_id' => $this->get_id()));
log::register('delete_mox', $this->get_id());
$mox = new money_expense();
$mox->set_mox_data_by_id($this->get_id());
log::register('delete_mox', $mox->get_mox_item() . ": " . $mox->get_mox_sum() . " Ft");
header("Location: /admin/money_expense");
}