diff --git a/db/changes/10490-august/01-updateClientHasInvoiceElectronic.sql b/db/changes/10490-august/01-updateClientHasInvoiceElectronic.sql
deleted file mode 100644
index b8e42a62d..000000000
--- a/db/changes/10490-august/01-updateClientHasInvoiceElectronic.sql
+++ /dev/null
@@ -1,6 +0,0 @@
-UPDATE
- vn.client
-SET
- hasInvoiceElectronic = TRUE
-WHERE
- businessTypeFk = 'officialOrganism';
\ No newline at end of file
diff --git a/db/changes/10503-november/00-ACL_notification_InvoiceE.sql b/db/changes/10503-november/00-ACL_notification_InvoiceE.sql
index 4aa9d2518..660efc41e 100644
--- a/db/changes/10503-november/00-ACL_notification_InvoiceE.sql
+++ b/db/changes/10503-november/00-ACL_notification_InvoiceE.sql
@@ -1,2 +1,2 @@
-INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
+INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
VALUES ('NotificationQueue','*','*','ALLOW','ROLE','employee');
diff --git a/db/changes/10490-august/00-clientHasInvoiceElectronic.sql b/db/changes/10503-november/00-clientHasInvoiceElectronic.sql
similarity index 66%
rename from db/changes/10490-august/00-clientHasInvoiceElectronic.sql
rename to db/changes/10503-november/00-clientHasInvoiceElectronic.sql
index eef537c03..21f68c9ca 100644
--- a/db/changes/10490-august/00-clientHasInvoiceElectronic.sql
+++ b/db/changes/10503-november/00-clientHasInvoiceElectronic.sql
@@ -1,7 +1,7 @@
ALTER TABLE
`vn`.`client`
ADD
- COLUMN `hasInvoiceElectronic` TINYINT(1) NOT NULL DEFAULT 0 COMMENT 'Registro de facturas mediante FACe'
+ COLUMN `hasElectronicInvoice` TINYINT(1) NOT NULL DEFAULT 0 COMMENT 'Registro de facturas mediante FACe'
AFTER
`hasInvoiceSimplified`;
diff --git a/db/changes/10503-november/00-update-client-invoiceE.sql b/db/changes/10503-november/00-update-client-invoiceE.sql
index c07167b38..16e7c076d 100644
--- a/db/changes/10503-november/00-update-client-invoiceE.sql
+++ b/db/changes/10503-november/00-update-client-invoiceE.sql
@@ -1,3 +1,3 @@
UPDATE `vn`.`client`
-set hasInvoiceElectronic = TRUE
+set hasElectronicInvoice = TRUE
where buisnessTypeFk = 'officialOrganism'
\ No newline at end of file
diff --git a/db/changes/10503-november/01-updateClientHasInvoiceElectronic.sql b/db/changes/10503-november/01-updateClientHasInvoiceElectronic.sql
new file mode 100644
index 000000000..af1c8ca9a
--- /dev/null
+++ b/db/changes/10503-november/01-updateClientHasInvoiceElectronic.sql
@@ -0,0 +1,6 @@
+UPDATE
+ `vn`.`client`
+SET
+ hasElectronicInvoice = TRUE
+WHERE
+ businessTypeFk = 'officialOrganism';
\ No newline at end of file
diff --git a/modules/client/back/methods/client/updateFiscalData.js b/modules/client/back/methods/client/updateFiscalData.js
index 26db525af..fdd8c4c15 100644
--- a/modules/client/back/methods/client/updateFiscalData.js
+++ b/modules/client/back/methods/client/updateFiscalData.js
@@ -101,7 +101,7 @@ module.exports = Self => {
type: 'boolean'
},
{
- arg: 'hasInvoiceElectronic',
+ arg: 'hasElectronicInvoice',
type: 'boolean'
}
],
diff --git a/modules/client/back/models/client.json b/modules/client/back/models/client.json
index cc9c41fd3..c66072f4d 100644
--- a/modules/client/back/models/client.json
+++ b/modules/client/back/models/client.json
@@ -143,7 +143,7 @@
"salesPersonFk": {
"type": "number"
},
- "hasInvoiceElectronic": {
+ "hasElectronicInvoice": {
"type": "boolean"
}
diff --git a/modules/client/front/fiscal-data/index.html b/modules/client/front/fiscal-data/index.html
index d32df9a8b..88586cff7 100644
--- a/modules/client/front/fiscal-data/index.html
+++ b/modules/client/front/fiscal-data/index.html
@@ -1,112 +1,52 @@
-
+
-
+
-
+
-
+
-
+
-
-
+
\ No newline at end of file
diff --git a/modules/ticket/front/card/index.js b/modules/ticket/front/card/index.js
index a8ac269e6..fa4ad4e39 100644
--- a/modules/ticket/front/card/index.js
+++ b/modules/ticket/front/card/index.js
@@ -36,7 +36,7 @@ class Controller extends ModuleCard {
'email',
'phone',
'mobile',
- 'hasInvoiceElectronic',
+ 'hasElectronicInvoice',
],
include: {
relation: 'salesPersonUser',
diff --git a/modules/ticket/front/descriptor-menu/index.js b/modules/ticket/front/descriptor-menu/index.js
index b9fd5e6fe..f10e059ad 100644
--- a/modules/ticket/front/descriptor-menu/index.js
+++ b/modules/ticket/front/descriptor-menu/index.js
@@ -66,7 +66,7 @@ class Controller extends Section {
'email',
'phone',
'mobile',
- 'hasInvoiceElectronic',
+ 'hasElectronicInvoice',
],
include: {
relation: 'salesPersonUser',
@@ -252,7 +252,7 @@ class Controller extends Section {
*/
const client = this.ticket.client;
- if (client.hasInvoiceElectronic) {
+ if (client.hasElectronicInvoice) {
this.$http.post(`NotificationQueues`, {
notificationFk: 'invoiceElectronic',
authorFk: client.id,
diff --git a/modules/ticket/front/descriptor/index.js b/modules/ticket/front/descriptor/index.js
index cae419bac..aaaad423e 100644
--- a/modules/ticket/front/descriptor/index.js
+++ b/modules/ticket/front/descriptor/index.js
@@ -40,7 +40,7 @@ class Controller extends Descriptor {
'isActive',
'isFreezed',
'isTaxDataChecked',
- 'hasInvoiceElectronic',
+ 'hasElectronicInvoice',
],
include: {
relation: 'salesPersonUser',