diff --git a/db/changes/10490-august/00-clientHasInvoiceElectronic.sql b/db/changes/10490-august/00-clientHasInvoiceElectronic.sql new file mode 100644 index 000000000..eef537c03 --- /dev/null +++ b/db/changes/10490-august/00-clientHasInvoiceElectronic.sql @@ -0,0 +1,8 @@ +ALTER TABLE + `vn`.`client` +ADD + COLUMN `hasInvoiceElectronic` TINYINT(1) NOT NULL DEFAULT 0 COMMENT 'Registro de facturas mediante FACe' +AFTER + `hasInvoiceSimplified`; + +-- sería más correcto hasElectronicInvoice pero ya existe un campo hasInvoiceSimplified \ No newline at end of file diff --git a/db/changes/10490-august/01-updateClientHasInvoiceElectronic.sql b/db/changes/10490-august/01-updateClientHasInvoiceElectronic.sql new file mode 100644 index 000000000..b8e42a62d --- /dev/null +++ b/db/changes/10490-august/01-updateClientHasInvoiceElectronic.sql @@ -0,0 +1,6 @@ +UPDATE + vn.client +SET + hasInvoiceElectronic = TRUE +WHERE + businessTypeFk = 'officialOrganism'; \ No newline at end of file