diff options
Diffstat (limited to 'LedgerSMB/IS.pm')
-rwxr-xr-x | LedgerSMB/IS.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/LedgerSMB/IS.pm b/LedgerSMB/IS.pm index c1594338..a04a6dcf 100755 --- a/LedgerSMB/IS.pm +++ b/LedgerSMB/IS.pm @@ -354,7 +354,8 @@ sub invoice_details { push(@{ $form->{linetotal} }, $form->{"linetotal_$i"}); @taxaccounts = Tax::init_taxes( - $form, $form->{"taxaccounts_$i"}); + $form, $form->{"taxaccounts_$i"}, + $form->{"taxaccounts"}); my $ml = 1; my @taxrates = (); @@ -950,7 +951,8 @@ sub post_invoice { my $linetotal = $form->round_amount($amount, 2); $fxdiff += $amount - $linetotal; @taxaccounts = Tax::init_taxes( - $form, $form->{"taxaccounts_$i"}); + $form, $form->{"taxaccounts_$i"}, + $form->{"taxaccounts"}); $ml = 1; $tax = Math::BigFloat->bzero(); $fxtax = Math::BigFloat->bzero(); |