From 9dd817c384e25574d5e2745e2ec2a2665922f7a0 Mon Sep 17 00:00:00 2001 From: gerard Date: Wed, 18 Jul 2018 12:00:06 +0200 Subject: [PATCH] Arreglado bug en fiscal data (card.reload) --- client/client/src/fiscal-data/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/client/src/fiscal-data/index.js b/client/client/src/fiscal-data/index.js index 25417e4e7..2e42a59bc 100644 --- a/client/client/src/fiscal-data/index.js +++ b/client/client/src/fiscal-data/index.js @@ -26,6 +26,9 @@ export default class Controller { } submit() { + if (this.isEqualizated != this.client.isEqualizated) + this.client.hasToInvoiceByAddress = false; + return this.$.watcher.submit().then( () => this.checkEtChanges()); } @@ -44,7 +47,6 @@ export default class Controller { res => { if (res.data) { this.vnApp.showMessage(this.translate.instant('Equivalent tax spreaded')); - this.card.reload(); } } );