From: Philip Reetz
Date: Mon, 16 Jan 2006 13:47:08 +0000 (+0000)
Subject: Kleiner Bug bei Splittbuchungen
X-Git-Tag: release-2.4.0^2~384
X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9566fde47ff880d29c7ecce635bd58f330561030;p=kivitendo-erp.git
Kleiner Bug bei Splittbuchungen
---
diff --git a/SL/AP.pm b/SL/AP.pm
index 8be0c8f81..2a486c882 100644
--- a/SL/AP.pm
+++ b/SL/AP.pm
@@ -142,14 +142,7 @@ sub post_transaction {
# amount for total AP
$form->{payables} = $form->{invtotal};
- print(STDERR $form->{payables},
- " Payables\n",
- $form->{invtotal},
- " Invtotal\n",
- $form->{netamount},
- " Netamount\n",
- $form->{total_tax},
- " Total_Tax\n\n");
+
my ($query, $sth);
# if we have an id delete old records
diff --git a/SL/AR.pm b/SL/AR.pm
index e3e363191..aeb6430b0 100644
--- a/SL/AR.pm
+++ b/SL/AR.pm
@@ -113,8 +113,8 @@ sub post_transaction {
$form->{netamount} += $form->{"amount_$i"};
} else {
$form->{"tax_$i"} = $form->{"amount_$i"} * $form->{"taxrate_$i"};
- $form->{"tax_$i"} =
- $form->round_amount($form->{"tax_$i"} * $form->{exchangerate}, 2);
+ $form->{"tax_$i"} = $form->round_amount($form->{"tax_$i"} * $form->{exchangerate}, 2);
+ $form->{netamount} += $form->{"amount_$i"};
}
}
$form->{total_tax} += $form->{"tax_$i"};