diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-04-09 20:37:21 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-04-09 20:37:21 +0000 |
commit | 9717f09801fa4c963f338a97123b2fbbe9260f02 (patch) | |
tree | ba92c16e1f40e73f0900c60e58c32eca9c00e02f /bin/io.pl | |
parent | d3f27376d7ec8e8c157021189787dd1dff302479 (diff) |
All sales tax bugs fixed
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1045 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin/io.pl')
-rwxr-xr-x | bin/io.pl | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -508,7 +508,8 @@ sub item_selected { $amount = $form->{"sellprice_$i"} * (1 - $form->{"discount_$i"} / 100) * $form->{"qty_$i"}; for (split / /, $form->{"taxaccounts_$i"}) { $form->{"${_}_base"} += $amount } if (!$form->{taxincluded}) { - my @taxlist= Tax::init_taxes($form, $form->{"taxaccounts_$i"}); + my @taxlist= Tax::init_taxes($form, $form->{"taxaccounts_$i"}, + $form->{taxaccounts}); $amount += Tax::calculate_taxes(\@taxlist, $form, $amount, 0); } @@ -1222,7 +1223,6 @@ sub print { sub print_form { my ($old_form) = @_; - $inv = "inv"; $due = "due"; @@ -1370,7 +1370,6 @@ sub print_form { } else { IS->invoice_details(\%myconfig, \%$form); } - if (exists $form->{longformat}) { $form->{"${due}date"} = $duedate; for ("${inv}date", "${due}date", "shippingdate", "transdate") { $form->{$_} = $locale->date(\%myconfig, $form->{$_}, $form->{longformat}) } |