From bb3d5273f86685ce93ca009d36df9646b8bf855c Mon Sep 17 00:00:00 2001 From: tetragon Date: Tue, 14 Nov 2006 07:37:31 +0000 Subject: Fix variable call for vendor invoices with tax included git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@591 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/IR.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm index 8c79ee64..0f97bba6 100755 --- a/LedgerSMB/IR.pm +++ b/LedgerSMB/IR.pm @@ -35,6 +35,7 @@ package IR; use LedgerSMB::Tax; use LedgerSMB::PriceMatrix; use LedgerSMB::Sysconfig; +use Math::BigFloat; sub post_invoice { @@ -227,7 +228,7 @@ sub post_invoice { \@taxaccounts, $form, $linetotal, 1); $form->{"sellprice_$i"} - -= $amount / $form{"qty_$i"}; + -= $amount / $form->{"qty_$i"}; } else { $tax += $amount = Tax::calculate_taxes( \@taxaccounts, $form, $linetotal, 0); -- cgit v1.2.3