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 9215ab7..8c49bb3 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 adffeb6..80fc8ef 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) {