P5-4882 copy c/o to address2 field

This commit is contained in:
Martin Carlsson
2020-03-31 10:14:36 +02:00
committed by GitHub
parent be8fa4cd16
commit b4161a7524
+9
View File
@@ -0,0 +1,9 @@
-- P5-4882 Copy c/o to address2 field
-- copy co to address2
INSERT INTO "order-orders_fields" (orderid, fieldid, value)
SELECT orderid, 252, value FROM "order-orders_fields" WHERE fieldid = 155 AND value != '';
-- copy delivery-co to delivery-address2
INSERT INTO "order-orders_fields" (orderid, fieldid, value)
SELECT orderid, 253, value FROM "order-orders_fields" WHERE fieldid = 180 AND value != '';