From: Jan Büren Date: Wed, 11 Nov 2020 12:16:16 +0000 (+0100) Subject: Revert "Dialogbuchen: automatisches Kopieren des Betrags entfernt" X-Git-Tag: kivitendo-mebil_0.1-0~9^2~646 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=835777a9dbf5209178b93b80ad5bb0fdbc9b670a;p=kivitendo-erp.git Revert "Dialogbuchen: automatisches Kopieren des Betrags entfernt" Aufgrund von vielfachen Kundenwunsch ... This reverts commit 6755770b9e487756da69b7e0dcc6efb88513170e. --- 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' %] - + +