diff options
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-x | LedgerSMB/IR.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm index 714acf61..709d5dcf 100755 --- a/LedgerSMB/IR.pm +++ b/LedgerSMB/IR.pm @@ -390,6 +390,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; |