summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-01 07:37:21 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-01 07:37:21 +0000
commitaf48dd83471ff17ff3d463904f674704e4d1cdad (patch)
tree3d611e2a0f5ed55660de1b9e9819e00a212af40b /bin
parent77970fbafc8727d6e4a4cd95ed14137b8985c6a4 (diff)
Preventing AR-Transaction screen from calculating sales tax since it doesn't have enough info to do so safely.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1486 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rw-r--r--bin/aa.pl23
1 files changed, 0 insertions, 23 deletions
diff --git a/bin/aa.pl b/bin/aa.pl
index 4d8819e9..ce9f1ee8 100644
--- a/bin/aa.pl
+++ b/bin/aa.pl
@@ -998,7 +998,6 @@ sub update {
}
}
- # recalculate taxes
@taxaccounts = split / /, $form->{taxaccounts};
for (@taxaccounts) {
@@ -1007,28 +1006,6 @@ sub update {
}
@taxaccounts = Tax::init_taxes( $form, $form->{taxaccounts} );
- if ( $form->{taxincluded} ) {
- $totaltax =
- Tax::calculate_taxes( \@taxaccounts, $form, $form->{invtotal}, 1 );
- }
- else {
- $totaltax =
- Tax::calculate_taxes( \@taxaccounts, $form, $form->{invtotal}, 0 );
- }
- foreach $item (@taxaccounts) {
- $taccno = $item->account;
- if ( $form->{calctax} ) {
- $form->{"calctax_$taccno"} = 1;
- $form->{"tax_$taccno"} = $form->round_amount( $item->value, 2 );
- }
- $form->{"select$form->{ARAP}_tax_$taccno"} =
- qq|<option>$taccno--$form->{"${taccno}_description"}|;
- }
-
- $form->{invtotal} =
- ( $form->{taxincluded} )
- ? $form->{invtotal}
- : $form->{invtotal} + $totaltax;
$j = 1;
for $i ( 1 .. $form->{paidaccounts} ) {