From: Cem Aydin Date: Mon, 10 Jan 2022 18:20:38 +0000 (+0100) Subject: Swiss QR-Bill: Datenbankupgrade Mandantenkonfiguration: Varianten einstellbar machen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~240 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cf17820bfb78e788898550988a5f4af4ccaa91a9;p=kivitendo-erp.git Swiss QR-Bill: Datenbankupgrade Mandantenkonfiguration: Varianten einstellbar machen --- diff --git a/SL/DB/MetaSetup/Default.pm b/SL/DB/MetaSetup/Default.pm index 516f2927e..c422bab6a 100644 --- a/SL/DB/MetaSetup/Default.pm +++ b/SL/DB/MetaSetup/Default.pm @@ -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 index 000000000..622e7084c --- /dev/null +++ b/sql/Pg-upgrade2/defaults_qrbill_variants.sql @@ -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;