From: Sven Schöling Date: Mon, 31 Jan 2022 21:46:14 +0000 (+0100) Subject: DO: order_type beim initialen anlegen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~216^2~12 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=34c4dde3534bc8deeacf9a6a23cdb56de2e89b13;p=kivitendo-erp.git DO: order_type beim initialen anlegen --- diff --git a/SL/DO.pm b/SL/DO.pm index 14d61a1d4..ac3f34bd9 100644 --- a/SL/DO.pm +++ b/SL/DO.pm @@ -333,8 +333,8 @@ sub _save { $query = qq|SELECT nextval('id')|; ($form->{id}) = selectrow_query($form, $dbh, $query); - $query = qq|INSERT INTO delivery_orders (id, donumber, employee_id, currency_id, taxzone_id) VALUES (?, '', ?, (SELECT currency_id FROM defaults LIMIT 1), ?)|; - do_query($form, $dbh, $query, $form->{id}, conv_i($form->{employee_id}), $form->{taxzone_id}); + $query = qq|INSERT INTO delivery_orders (id, donumber, employee_id, currency_id, taxzone_id, order_type) VALUES (?, '', ?, (SELECT currency_id FROM defaults LIMIT 1), ?, ?)|; + do_query($form, $dbh, $query, $form->{id}, conv_i($form->{employee_id}), $form->{taxzone_id}, SALES_DELIVERY_ORDER_TYPE); } my $project_id;