1 -- @tag: sales_orders_recurring_billing_mode
2 -- @description: Verkaufsaufträge: Positionen wiederkehrender Rechnungen optional nur einmal oder gar nicht abrechnen
3 -- @depends: release_3_6_0
4 CREATE TYPE items_recurring_billing_mode AS ENUM ('never', 'once', 'always');
7 ADD COLUMN recurring_billing_mode items_recurring_billing_mode DEFAULT 'always' NOT NULL,
8 ADD COLUMN recurring_billing_invoice_id INTEGER,
9 ADD FOREIGN KEY (recurring_billing_invoice_id) REFERENCES ar (id) ON DELETE SET NULL;