From 59cc34f4f2d1b4dcac75056b882296fe4ffa4376 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 23 Jul 2019 09:15:28 +0200 Subject: [PATCH] =?utf8?q?Kontoauszug=20verbuchen=20r=C3=BCckg=C3=A4ngig:?= =?utf8?q?=20Mitarbeiter=20in=20history=20protokollieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/BankTransaction.pm | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.20.1