From: Jan Büren Date: Tue, 23 Jul 2019 07:15:28 +0000 (+0200) Subject: Kontoauszug verbuchen rückgängig: Mitarbeiter in history protokollieren X-Git-Tag: release-3.5.4~21 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=59cc34f4f2d1b4dcac75056b882296fe4ffa4376;p=kivitendo-erp.git Kontoauszug verbuchen rückgängig: Mitarbeiter in history protokollieren --- diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index 98639ff0f..844dad521 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -803,6 +803,14 @@ sub action_unlink_bank_transaction { $bank_transaction->invoice_amount(0); $bank_transaction->cleared(0); $bank_transaction->save; + # 6. and add a log entry in history_erp + SL::DB::History->new( + trans_id => $bank_transaction->id, + snumbers => 'bank_transaction_unlink_' . $bank_transaction->id, + employee_id => SL::DB::Manager::Employee->current->id, + what_done => 'bank_transaction', + addition => 'UNLINKED', + )->save(); 1;