X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44..53593baa211863fbf66540cf1bcc36c8fb37257f:/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..246292afd
--- /dev/null
+++ b/sql/Pg-upgrade2/inventory_fix_shippingdate_assemblies.sql
@@ -0,0 +1,5 @@
+-- @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
+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);
