summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-14 07:37:31 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-14 07:37:31 +0000
commitbb3d5273f86685ce93ca009d36df9646b8bf855c (patch)
tree638b489d8173fdeb1105b6a655ace04db5ac6423 /LedgerSMB
parent90c7796c5639825eab784c01864b4734560510e2 (diff)
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
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/IR.pm3
1 files changed, 2 insertions, 1 deletions
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);