From 9566fde47ff880d29c7ecce635bd58f330561030 Mon Sep 17 00:00:00 2001 From: Philip Reetz Date: Mon, 16 Jan 2006 13:47:08 +0000 Subject: [PATCH] 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