Revision daa00fb8
SL/Controller/BankTransaction.pm | ||
---|---|---|
|
||
foreach my $open_invoice (@all_open_invoices) {
|
||
($open_invoice->{agreement}, $open_invoice->{rule_matches}) = $bt->get_agreement_with_invoice($open_invoice,
|
||
sepa_export_items => $all_open_sepa_export_items,
|
||
# sepa_export_items => $all_open_sepa_export_items,
|
||
);
|
||
$open_invoice->{realamount} = $::form->format_amount(\%::myconfig,
|
||
$open_invoice->amount * ($open_invoice->{is_ar} ? 1 : -1), 2);
|
SL/DB/BankTransaction.pm | ||
---|---|---|
|
||
|
||
sub get_agreement_with_invoice {
|
||
my ($self, $invoice, %params) = @_;
|
||
my ($self, $invoice) = @_;
|
||
|
||
carp "get_agreement_with_invoice needs an invoice object as its first argument"
|
||
unless ref($invoice) eq 'SL::DB::Invoice' or ref($invoice) eq 'SL::DB::PurchaseInvoice';
|
Auch abrufbar als: Unified diff
Hin- und Her: die parameter seis sind überhaupt nicht notwendig und ...
... waren es auch nie wirklich (macht es nur komplizierter)