From ee4f84f3d72f184180405336fd9f98dbe5a15cbc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Sat, 15 Jun 2019 10:12:02 +0200 Subject: [PATCH] Dialogbuchungen aus Bankimport nicht stornieren MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Die acc_trans_ids werden hier auch noch gelöscht und neu geschrieben. Die Verknüpfungs-Info gehen entsprechend kaputt. Solange die Periode noch nicht geschlossen ist, ist ein Neuverbuchen der Bankbewegung wesentlich sinnvoller. --- bin/mozilla/gl.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index be52827d8..8f512329a 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -994,8 +994,9 @@ sub setup_gl_action_bar { action => [ t8('Storno'), submit => [ '#form', { action => 'storno' } ], confirm => t8('Do you really want to cancel this general ledger transaction?'), - disabled => !$form->{id} ? t8('This general ledger transaction has not been posted yet.') - : $form->{storno} ? t8('A canceled general ledger transaction cannot be canceled again.') + disabled => !$form->{id} ? t8('This general ledger transaction has not been posted yet.') + : $form->{storno} ? t8('A canceled general ledger transaction cannot be canceled again.') + : $is_linked_bank_transaction ? t8('This transaction is linked with a bank transaction. Please undo and redo the bank transaction booking if needed.') : undef, ], action => [ t8('Delete'), -- 2.20.1