Vorgaben bei Neuinstallation auf sinnvollere Werte geändert.
[kivitendo-erp.git] / sql / Pg-upgrade2 / buchungsgruppen_sortkey.sql
index 6405591..c78ee89 100644 (file)
@@ -6,3 +6,7 @@ CREATE SEQUENCE tmp_counter;
 UPDATE buchungsgruppen SET sortkey = nextval('tmp_counter');
 DROP SEQUENCE tmp_counter;
 ALTER TABLE buchungsgruppen ALTER COLUMN sortkey SET NOT NULL;
+
+-- 'Standard 16%/19%' als ersten Eintrag. Der ermäßigte Umsatzsteuersatz wird seltener verwendet.
+UPDATE buchungsgruppen SET sortkey=2  WHERE description='Standard 7%';
+UPDATE buchungsgruppen SET sortkey=1  WHERE description='Standard 16%/19%';