diff options
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; |