Swiss QR-Bill: Datenbankupgrade Mandantenkonfiguration: Varianten einstellbar machen
authorCem Aydin <cem.aydin@gmx.ch>
Mon, 10 Jan 2022 18:20:38 +0000 (19:20 +0100)
committerCem Aydin <cem.aydin@gmx.ch>
Wed, 19 Jan 2022 22:15:25 +0000 (23:15 +0100)
SL/DB/MetaSetup/Default.pm
sql/Pg-upgrade2/defaults_qrbill_variants.sql [new file with mode: 0644]

index 516f292..c422bab 100644 (file)
@@ -46,7 +46,7 @@ __PACKAGE__->meta->columns(
   contact_departments_use_textfield         => { type => 'boolean' },
   contact_titles_use_textfield              => { type => 'boolean' },
   create_part_if_not_found                  => { type => 'boolean', default => 'false' },
-  create_qrbill_invoices                    => { type => 'boolean' },
+  create_qrbill_invoices                    => { type => 'integer' },
   create_zugferd_invoices                   => { type => 'integer' },
   currency_id                               => { type => 'integer', not_null => 1 },
   customer_hourly_rate                      => { type => 'numeric', precision => 8, scale => 2 },
diff --git a/sql/Pg-upgrade2/defaults_qrbill_variants.sql b/sql/Pg-upgrade2/defaults_qrbill_variants.sql
new file mode 100644 (file)
index 0000000..622e708
--- /dev/null
@@ -0,0 +1,6 @@
+-- @tag: defaults_qrbill_variants
+-- @description: Varianten für QR-Rechnung Auswahl
+-- @depends: defaults_create_qrbill_data
+ALTER TABLE defaults
+ALTER COLUMN create_qrbill_invoices TYPE INTEGER
+USING create_qrbill_invoices::INTEGER;