From: Waldemar Toews Date: Tue, 18 Mar 2014 14:58:29 +0000 (+0100) Subject: BUG-Fix: Rechnungsnummer in Kreditorenbuchung nicht mehr änderbar X-Git-Tag: release-3.2.0beta~479 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8b74179bbabd61a374ba84c1763ac5bef3422f03;p=kivitendo-erp.git BUG-Fix: Rechnungsnummer in Kreditorenbuchung nicht mehr änderbar Ändert man bei einer bestehenden Kreditorenbuchung die Rechnungsnummer, so wird nach dem Buchen diese Änderung nicht übernommen! Update SQL-Statement für Kreditorenbuchungen erweitert. fixt #2469 --- diff --git a/SL/AP.pm b/SL/AP.pm index eabf47112..cc7e06f94 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -174,13 +174,13 @@ sub post_transaction { } - $query = qq|UPDATE ap SET + $query = qq|UPDATE ap SET invnumber = ?, transdate = ?, ordnumber = ?, vendor_id = ?, taxincluded = ?, amount = ?, duedate = ?, paid = ?, netamount = ?, currency_id = (SELECT id FROM currencies WHERE name = ?), notes = ?, department_id = ?, storno = ?, storno_id = ?, globalproject_id = ?, direct_debit = ? WHERE id = ?|; - @values = (conv_date($form->{transdate}), + @values = ($form->{invnumber}, conv_date($form->{transdate}), $form->{ordnumber}, conv_i($form->{vendor_id}), $form->{taxincluded} ? 't' : 'f', $form->{invtotal}, conv_date($form->{duedate}), $form->{invpaid},