From af48dd83471ff17ff3d463904f674704e4d1cdad Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sat, 1 Sep 2007 07:37:21 +0000 Subject: 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 --- bin/aa.pl | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'bin') 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|