Revision 2c33e93f
Von Jan Büren vor mehr als 6 Jahren hinzugefügt
SL/Controller/BankTransaction.pm | ||
---|---|---|
890 | 890 |
'form_defaults.transdate' => $self->transaction->transdate_as_date, |
891 | 891 |
'form_defaults.callback' => $self->callback, |
892 | 892 |
'form_defaults.bt_id' => $self->transaction->id, |
893 |
'form_defaults.bt_chart_id' => $self->transaction->local_bank_account->chart->id, |
|
893 | 894 |
); |
894 | 895 |
} |
895 | 896 |
|
bin/mozilla/gl.pl | ||
---|---|---|
917 | 917 |
my $copy2credit = $i == 1 ? 'onkeyup="copy_debit_to_credit()"' : ''; |
918 | 918 |
my $balance = $form->format_amount(\%::myconfig, $balances{$accno_id} // 0, 2, 'DRCR'); |
919 | 919 |
|
920 |
# if we have a bt_chart_id we disallow changing the amount of the bank account |
|
921 |
if ($form->{bt_chart_id}) { |
|
922 |
$debitreadonly = $creditreadonly = "readonly" if ($form->{"accno_id_$i"} eq $form->{bt_chart_id}); |
|
923 |
$copy2credit = '' if $i == 1; # and disallow copy2credit |
|
924 |
} |
|
925 |
|
|
920 | 926 |
print qq|<tr valign=top> |
921 | 927 |
$accno |
922 | 928 |
<td id="chart_balance_$i" align="right">${balance}</td> |
templates/webpages/gl/form_footer.html | ||
---|---|---|
21 | 21 |
<hr size="3" noshade> |
22 | 22 |
<input name=callback type=hidden value="[% callback %]"> |
23 | 23 |
<input name=bt_id type=hidden value="[% bt_id %]"> |
24 |
<input name=bt_chart_id type=hidden value="[% bt_chart_id %]"> |
|
24 | 25 |
|
25 | 26 |
[%- IF id && follow_ups.size %] |
26 | 27 |
<p>[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size , follow_ups_due) %]</p> |
Auch abrufbar als: Unified diff
Dialogbuchen, Betrag aus Kontoauszug verbuchen schreibschützen (Maske)
Als Konsequenz aus dem vorherigen Commit, sollte der Benutzer
erstmal nicht fröhlich Freitext-Werte in das Feld füllen.