X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ac06e2571cc2b87554121de241df13a94406a27b..e8a1c1904ce520922508e715404cbcf4de2ec9a6:/SL/AP.pm diff --git a/SL/AP.pm b/SL/AP.pm index 6912c551b..2e3bbd6db 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -463,12 +463,12 @@ sub _reverse_charge { imported => 0, # not imported taxincluded => 0, )->add_chart_booking( - chart => $tmptaxamount < 0 ? $credit : $debit, - credit => abs($tmptaxamount), + chart => $tmptaxamount > 0 ? $debit : $credit, + debit => abs($tmptaxamount), source => "Reverse Charge for " . $form->{invnumber}, )->add_chart_booking( - chart => $tmptaxamount < 0 ? $debit : $credit, - debit => abs($tmptaxamount), + chart => $tmptaxamount > 0 ? $credit : $debit, + credit => abs($tmptaxamount), source => "Reverse Charge for " . $form->{invnumber}, )->post; # add a stable link from ap to gl