From ce32ffc24b04ffb332f62418055df48744277c17 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Mon, 16 Jul 2007 02:36:21 +0000 Subject: Final changes to credit/debit invoices git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1401 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/IR.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm index 3c44df45..e2de66a3 100644 --- a/LedgerSMB/IR.pm +++ b/LedgerSMB/IR.pm @@ -467,6 +467,7 @@ sub post_invoice { for $i ( 1 .. $form->{paidaccounts} ) { $form->{"paid_$i"} = $form->parse_amount( $myconfig, $form->{"paid_$i"} ); + $form->{"paid_$i"} *= -1 if $form->{reverse}; $form->{paid} += $form->{"paid_$i"}; $form->{datepaid} = $form->{"datepaid_$i"} if ( $form->{"datepaid_$i"} ); -- cgit v1.2.3