Swiss QR-Bill: Datenbankupgrade Invoice/ar: Option Rechnung ohne Betrag hinzugefügt
authorCem Aydin <cem.aydin@gmx.ch>
Thu, 3 Feb 2022 20:52:49 +0000 (21:52 +0100)
committerCem Aydin <cem.aydin@gmx.ch>
Thu, 17 Feb 2022 20:55:18 +0000 (21:55 +0100)
SL/DB/MetaSetup/Invoice.pm
sql/Pg-upgrade2/ar_add_qrbill_without_amount.sql [new file with mode: 0644]

index 441f9c5..e80b110 100644 (file)
@@ -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 (file)
index 0000000..15a1602
--- /dev/null
@@ -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;