X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ad1f22cad05696d7bf9f8d8f5d7ec8a2c85ab2ac..c32b4768eeda94d906abf14b40cd8252f9dab8d7:/sql/Pg-upgrade2/inventory_fix_shippingdate_assemblies.sql

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);
