diff --git a/modules/invoiceOut/front/descriptor/index.html b/modules/invoiceOut/front/descriptor/index.html index 7e8d6b8d9e..1da487d15a 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,18 @@ - - \ 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 e6305db93b..5a535c9b52 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 }); }