projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72b10ce
)
Kontoauszug verbuchen rückgängig: Mitarbeiter in history protokollieren
author
Jan Büren
<jan@kivitendo.de>
Tue, 23 Jul 2019 07:15:28 +0000
(09:15 +0200)
committer
Jan Büren
<jan@kivitendo.de>
Tue, 23 Jul 2019 07:15:28 +0000
(09:15 +0200)
SL/Controller/BankTransaction.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/BankTransaction.pm
b/SL/Controller/BankTransaction.pm
index
98639ff
..
844dad5
100644
(file)
--- 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;