From 1302665d9860544b12d9b2f8fd8eaa1e13b85e67 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 27 Mar 2023 10:00:00 +0200 Subject: [PATCH 1/3] refs #5436 showSucces --- modules/claim/front/descriptor/index.js | 4 ++++ modules/claim/front/locale/es.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/modules/claim/front/descriptor/index.js b/modules/claim/front/descriptor/index.js index 0dddadbe1..95eb7e977 100644 --- a/modules/claim/front/descriptor/index.js +++ b/modules/claim/front/descriptor/index.js @@ -17,6 +17,10 @@ class Controller extends Descriptor { } sendPickupOrder() { + if (!this.claim.client.email) { + this.vnApp.showSuccess(this.$t('The client does not have an email')); + return; + } return this.vnEmail.send(`Claims/${this.claim.id}/claim-pickup-email`, { recipient: this.claim.client.email, recipientId: this.claim.clientFk diff --git a/modules/claim/front/locale/es.yml b/modules/claim/front/locale/es.yml index 419e62f56..f6dac2b83 100644 --- a/modules/claim/front/locale/es.yml +++ b/modules/claim/front/locale/es.yml @@ -20,3 +20,4 @@ Photos: Fotos Go to the claim: Ir a la reclamación Sale tracking: Líneas preparadas Ticket tracking: Estados del ticket +The client does not have an email: El cliente no tiene email From af8603185ca68fecffd4daa79993e3f9d546606d Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 17 Apr 2023 08:35:44 +0200 Subject: [PATCH 2/3] refs #5439 inheritedRole --- modules/item/front/request-search-panel/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/item/front/request-search-panel/index.html b/modules/item/front/request-search-panel/index.html index a431d4fd6..dfafb02f3 100644 --- a/modules/item/front/request-search-panel/index.html +++ b/modules/item/front/request-search-panel/index.html @@ -42,7 +42,7 @@ Date: Thu, 20 Apr 2023 11:33:28 +0200 Subject: [PATCH 3/3] refs #5436 mod de error --- modules/claim/front/descriptor/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/claim/front/descriptor/index.js b/modules/claim/front/descriptor/index.js index 95eb7e977..5e9ea5140 100644 --- a/modules/claim/front/descriptor/index.js +++ b/modules/claim/front/descriptor/index.js @@ -18,7 +18,7 @@ class Controller extends Descriptor { sendPickupOrder() { if (!this.claim.client.email) { - this.vnApp.showSuccess(this.$t('The client does not have an email')); + this.vnApp.showError(this.$t('The client does not have an email')); return; } return this.vnEmail.send(`Claims/${this.claim.id}/claim-pickup-email`, {