BankTransaction/list: vorhandene sepa_export_items an get_agreement übergeben
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 28 Mar 2018 09:35:17 +0000 (11:35 +0200)
committerJan Büren <jan@kivitendo-premium.de>
Mon, 9 Jul 2018 09:54:05 +0000 (11:54 +0200)
Conflicts:
SL/Controller/BankTransaction.pm

SL/Controller/BankTransaction.pm

index ff391ea..c8738d8 100644 (file)
@@ -182,9 +182,10 @@ sub action_list {
     # score is stored in $bt->{agreement}
 
     foreach my $open_invoice (@all_open_invoices) {
-      ($open_invoice->{agreement}, $open_invoice->{rule_matches}) = $bt->get_agreement_with_invoice($open_invoice);
-      $open_invoice->{realamount} = $::form->format_amount(\%::myconfig,
-                                      $open_invoice->amount * ($open_invoice->{is_ar} ? 1 : -1), 2);
+      ($open_invoice->{agreement}, $open_invoice->{rule_matches}) = $bt->get_agreement_with_invoice($open_invoice,
+        sepa_export_items => $all_open_sepa_export_items,
+      );
+      $open_invoice->{realamount} = $::form->format_sellprice($open_invoice->amount * ($open_invoice->{is_ar} ? 1 : -1));
     }
 
     my $agreement = 15;