From: Sven Schöling Date: Mon, 23 Nov 2015 16:50:01 +0000 (+0100) Subject: GoBD: credit/debit_amount formatieren X-Git-Tag: release-3.5.4~1947 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=43e21b93333a9a8a40fa4561a6fbf716132340cb;p=kivitendo-erp.git GoBD: credit/debit_amount formatieren --- diff --git a/SL/GoBD.pm b/SL/GoBD.pm index 40998a2de..7fbc2714a 100644 --- a/SL/GoBD.pm +++ b/SL/GoBD.pm @@ -448,9 +448,6 @@ sub do_datev_csv_export { $haben->{notes} //= ''; $haben->{notes} = SL::HTML::Util->strip($haben->{notes}); - my $net_amount = defined $amount->{net_amount} - ? $::form->format_amount($myconfig, abs($amount->{net_amount}), 5) - : 0; my $tax_amount = defined $amount->{net_amount} ? $::form->format_amount($myconfig, abs($amount->{amount}) - abs($amount->{net_amount}), 5) : 0; @@ -459,11 +456,11 @@ sub do_datev_csv_export { amount => $::form->format_amount($myconfig, abs($amount->{amount}),5), debit_accno => $soll->{accno}, debit_accname => $soll->{accname}, - debit_amount => -$soll->{amount}, + debit_amount => $::form->format_amount($myconfig, abs(-$soll->{amount}),5), debit_tax => $soll->{tax_accno} ? $tax_amount : 0, credit_accno => $haben->{accno}, credit_accname => $haben->{accname}, - credit_amount => $haben->{amount}, + credit_amount => $::form->format_amount($myconfig, abs($haben->{amount}),5),, credit_tax => $haben->{tax_accno} ? $tax_amount : 0, tax => $tax_amount, notes => $haben->{notes},