From 6468e05decaeec84a85f05f93765a14c88b9369c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 23 Nov 2015 14:27:28 +0100 Subject: [PATCH] =?utf8?q?GoBD:=20Steuerschl=C3=BCssel=20richtig=20setzen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit tax_amount ist als Steuerindikator nur für GL Buchungen verfügbar --- SL/GoBD.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/GoBD.pm b/SL/GoBD.pm index ac2767825..af2fe38f3 100644 --- a/SL/GoBD.pm +++ b/SL/GoBD.pm @@ -438,7 +438,7 @@ sub do_datev_csv_export { my $is_payment = any { $_->{link} =~ m{A[PR]_paid} } @{ $transaction }; my ($soll, $haben) = map { $transaction->[$_] } ($transaction->[0]->{amount} > 0 ? (1, 0) : (0, 1)); - my $tax = defined($soll->{tax_amount}) ? $soll : defined($haben->{tax_amount}) ? $haben : {}; + my $tax = defined($soll->{tax_accno}) ? $soll : defined($haben->{tax_accno}) ? $haben : {}; my $amount = defined($soll->{net_amount}) ? $soll : $haben; $haben->{notes} = ($haben->{memo} || $soll->{memo}) if $haben->{memo} || $soll->{memo}; $haben->{notes} //= ''; -- 2.20.1