Revision da6ff55e
Von Jan Büren vor fast 8 Jahren hinzugefügt
SL/Controller/BankTransaction.pm | ||
---|---|---|
my ($self, $template) = @_;
|
||
|
||
return $self->url_for(
|
||
controller => 'ap.pl',
|
||
action => 'load_record_template',
|
||
id => $template->id,
|
||
'form_defaults.amount_1' => $::form->format_amount(\%::myconfig, -1 * $self->transaction->amount, 2),
|
||
'form_defaults.transdate' => $self->transaction->transdate_as_date,
|
||
'form_defaults.duedate' => $self->transaction->transdate_as_date,
|
||
'form_defaults.datepaid_1' => $self->transaction->transdate_as_date,
|
||
'form_defaults.paid_1' => $::form->format_amount(\%::myconfig, -1 * $self->transaction->amount, 2),
|
||
'form_defaults.currency' => $self->transaction->currency->name,
|
||
'form_defaults.AP_paid_1' => $self->transaction->local_bank_account->chart->accno,
|
||
'form_defaults.callback' => $self->callback,
|
||
controller => 'ap.pl',
|
||
action => 'load_record_template',
|
||
id => $template->id,
|
||
'form_defaults.amount_1' => $::form->format_amount(\%::myconfig, -1 * $self->transaction->amount, 2),
|
||
'form_defaults.transdate' => $self->transaction->transdate_as_date,
|
||
'form_defaults.duedate' => $self->transaction->transdate_as_date,
|
||
'form_defaults.no_payment_bookings' => 1,
|
||
'form_defaults.paid_1_suggestion' => $::form->format_amount(\%::myconfig, -1 * $self->transaction->amount, 2),
|
||
'form_defaults.AP_paid_1_suggestion' => $self->transaction->local_bank_account->chart->accno,
|
||
'form_defaults.callback' => $self->callback,
|
||
);
|
||
}
|
||
|
bin/mozilla/ap.pl | ||
---|---|---|
$::form->{$_} = $form_defaults->{$_} for keys %{ $form_defaults // {} };
|
||
|
||
flash('info', $::locale->text("The record template '#1' has been loaded.", $template->template_name));
|
||
flash('info', $::locale->text("Payment bookings disallowed. After the booking this record may be
|
||
suggested with the amount of '#1' or otherwise has to be choosen manually.
|
||
No automatic payment booking will be done to chart '#2'.",
|
||
$form_defaults->{paid_1_suggestion},
|
||
$form_defaults->{AP_paid_1_suggestion},
|
||
)) if $::form->{no_payment_bookings};
|
||
|
||
update(
|
||
keep_rows_without_amount => 1,
|
templates/webpages/ap/form_header.html | ||
---|---|---|
</tr>
|
||
<tr>
|
||
<td>
|
||
[% UNLESS no_payment_bookings %]
|
||
<table width="100%">
|
||
<tr class="listheading">
|
||
<th class="listheading" colspan="7">[% 'Payments' | $T8 %]</th>
|
||
... | ... | |
<td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td>
|
||
</tr>
|
||
</table>
|
||
[% END %]
|
||
</td>
|
||
</tr>
|
||
</table>
|
Auch abrufbar als: Unified diff
behebt #243
Kontoauszug verbuchen: Buchung erstellen ist jetzt ein Schritt
Falls die Zahlung für die Buchung entsprechend passend ist, wird
diese automatisch im zweiten Schritt als Vorschlag angezeigt.
Entsprechende Info an den Benutzer.