diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-01 07:37:21 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-01 07:37:21 +0000 |
commit | af48dd83471ff17ff3d463904f674704e4d1cdad (patch) | |
tree | 3d611e2a0f5ed55660de1b9e9819e00a212af40b /bin | |
parent | 77970fbafc8727d6e4a4cd95ed14137b8985c6a4 (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.pl | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -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} ) { |