From: Jan Büren Date: Tue, 15 Mar 2022 06:08:37 +0000 (+0100) Subject: Kreditorenbeleg reverse Charge 94 in Dialog-B mit korrektem Vz buchen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~83 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e8a1c1904ce520922508e715404cbcf4de2ec9a6;p=kivitendo-erp.git Kreditorenbeleg reverse Charge 94 in Dialog-B mit korrektem Vz buchen --- 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