From d3b34d77639878033fbcd3075b881666c573b06f Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 21 Dec 2007 07:13:22 +0000 Subject: correcting 1794077: Tax not included in subtotal in ar/ap transaction screens. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1995 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/aa.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/aa.pl b/bin/aa.pl index 1e10166f..7820af02 100755 --- a/bin/aa.pl +++ b/bin/aa.pl @@ -649,12 +649,14 @@ qq| |; } - foreach $item ( split / /, $form->{taxaccounts} ) { + if($form->{"calctax_$item"}){ + $form->{invtotal} += $form->{"tax_$item"}; + } $form->{"calctax_$item"} = ( $form->{"calctax_$item"} ) ? "checked" : ""; - + $form->{"tax_$item"} = $form->format_amount( \%myconfig, $form->{"tax_$item"}, 2 ); print qq| -- cgit v1.2.3