From ced7c8c742064d7a0ef4683706f5b53fdac5e255 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Tue, 1 Oct 2024 09:31:12 +0530 Subject: [PATCH] Oct 01: [ADD] Initial commit 'custom_receipts_for_pos' --- custom_receipts_for_pos/__manifest__.py | 2 +- custom_receipts_for_pos/doc/RELEASE_NOTES.md | 5 +++++ custom_receipts_for_pos/static/src/js/receipt_design.js | 6 +++--- custom_receipts_for_pos/views/pos_config_views.xml | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/custom_receipts_for_pos/__manifest__.py b/custom_receipts_for_pos/__manifest__.py index f294709d7..428b0605f 100644 --- a/custom_receipts_for_pos/__manifest__.py +++ b/custom_receipts_for_pos/__manifest__.py @@ -22,7 +22,7 @@ ################################################################################ { 'name': 'POS Receipt Design', - 'version': '17.0.1.0.5', + 'version': '17.0.3.0.5', 'category': 'Point of Sale', 'summary': "POS Receipt, Receipt Design, POS Receipt Template, Design " "Report, Custom Receipt, POS Report, Customise Receipt, Odoo17, " diff --git a/custom_receipts_for_pos/doc/RELEASE_NOTES.md b/custom_receipts_for_pos/doc/RELEASE_NOTES.md index 88b816d7d..cea3334cc 100644 --- a/custom_receipts_for_pos/doc/RELEASE_NOTES.md +++ b/custom_receipts_for_pos/doc/RELEASE_NOTES.md @@ -30,3 +30,8 @@ #### Version 17.0.1.0.5 ##### BUGFIX - Fixed the missing company logo in the pos receipts when printing. + +#### 27.09.2024 +#### Version 17.0.2.0.5 +##### BUGFIX +- Fixed the receipt printing order issue. diff --git a/custom_receipts_for_pos/static/src/js/receipt_design.js b/custom_receipts_for_pos/static/src/js/receipt_design.js index 517b762fa..4a798ac49 100644 --- a/custom_receipts_for_pos/static/src/js/receipt_design.js +++ b/custom_receipts_for_pos/static/src/js/receipt_design.js @@ -16,9 +16,9 @@ patch(OrderReceipt.prototype, { return { data: this.props.data, order: this.pos.orders, - receipt: this.pos.orders[0].export_for_printing(), - orderlines:this.pos.orders[0].get_orderlines(), - paymentlines:this.pos.orders[0].get_paymentlines() + receipt: this.pos.get_order().export_for_printing(), + orderlines:this.pos.get_order().get_orderlines(), + paymentlines:this.pos.get_order().get_paymentlines() }; }, get templateComponent() { diff --git a/custom_receipts_for_pos/views/pos_config_views.xml b/custom_receipts_for_pos/views/pos_config_views.xml index 9dff18f63..6503751f8 100644 --- a/custom_receipts_for_pos/views/pos_config_views.xml +++ b/custom_receipts_for_pos/views/pos_config_views.xml @@ -10,7 +10,7 @@
- +