-- @tag: defaults_advance_payment_transfer_charts
-- @description: Standardkonten für erhaltene versteuerte Anzahlungen 7% und 19% setzen
--- @depends:new_chart_3260_1711 new_chart_3272_1718
+-- @depends:new_chart_3260_1711 new_chart_3272_1718 defaults_advance_payment_clearing_chart_id
ALTER TABLE defaults ADD COLUMN advance_payment_taxable_19_id INTEGER;
ALTER TABLE defaults ADD COLUMN advance_payment_taxable_7_id INTEGER;
+UPDATE charts set link ='AR' where id = (select advance_payment_clearing_chart_id from defaults);
+
DO $$
BEGIN