summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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|