From: Bernd Bleßmann Date: Thu, 18 Jun 2020 11:51:44 +0000 (+0200) Subject: Lieferdatum in Einkaufsrechnung erfassen können X-Git-Tag: release-3.5.6.1~176 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=517ed14d9733e94411274bd2b9fb59cef9e632ff;p=kivitendo-erp.git Lieferdatum in Einkaufsrechnung erfassen können Das DB-Feld gab es schon, wurde aber nicht befüllt. --- diff --git a/SL/IR.pm b/SL/IR.pm index aec03dcc7..402454d17 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -730,10 +730,10 @@ SQL # save AP record $query = qq|UPDATE ap SET - invnumber = ?, ordnumber = ?, quonumber = ?, transdate = ?, - orddate = ?, quodate = ?, vendor_id = ?, amount = ?, - netamount = ?, paid = ?, duedate = ?, - invoice = ?, taxzone_id = ?, notes = ?, taxincluded = ?, + invnumber = ?, ordnumber = ?, quonumber = ?, transdate = ?, + orddate = ?, quodate = ?, vendor_id = ?, amount = ?, + netamount = ?, paid = ?, duedate = ?, deliverydate = ?, + invoice = ?, taxzone_id = ?, notes = ?, taxincluded = ?, intnotes = ?, storno_id = ?, storno = ?, cp_id = ?, employee_id = ?, department_id = ?, delivery_term_id = ?, currency_id = (SELECT id FROM currencies WHERE name = ?), @@ -742,7 +742,7 @@ SQL @values = ( $form->{invnumber}, $form->{ordnumber}, $form->{quonumber}, conv_date($form->{invdate}), conv_date($form->{orddate}), conv_date($form->{quodate}), conv_i($form->{vendor_id}), $amount, - $netamount, $form->{paid}, conv_date($form->{duedate}), + $netamount, $form->{paid}, conv_date($form->{duedate}), conv_date($form->{deliverydate}), '1', $taxzone_id, $restricter->process($form->{notes}), $form->{taxincluded} ? 't' : 'f', $form->{intnotes}, conv_i($form->{storno_id}), $form->{storno} ? 't' : 'f', conv_i($form->{cp_id}), conv_i($form->{employee_id}), conv_i($form->{department_id}), conv_i($form->{delivery_term_id}), @@ -999,7 +999,7 @@ sub retrieve_invoice { # retrieve invoice $query = qq|SELECT cp_id, invnumber, transdate AS invdate, duedate, - orddate, quodate, globalproject_id, + orddate, quodate, deliverydate, globalproject_id, ordnumber, quonumber, paid, taxincluded, notes, taxzone_id, storno, gldate, mtime, itime, intnotes, (SELECT cu.name FROM currencies cu WHERE cu.id=ap.currency_id) AS currency, direct_debit, diff --git a/templates/webpages/ir/form_header.html b/templates/webpages/ir/form_header.html index 4389cd1b8..5b983c975 100644 --- a/templates/webpages/ir/form_header.html +++ b/templates/webpages/ir/form_header.html @@ -153,6 +153,9 @@ + + [% 'Delivery Date' | $T8 %] + [% L.date_tag('deliverydate', deliverydate) %] [% 'Order Number' | $T8 %]