From a0ac55bc3e85072c5c59ebebc88c7deaafa8ee55 Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 20 Sep 2021 13:59:57 +0200 Subject: [PATCH 1/3] refactor(invoice): send invoice to specific email address from descriptor option Refs: 3010 --- .../invoiceOut/front/descriptor/index.html | 20 ++++++++++++++----- modules/invoiceOut/front/descriptor/index.js | 4 ++-- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/modules/invoiceOut/front/descriptor/index.html b/modules/invoiceOut/front/descriptor/index.html index 7e8d6b8d9..c242f010e 100644 --- a/modules/invoiceOut/front/descriptor/index.html +++ b/modules/invoiceOut/front/descriptor/index.html @@ -10,7 +10,7 @@ Show invoice PDF Send invoice PDF @@ -106,9 +106,19 @@ - - \ No newline at end of file + + Are you sure you want to send it? + + + + + + + + \ No newline at end of file diff --git a/modules/invoiceOut/front/descriptor/index.js b/modules/invoiceOut/front/descriptor/index.js index e6305db93..5a535c9b5 100644 --- a/modules/invoiceOut/front/descriptor/index.js +++ b/modules/invoiceOut/front/descriptor/index.js @@ -60,10 +60,10 @@ class Controller extends Descriptor { .then(res => this.entity = res.data); } - sendInvoice() { + sendInvoice($data) { return this.vnEmail.send('invoice', { recipientId: this.invoiceOut.client.id, - recipient: this.invoiceOut.client.email, + recipient: $data.email, invoiceId: this.id }); } -- 2.40.1 From 369b79c6af8b13d404c3196f1c8c689910e0fd26 Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 20 Sep 2021 14:01:40 +0200 Subject: [PATCH 2/3] refactor(invoice): removed unnecessary class --- modules/invoiceOut/front/descriptor/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/invoiceOut/front/descriptor/index.html b/modules/invoiceOut/front/descriptor/index.html index c242f010e..57e3a3d47 100644 --- a/modules/invoiceOut/front/descriptor/index.html +++ b/modules/invoiceOut/front/descriptor/index.html @@ -111,7 +111,7 @@ vn-id="invoiceConfirmation" on-accept="$ctrl.sendInvoice($data)" message="Send invoice PDF"> - + Are you sure you want to send it? -- 2.40.1 From cd478a9f7bf4fc2ecad4fc0c825aecfe70fd441e Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 20 Sep 2021 14:02:04 +0200 Subject: [PATCH 3/3] Removed line break --- modules/invoiceOut/front/descriptor/index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/invoiceOut/front/descriptor/index.html b/modules/invoiceOut/front/descriptor/index.html index 57e3a3d47..1da487d15 100644 --- a/modules/invoiceOut/front/descriptor/index.html +++ b/modules/invoiceOut/front/descriptor/index.html @@ -106,7 +106,6 @@ -