From bde97469a3c19ef4ecb34c95dbf40d9d622093d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Thu, 27 Aug 2020 17:14:16 +0200 Subject: [PATCH] =?utf8?q?Auslagern=20=C3=BCber=20VK-Rechnung,=20Erweiteru?= =?utf8?q?ng=20um=20Abgleich=20Seriennummer=20=3D=3D=20Charge?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Option in Mandantenkonfiguration->Lager --- SL/DB/MetaSetup/Default.pm | 1 + sql/Pg-upgrade2/transfer_out_serial_charge_number.sql | 4 ++++ templates/webpages/client_config/_warehouse.html | 10 ++++++++++ 3 files changed, 15 insertions(+) create mode 100644 sql/Pg-upgrade2/transfer_out_serial_charge_number.sql diff --git a/SL/DB/MetaSetup/Default.pm b/SL/DB/MetaSetup/Default.pm index fe3e5f7b5..7a4b5de5d 100644 --- a/SL/DB/MetaSetup/Default.pm +++ b/SL/DB/MetaSetup/Default.pm @@ -141,6 +141,7 @@ __PACKAGE__->meta->columns( sales_delivery_order_show_delete => { type => 'boolean', default => 'true' }, sales_order_show_delete => { type => 'boolean', default => 'true' }, sales_purchase_order_ship_missing_column => { type => 'boolean', default => 'false' }, + sales_serial_eq_charge => { type => 'boolean', default => 'false', not_null => 1 }, sdonumber => { type => 'text' }, sepa_creditor_id => { type => 'text' }, sepa_reference_add_vc_vc_id => { type => 'boolean', default => 'false' }, diff --git a/sql/Pg-upgrade2/transfer_out_serial_charge_number.sql b/sql/Pg-upgrade2/transfer_out_serial_charge_number.sql new file mode 100644 index 000000000..07a766705 --- /dev/null +++ b/sql/Pg-upgrade2/transfer_out_serial_charge_number.sql @@ -0,0 +1,4 @@ +-- @tag: transfer_out_serial_charge_number +-- @description: Feld für das Feature "VK-Seriennummer ist Lager-Chargennummer". +-- @depends: release_3_5_6 +ALTER TABLE defaults ADD COLUMN sales_serial_eq_charge BOOLEAN NOT NULL DEFAULT FALSE; diff --git a/templates/webpages/client_config/_warehouse.html b/templates/webpages/client_config/_warehouse.html index 5758acc53..3cc28efa0 100644 --- a/templates/webpages/client_config/_warehouse.html +++ b/templates/webpages/client_config/_warehouse.html @@ -80,6 +80,16 @@ [% LxERP.t8('Transfer out all items of a sales invoice when posting it. Items are transfered out acording to the settings above.') %] + + [% LxERP.t8('Match Sales Invoice Serial numbers with inventory charge numbers?') %] + + [% L.yes_no_tag('defaults.sales_serial_eq_charge', SELF.defaults.sales_serial_eq_charge) %] + + + [% LxERP.t8('If one or more space separated serial numbers are assigned in a sales invoice, match the charge number of the inventory item. Assumes that Serial Number and Charge Number have 1:1 relation. Otherwise throw a error message for the default sales invoice transfer.') %] + + + [% LxERP.t8('Use default warehouse for assembly transfer') %] -- 2.20.1