From 2b36e231155cdc8d2cc4c0fe2b515237bf40bf45 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Mon, 6 Jan 2014 19:16:39 +0100 Subject: [PATCH] Bug #2042 - Unterschiedliche Anzeige Debitorenbuchung/Kreditorenbuchung es wurde ein nie gesetztes $taxincluded benutzt, um $form->{taxincluded} zu setzen. In AR und AP. behebt #2042 --- SL/AP.pm | 3 +-- SL/AR.pm | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/SL/AP.pm b/SL/AP.pm index 9215ab710..8c49bb35f 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -703,7 +703,7 @@ sub setup_form { my ($self, $form, $for_post_payments) = @_; my ($exchangerate, $i, $j, $k, $key, $akey, $ref, $index, $taxamount, $totalamount, $totaltax, $totalwithholding, $withholdingrate, - $taxincluded, $tax, $diff); + $tax, $diff); # forex $form->{forex} = $form->{exchangerate}; @@ -807,7 +807,6 @@ sub setup_form { } } - $form->{taxincluded} = $taxincluded if ($form->{id}); $form->{paidaccounts} = 1 if not defined $form->{paidaccounts}; if ($form->{taxincluded} && $form->{taxrate} && $totalamount) { diff --git a/SL/AR.pm b/SL/AR.pm index adffeb6bc..80fc8ef7a 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -638,7 +638,7 @@ sub setup_form { my ($self, $form, $for_post_payments) = @_; my ($exchangerate, $akey, $j, $k, $index, $taxamount, $totaltax, $taxrate, $diff, $totalwithholding, $withholdingrate, - $totalamount, $taxincluded, $tax); + $totalamount, $tax); # forex $form->{forex} = $form->{exchangerate}; @@ -722,7 +722,6 @@ sub setup_form { } } - $form->{taxincluded} = $taxincluded if ($form->{id}); $form->{paidaccounts} = 1 if not defined $form->{paidaccounts}; if ($form->{taxincluded} && $form->{taxrate} && $totalamount) { -- 2.20.1