X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/78f615a41212683647d9c1f0900b300598235a41..8c0ca780fb11393d2fff7633b947af8fad0749b8:/sql/Pg-upgrade2/defaults_advance_payment_transfer_charts.sql

diff --git a/sql/Pg-upgrade2/defaults_advance_payment_transfer_charts.sql b/sql/Pg-upgrade2/defaults_advance_payment_transfer_charts.sql
index 9205e2eba..f77b2578e 100644
--- a/sql/Pg-upgrade2/defaults_advance_payment_transfer_charts.sql
+++ b/sql/Pg-upgrade2/defaults_advance_payment_transfer_charts.sql
@@ -1,10 +1,12 @@
 -- @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 chart set link ='AR' where id = (select advance_payment_clearing_chart_id from defaults);
+
 
 DO $$
 BEGIN
