diff --git a/client/client/src/fiscal-data/index.html b/client/client/src/fiscal-data/index.html
index e526acb1d..561244586 100644
--- a/client/client/src/fiscal-data/index.html
+++ b/client/client/src/fiscal-data/index.html
@@ -100,7 +100,8 @@
+ field="$ctrl.client.isEqualizated"
+ info="In order to invoice, this field is not consulted, but the consignee's ET. When modifying this field if the invoice by address option is not checked, the change will be automatically propagated to all addresses, otherwise the user will be asked if he wants to propagate it or not.">
this.checkEtChanges());
@@ -37,17 +38,20 @@ export default class Controller {
let equals = this.isEqualizated == this.client.isEqualizated;
this.isEqualizated = this.client.isEqualizated;
- if (!equals)
+ if (!equals && !this.oldHasToInvoiceByAddress)
this.$.propagateIsEqualizated.show();
+ else if (!equals)
+ this.returnDialogEt('ACCEPT');
+
+ delete this.oldHasToInvoiceByAddress;
}
returnDialogEt(response) {
if (response === 'ACCEPT') {
this.$http.patch(`/client/api/Clients/${this.client.id}/addressesPropagateRe`, {isEqualizated: this.client.isEqualizated}).then(
res => {
- if (res.data) {
+ if (res.data)
this.vnApp.showMessage(this.translate.instant('Equivalent tax spreaded'));
- }
}
);
}
diff --git a/client/client/src/fiscal-data/locale/es.yml b/client/client/src/fiscal-data/locale/es.yml
index 4b6e97e3f..a427c100d 100644
--- a/client/client/src/fiscal-data/locale/es.yml
+++ b/client/client/src/fiscal-data/locale/es.yml
@@ -1,4 +1,5 @@
Yes, notify: Sí, notificar
You changed the equalization tax: Has cambiado el recargo de equivalencia
Do you want to spread the change?: ¿Deseas propagar el cambio a sus consignatarios?
-Frozen: Congelado
\ No newline at end of file
+Frozen: Congelado
+In order to invoice, this field is not consulted, but the consignee's ET. When modifying this field if the invoice by address option is not checked, the change will be automatically propagated to all addresses, otherwise the user will be asked if he wants to propagate it or not.: Para facturar no se consulta este campo, sino el RE de consignatario. Al modificar este campo si no esta marcada la casilla Facturar por consignatario, se propagará automáticamente el cambio a todos los consignatarios, en caso contrario preguntará al usuario si quiere o no propagar.
\ No newline at end of file