From e8a1c1904ce520922508e715404cbcf4de2ec9a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 15 Mar 2022 07:08:37 +0100 Subject: [PATCH] Kreditorenbeleg reverse Charge 94 in Dialog-B mit korrektem Vz buchen --- SL/AP.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.20.1