From 4c7c23a02f4b4544a76a3f0abff53d5114ba81bb Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sat, 7 Jul 2007 18:48:43 +0000 Subject: Applying Victor Sterpu's fix to bug 1748895 Fixing bareword error with pos.conf.pl Adding Victor to contributors file git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1353 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/IR.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'LedgerSMB/IR.pm') diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm index ff0b2704..f3008ef3 100644 --- a/LedgerSMB/IR.pm +++ b/LedgerSMB/IR.pm @@ -406,6 +406,8 @@ sub post_invoice { $form->update_balance( $dbh, "invoice", "allocated", qq|id = $ref->{id}|, $qty * -1 ); + $form->update_balance( $dbh, "invoice", "allocated", + qq|id =$invoice_id|,$qty); $allocated += $qty; @@ -1411,4 +1413,4 @@ sub toggle_on_hold { } } -1; \ No newline at end of file +1; -- cgit v1.2.3