From 6ff13e1da44c956cccc9e429cf25a5848fa37e55 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20K=C3=B6hler?= Date: Mon, 16 Jan 2006 15:55:52 +0000 Subject: [PATCH] Merge von 780 aus unstable: Bugfix Splitbuchungen Kleiner Bug bei Splittbuchungen --- SL/AP.pm | 9 +-------- SL/AR.pm | 4 ++-- 2 files changed, 3 insertions(+), 10 deletions(-) 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"}; -- 2.20.1