From: Jan Büren Date: Wed, 18 May 2016 10:27:38 +0000 (+0200) Subject: fixt#165 shippingdates in inventory nachträglich setzen X-Git-Tag: release-3.4.1~138 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c32b4768eeda94d906abf14b40cd8252f9dab8d7;p=kivitendo-erp.git fixt#165 shippingdates in inventory nachträglich setzen --- diff --git a/sql/Pg-upgrade2/inventory_fix_shippingdate_assemblies.sql b/sql/Pg-upgrade2/inventory_fix_shippingdate_assemblies.sql new file mode 100644 index 000000000..64fbc7571 --- /dev/null +++ b/sql/Pg-upgrade2/inventory_fix_shippingdate_assemblies.sql @@ -0,0 +1,6 @@ +-- @tag: inventory_fix_shippingdate_assemblies +-- @description: Shippingdate für assemblies und assembly_items nachträglich wie itime setzen. +-- @depends: release_3_4_0 warehouse transfer_type_assembled +-- @encoding: utf-8 +update inventory set shippingdate = itime where comment ilike 'Verbraucht %' and shippingdate is null; +update inventory set shippingdate = itime where shippingdate is null and parts_id in (select id from parts where assembly);