From 5975ee0704c54c7c804f22952e9877821d470726 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 28 Oct 2015 14:26:34 +0100 Subject: [PATCH] GDPDU: Behandlung von steuerfreien Werten im Export --- SL/GDPDU.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)), -- 2.20.1