Revision 835777a9
Von Jan Büren vor mehr als 3 Jahren hinzugefügt
bin/mozilla/gl.pl | ||
---|---|---|
922 | 922 |
my $projectnumber_hidden = qq| |
923 | 923 |
<input type="hidden" name="project_id_$i" value="$form->{"project_id_$i"}">|; |
924 | 924 |
|
925 |
my $balance = $form->format_amount(\%::myconfig, $balances{$accno_id} // 0, 2, 'DRCR'); |
|
925 |
my $copy2credit = $i == 1 ? 'onkeyup="copy_debit_to_credit()"' : ''; |
|
926 |
my $balance = $form->format_amount(\%::myconfig, $balances{$accno_id} // 0, 2, 'DRCR'); |
|
926 | 927 |
|
927 | 928 |
# if we have a bt_chart_id we disallow changing the amount of the bank account |
928 | 929 |
if ($form->{bt_chart_id}) { |
929 | 930 |
$debitreadonly = $creditreadonly = "readonly" if ($form->{"accno_id_$i"} eq $form->{bt_chart_id}); |
931 |
$copy2credit = '' if $i == 1; # and disallow copy2credit |
|
930 | 932 |
} |
931 | 933 |
|
932 | 934 |
print qq|<tr valign=top> |
933 | 935 |
$accno |
934 | 936 |
<td id="chart_balance_$i" align="right">${balance}</td> |
935 | 937 |
$fx_transaction |
936 |
<td><input name="debit_$i" size="8" value="$form->{"debit_$i"}" accesskey=$i $debitreadonly></td> |
|
938 |
<td><input name="debit_$i" size="8" value="$form->{"debit_$i"}" accesskey=$i $copy2credit $debitreadonly></td>
|
|
937 | 939 |
<td><input name="credit_$i" size=8 value="$form->{"credit_$i"}" $creditreadonly></td> |
938 | 940 |
<td><input type="hidden" name="tax_$i" value="$form->{"tax_$i"}">$form->{"tax_$i"}</td> |
939 | 941 |
$tax_ddbox|; |
Auch abrufbar als: Unified diff
Revert "Dialogbuchen: automatisches Kopieren des Betrags entfernt"
Aufgrund von vielfachen Kundenwunsch ...
This reverts commit 6755770b9e487756da69b7e0dcc6efb88513170e.