diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-05-16 22:42:00 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-05-16 22:42:00 +0000 |
commit | 548dc78f88283aedc11c00c9a02a4aef3839a6aa (patch) | |
tree | 3c8e4d6f2c18f14203cba0daf40c25ed82178727 /bin | |
parent | 306ed2c5325bc20d2b5974ae1fc80b4ce71cf20b (diff) |
Correcting incorrect subtotals on AR/AP transaction screen.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2148 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rw-r--r-- | bin/aa.pl | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -54,8 +54,11 @@ if ( -f "bin/custom/$form->{login}_aa.pl" ) { eval { require "bin/custom/$form->{login}_aa.pl"; }; } +my $is_update; + 1; + # end of main # this is for our long dates @@ -694,7 +697,7 @@ qq|<td><input name="description_$i" size=40 value="$form->{"description_$i"}"></ } foreach $item ( split / /, $form->{taxaccounts} ) { - if($form->{"calctax_$item"}){ + if($form->{"calctax_$item"} && $is_update){ $form->{invtotal} += $form->{"tax_$item"}; } $form->{"calctax_$item"} = @@ -937,7 +940,7 @@ sub form_footer { sub update { my $display = shift; - + $is_update = 1; if ( !$display ) { $form->{invtotal} = 0; |