Revision 835777a9
Von Jan Büren vor etwa 4 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|; |
templates/webpages/gl/form_header.html | ||
---|---|---|
6 | 6 |
|
7 | 7 |
[%- INCLUDE 'common/flash.html' %] |
8 | 8 |
|
9 |
<script type="text/javascript" src="js/show_form_details.js"></script> |
|
9 |
<script type="text/javascript"> |
|
10 |
<!-- |
|
11 |
function copy_debit_to_credit() { |
|
12 |
var txt = document.getElementsByName('debit_1')[0].value; |
|
13 |
document.getElementsByName('credit_2')[0].value = txt; |
|
14 |
}; |
|
15 |
//--> |
|
16 |
</script> |
|
17 |
<script type="text/javascript" src="js/show_form_details.js"></script> |
|
10 | 18 |
<script type="text/javascript" src="js/follow_up.js"></script> |
11 | 19 |
<script type="text/javascript" src="js/kivi.Draft.js"></script> |
12 | 20 |
|
Auch abrufbar als: Unified diff
Revert "Dialogbuchen: automatisches Kopieren des Betrags entfernt"
Aufgrund von vielfachen Kundenwunsch ...
This reverts commit 6755770b9e487756da69b7e0dcc6efb88513170e.