X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9b80a8600018ead72806798fedf3a35c3ee519cd..6468e05decaeec84a85f05f93765a14c88b9369c:/SL/GoBD.pm 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} //= '';