diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-01-22 19:13:37 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-01-22 19:13:37 +0000 |
commit | 42ec42a631927438a50a865a2c02401b28ac5473 (patch) | |
tree | 25c8b505685db71d341b408ff0ee9cd0a8bc5b87 | |
parent | ddd8cead26cf16d7bb844eabd3a287931b3aefc1 (diff) |
Fixing bug 1618938
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@756 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | LedgerSMB/CP.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LedgerSMB/CP.pm b/LedgerSMB/CP.pm index 4d9e6d22..c56762f5 100755 --- a/LedgerSMB/CP.pm +++ b/LedgerSMB/CP.pm @@ -516,13 +516,13 @@ sub post_payment { # update AR/AP transaction $query = qq| UPDATE $form->{arap} - SET paid = $amount, - datepaid = '$form->{datepaid}' - WHERE id = $form->{"id_$i"}|; + SET paid = ?, + datepaid = ? + WHERE id = ?|; $sth = $dbh->prepare($query); $sth->execute( - $amount, $$form->{datepaid}, $form->{"id_$i"}) + $amount, $form->{datepaid}, $form->{"id_$i"}) || $form->dberror($query, 'CP.pm', 530); |