From dcc2c1281b350a9ff3208a99b8ae5160cce9953f Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Tue, 10 Sep 2024 14:01:14 +0530 Subject: [PATCH] Sep 10: [FIX] Bug Fixed 'pos_receipt_invoice_send_whatsapp' --- .../doc/RELEASE_NOTES.md | 15 +++++++++++++++ .../static/src/js/ReceiptScreen.js | 2 +- .../static/src/xml/payment_screen_templates.xml | 10 ++++++---- .../static/src/xml/receipt_screen_templates.xml | 4 +++- 4 files changed, 25 insertions(+), 6 deletions(-) diff --git a/pos_receipt_invoice_send_whatsapp/doc/RELEASE_NOTES.md b/pos_receipt_invoice_send_whatsapp/doc/RELEASE_NOTES.md index e18c25a3d..1190d88c1 100755 --- a/pos_receipt_invoice_send_whatsapp/doc/RELEASE_NOTES.md +++ b/pos_receipt_invoice_send_whatsapp/doc/RELEASE_NOTES.md @@ -1,5 +1,20 @@ ## Module + #### 12.06.2024 + #### Version 17.0.1.0.0 + ##### ADD + - Initial commit for Send POS Receipt and Invoice via WhatsApp + +## Module + +#### 05.09.2024 + +#### Version 17.0.1.0.0 + +##### ADD + +- Updated the module: Encountered a null case when no customer is selected. Fixed the error by checking null case in + receipt and payment screen. diff --git a/pos_receipt_invoice_send_whatsapp/static/src/js/ReceiptScreen.js b/pos_receipt_invoice_send_whatsapp/static/src/js/ReceiptScreen.js index 8cc845b51..2f6dcaf81 100755 --- a/pos_receipt_invoice_send_whatsapp/static/src/js/ReceiptScreen.js +++ b/pos_receipt_invoice_send_whatsapp/static/src/js/ReceiptScreen.js @@ -22,7 +22,7 @@ patch(ReceiptScreen.prototype, { method: 'action_send_invoice', args: [0], kwargs: { - order_id: order_id, // Pass order_id as a keyword argument + order_id: order_id, number: this.currentOrder.get_partner().whatsapp_number, config_id: this.pos.config.id } diff --git a/pos_receipt_invoice_send_whatsapp/static/src/xml/payment_screen_templates.xml b/pos_receipt_invoice_send_whatsapp/static/src/xml/payment_screen_templates.xml index a9df9a136..e8882cf54 100755 --- a/pos_receipt_invoice_send_whatsapp/static/src/xml/payment_screen_templates.xml +++ b/pos_receipt_invoice_send_whatsapp/static/src/xml/payment_screen_templates.xml @@ -6,10 +6,12 @@ - -
- - + + +
+ + +
diff --git a/pos_receipt_invoice_send_whatsapp/static/src/xml/receipt_screen_templates.xml b/pos_receipt_invoice_send_whatsapp/static/src/xml/receipt_screen_templates.xml index 7ce30456f..2b1426f70 100755 --- a/pos_receipt_invoice_send_whatsapp/static/src/xml/receipt_screen_templates.xml +++ b/pos_receipt_invoice_send_whatsapp/static/src/xml/receipt_screen_templates.xml @@ -8,7 +8,8 @@ Additionally, set conditions for displaying these buttons.--> - + +