From 2a968d9a736ca12c04a4878128bdb85ec27f47b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 4 Jul 2018 12:29:19 +0200 Subject: [PATCH] =?utf8?q?Erg=C3=A4nzung=20zum=20cherry-pick=20von=20gerad?= =?utf8?q?e=20format=5Fsellprice=20ist=20nicht=20in=20Form.pm?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Ferner doppelt gepickte Bibliothek entfernt. --- SL/Controller/BankTransaction.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index 6b51c2463..ff391eaa9 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -28,7 +28,6 @@ use SL::DBUtils qw(like); use List::UtilsBy qw(partition_by); use List::MoreUtils qw(any); -use List::MoreUtils qw(any none); use List::Util qw(max); use Rose::Object::MakeMethods::Generic @@ -129,7 +128,8 @@ sub action_list { $open_invoice->{skonto_type} = 'without_skonto'; foreach (@{ $sepa_export_items_by_id{ $open_invoice->id } || [] }) { my $factor = ($_->ar_id == $open_invoice->id ? 1 : -1); - $open_invoice->{realamount} = $::form->format_sellprice($open_invoice->amount*$factor); + $open_invoice->{realamount} = $::form->format_amount(\%::myconfig,$open_invoice->amount*$factor,2); + $open_invoice->{skonto_type} = $_->payment_type; $sepa_exports{$_->sepa_export_id} ||= { count => 0, is_ar => 0, amount => 0, proposed => 0, invoices => [], item => $_ }; $sepa_exports{$_->sepa_export_id}->{count}++; -- 2.20.1