From 835777a9dbf5209178b93b80ad5bb0fdbc9b670a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 11 Nov 2020 13:16:16 +0100 Subject: [PATCH] Revert "Dialogbuchen: automatisches Kopieren des Betrags entfernt" Aufgrund von vielfachen Kundenwunsch ... This reverts commit 6755770b9e487756da69b7e0dcc6efb88513170e. --- bin/mozilla/gl.pl | 6 ++++-- templates/webpages/gl/form_header.html | 10 +++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 6f49848fc..256fe1162 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -922,18 +922,20 @@ sub display_rows { my $projectnumber_hidden = qq| |; - my $balance = $form->format_amount(\%::myconfig, $balances{$accno_id} // 0, 2, 'DRCR'); + my $copy2credit = $i == 1 ? 'onkeyup="copy_debit_to_credit()"' : ''; + my $balance = $form->format_amount(\%::myconfig, $balances{$accno_id} // 0, 2, 'DRCR'); # if we have a bt_chart_id we disallow changing the amount of the bank account if ($form->{bt_chart_id}) { $debitreadonly = $creditreadonly = "readonly" if ($form->{"accno_id_$i"} eq $form->{bt_chart_id}); + $copy2credit = '' if $i == 1; # and disallow copy2credit } print qq| $accno ${balance} $fx_transaction - + $form->{"tax_$i"} $tax_ddbox|; diff --git a/templates/webpages/gl/form_header.html b/templates/webpages/gl/form_header.html index 8a53cab2b..b021909bd 100644 --- a/templates/webpages/gl/form_header.html +++ b/templates/webpages/gl/form_header.html @@ -6,7 +6,15 @@ [%- INCLUDE 'common/flash.html' %] - + + -- 2.20.1