Arreglado bug en fiscal data (card.reload)

This commit is contained in:
gerard 2018-07-18 12:00:06 +02:00
parent 1542e38746
commit 9dd817c384
1 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,9 @@ export default class Controller {
} }
submit() { submit() {
if (this.isEqualizated != this.client.isEqualizated)
this.client.hasToInvoiceByAddress = false;
return this.$.watcher.submit().then( return this.$.watcher.submit().then(
() => this.checkEtChanges()); () => this.checkEtChanges());
} }
@ -44,7 +47,6 @@ export default class Controller {
res => { res => {
if (res.data) { if (res.data) {
this.vnApp.showMessage(this.translate.instant('Equivalent tax spreaded')); this.vnApp.showMessage(this.translate.instant('Equivalent tax spreaded'));
this.card.reload();
} }
} }
); );