From: Cem Aydin Date: Thu, 3 Feb 2022 20:52:49 +0000 (+0100) Subject: Swiss QR-Bill: Datenbankupgrade Invoice/ar: Option Rechnung ohne Betrag hinzugefügt X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~191 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5ae5002ce91e4104517e4ed9c90d9eb2a48046a6;p=kivitendo-erp.git Swiss QR-Bill: Datenbankupgrade Invoice/ar: Option Rechnung ohne Betrag hinzugefügt --- diff --git a/SL/DB/MetaSetup/Invoice.pm b/SL/DB/MetaSetup/Invoice.pm index 441f9c590..e80b110e4 100644 --- a/SL/DB/MetaSetup/Invoice.pm +++ b/SL/DB/MetaSetup/Invoice.pm @@ -44,6 +44,7 @@ __PACKAGE__->meta->columns( ordnumber => { type => 'text' }, paid => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 }, payment_id => { type => 'integer' }, + qrbill_without_amount => { type => 'boolean', default => 'false' }, quodate => { type => 'date' }, quonumber => { type => 'text' }, salesman_id => { type => 'integer' }, diff --git a/sql/Pg-upgrade2/ar_add_qrbill_without_amount.sql b/sql/Pg-upgrade2/ar_add_qrbill_without_amount.sql new file mode 100644 index 000000000..15a1602db --- /dev/null +++ b/sql/Pg-upgrade2/ar_add_qrbill_without_amount.sql @@ -0,0 +1,6 @@ +-- @tag: ar_add_qrbill_without_amount +-- @description: Spalte für QR-Rechnung ohne Betrag +-- @depends: release_3_5_8 +ALTER TABLE ar ADD COLUMN qrbill_without_amount boolean; +ALTER TABLE ar ALTER COLUMN qrbill_without_amount SET DEFAULT FALSE; +UPDATE ar SET qrbill_without_amount = FALSE;