create missing invoices (#247)

This commit is contained in:
Fredrik Ringqvist
2022-01-14 10:55:27 +01:00
committed by GitHub
parent 119d55da2e
commit cbffaaeee7
+3
View File
@@ -0,0 +1,3 @@
INSERT INTO invoices (inserted, order_id)
(SELECT orders.inserted, orders.id FROM orders WHERE orders.id > 798717 and orders.payment_type = 'agreement' order by orders.id);