]> wagnertech.de Git - mfinanz.git/commitdiff
Bug #2042 - Unterschiedliche Anzeige Debitorenbuchung/Kreditorenbuchung
authorG. Richardson <information@kivitendo-premium.de>
Mon, 6 Jan 2014 18:16:39 +0000 (19:16 +0100)
committerG. Richardson <information@kivitendo-premium.de>
Mon, 6 Jan 2014 18:18:34 +0000 (19:18 +0100)
es wurde ein nie gesetztes $taxincluded benutzt, um $form->{taxincluded}
zu setzen. In AR und AP.

behebt #2042

SL/AP.pm
SL/AR.pm

index 9215ab710d47797979051f35d053dda893353726..8c49bb35fd99157fdad14337af8e24c2f9422e22 100644 (file)
--- 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) {
index adffeb6bc677cb7d132919789c3348965c559196..80fc8ef7a8dddedf571f48d9113d10f83db06cdb 100644 (file)
--- 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) {