From: Sven Schöling Date: Wed, 28 Oct 2015 13:26:34 +0000 (+0100) Subject: GDPDU: Behandlung von steuerfreien Werten im Export X-Git-Tag: release-3.5.4~1972 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5975ee0704c54c7c804f22952e9877821d470726;p=kivitendo-erp.git GDPDU: Behandlung von steuerfreien Werten im Export --- diff --git a/SL/GDPDU.pm b/SL/GDPDU.pm index 36ddebf45..71721130e 100644 --- a/SL/GDPDU.pm +++ b/SL/GDPDU.pm @@ -412,7 +412,7 @@ sub do_datev_csv_export { debit_accname => $soll->{accname}, credit_accno => $haben->{accno}, credit_accname => $haben->{accname}, - tax => abs($amount->{amount}) - abs($amount->{net_amount}), + tax => defined $amount->{net_amount} ? abs($amount->{amount}) - abs($amount->{net_amount}) : 0, notes => $haben->{notes}, (map { ($_ => $tax->{$_}) } qw(taxkey tax_accname tax_accno)), (map { ($_ => ($haben->{$_} // $soll->{$_})) } qw(acc_trans_id invnumber name vcnumber transdate)),