Revision 75f484cf
Von Sven Donath vor mehr als 14 Jahren hinzugefügt
sql/Pg-upgrade2/buchungsgruppen_sortkey.sql | ||
---|---|---|
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%';
|
sql/lx-office.sql | ||
---|---|---|
-- Name: defaults; Type: TABLE DATA; Schema: public; Owner: postgres
|
||
--
|
||
|
||
INSERT INTO "defaults" ("version") VALUES ('2.4.0.0');
|
||
|
||
INSERT INTO "defaults" ("version", "curr") VALUES ('2.4.0.0', 'EUR:USD');
|
||
|
||
--
|
||
-- Data for TOC entry 204 (OID 1982194)
|
||
... | ... | |
-- Name: units; Type: TABLE DATA; Schema: public; Owner: postgres
|
||
--
|
||
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('mg', NULL, NULL, 'dimension');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('g', 'mg', 1000.00000, 'dimension');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('kg', 'g', 1000.00000, 'dimension');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('t', 'kg', 1000.00000, 'dimension');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('ml', NULL, NULL, 'dimension');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('L', 'ml', 1000.00000, 'dimension');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('Stck', NULL, NULL, 'dimension');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('min', NULL, 0.00000, 'service');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('Std', 'min', 60.00000, 'service');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('Tag', 'Std', 8.00000, 'service');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('psch', NULL, 0.00000, 'service');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('Tag', 'Std', 8.00000, 'service');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('Std', 'min', 60.00000, 'service');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('min', NULL, 0.00000, 'service');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('t', 'kg', 1000.00000, 'dimension');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('kg', 'g', 1000.00000, 'dimension');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('g', 'mg', 1000.00000, 'dimension');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('mg', NULL, NULL, 'dimension');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('L', 'ml', 1000.00000, 'dimension');
|
||
INSERT INTO units (name, base_unit, factor, "type") VALUES ('ml', NULL, NULL, 'dimension');
|
||
|
||
|
||
--
|
Auch abrufbar als: Unified diff
Vorgaben bei Neuinstallation auf sinnvollere Werte geändert.
Das sind: * "Stck" statt "mg" an erste Stelle. Alle anderen von groß nach klein sortiert * "EUR:USD" als Vorgabe für Währungen. * "Standard 16%/19%" Buchungsgruppe an erste Stelle gesetzt
Alle Änderungen sollen den Start nach der Neuinstallation vereinfachen und
bei Updates nichts verändern.