]> wagnertech.de Git - mfinanz.git/blobdiff - SL/AP.pm
Verbesserungen in Upgrade-Scripten
[mfinanz.git] / SL / AP.pm
index 810a15e529dde57170709145d6ba3f3f1491b22d..ac12c29025d02e7ddf1233d1c68b44ea0fbe1b6f 100644 (file)
--- a/SL/AP.pm
+++ b/SL/AP.pm
@@ -184,7 +184,7 @@ sub post_transaction {
     $query = qq|UPDATE ap SET
                 invnumber = ?, transdate = ?, ordnumber = ?, vendor_id = ?, taxincluded = ?,
                 amount = ?, duedate = ?, paid = ?, netamount = ?,
-                curr = (SELECT id FROM currencies WHERE curr = ?), notes = ?, department_id = ?, storno = ?, storno_id = ?,
+                currency_id = (SELECT id FROM currencies WHERE name = ?), notes = ?, department_id = ?, storno = ?, storno_id = ?,
                 globalproject_id = ?, direct_debit = ?
                WHERE id = ?|;
     @values = ($form->{invnumber}, conv_date($form->{transdate}),