summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-12-21 07:13:22 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-12-21 07:13:22 +0000
commitd3b34d77639878033fbcd3075b881666c573b06f (patch)
tree41b3dbaaf628889278791be74b4662261cbe526e
parentc3783dedcff1afc3f65f5d881e1b1769c93f33d5 (diff)
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
-rwxr-xr-xbin/aa.pl6
1 files changed, 4 insertions, 2 deletions
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|<td><input name="description_$i" size="40" value="$form->{"description_$i"}">
</tr>
|;
}
-
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|