Revision 2a968d9a
Von Jan Büren vor mehr als 6 Jahren hinzugefügt
SL/Controller/BankTransaction.pm | ||
---|---|---|
28 | 28 |
|
29 | 29 |
use List::UtilsBy qw(partition_by); |
30 | 30 |
use List::MoreUtils qw(any); |
31 |
use List::MoreUtils qw(any none); |
|
32 | 31 |
use List::Util qw(max); |
33 | 32 |
|
34 | 33 |
use Rose::Object::MakeMethods::Generic |
... | ... | |
129 | 128 |
$open_invoice->{skonto_type} = 'without_skonto'; |
130 | 129 |
foreach (@{ $sepa_export_items_by_id{ $open_invoice->id } || [] }) { |
131 | 130 |
my $factor = ($_->ar_id == $open_invoice->id ? 1 : -1); |
132 |
$open_invoice->{realamount} = $::form->format_sellprice($open_invoice->amount*$factor); |
|
131 |
$open_invoice->{realamount} = $::form->format_amount(\%::myconfig,$open_invoice->amount*$factor,2); |
|
132 |
|
|
133 | 133 |
$open_invoice->{skonto_type} = $_->payment_type; |
134 | 134 |
$sepa_exports{$_->sepa_export_id} ||= { count => 0, is_ar => 0, amount => 0, proposed => 0, invoices => [], item => $_ }; |
135 | 135 |
$sepa_exports{$_->sepa_export_id}->{count}++; |
Auch abrufbar als: Unified diff
Ergänzung zum cherry-pick von gerade format_sellprice ist nicht in Form.pm
Ferner doppelt gepickte Bibliothek entfernt.