diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-05-07 06:02:01 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-05-07 06:02:01 +0000 |
commit | f8f327d55e2c3bb14286ca4ac796917449f8cd3f (patch) | |
tree | 1228ded4a91f756e4dda6a69924bd0b2de16c0d2 /LedgerSMB/CP.pm | |
parent | 882f13b82286fc92d15efaa0a88919bb8febee1a (diff) |
Applying patch to bugs 1699718 and 1713439
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1145 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/CP.pm')
-rwxr-xr-x | LedgerSMB/CP.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/CP.pm b/LedgerSMB/CP.pm index 7d20ccc3..e7031353 100755 --- a/LedgerSMB/CP.pm +++ b/LedgerSMB/CP.pm @@ -499,7 +499,7 @@ sub post_payment { $form->{"paid_$i"} = $form->round_amount( $form->{"paid_$i"} * $exchangerate, 2 ); - $pth->execute( $form->{"id_$i"} ) || $form->dberror; + $pth->execute( $form->{"id_$i"} ) || $form->dberror($pth->statement); ($amount) = $pth->fetchrow_array; $pth->finish; @@ -774,7 +774,7 @@ sub post_payments { $paid = $form->round_amount( $paid * $exchangerate, 2 ); - $pth->execute( $form->{"id_$i"} ) || $form->dberror; + $pth->execute( $form->{"id_$i"} ) || $form->dberror($pth->statement); ($amount) = $pth->fetchrow_array; $pth->finish; |