diff --git a/custom_receipts_for_pos/__manifest__.py b/custom_receipts_for_pos/__manifest__.py index f27c8096f..a93119b0e 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.3.0.6', + 'version': '17.0.3.1.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/data/pos_receipt_design1_data.xml b/custom_receipts_for_pos/data/pos_receipt_design1_data.xml index ab449b383..a8f28d005 100644 --- a/custom_receipts_for_pos/data/pos_receipt_design1_data.xml +++ b/custom_receipts_for_pos/data/pos_receipt_design1_data.xml @@ -5,26 +5,21 @@ Design 1 - - - - - - + + - - Tel: + + Tel: - - : + + : - - + + - - + + @@ -34,6 +29,9 @@ -------------------------------- Served by + + + @@ -57,12 +55,12 @@ - + - - + + - % discount + % discount @@ -70,22 +68,22 @@ - + - + - + - - + + - % discount + % discount @@ -93,10 +91,10 @@ - + - + @@ -111,14 +109,13 @@ Subtotal : - - - + - @@ -127,7 +124,7 @@ TOTAL : - + @@ -150,5 +147,4 @@ ]]> - - \ No newline at end of file + diff --git a/custom_receipts_for_pos/data/pos_receipt_design2_data.xml b/custom_receipts_for_pos/data/pos_receipt_design2_data.xml index d716b8c27..e8cd5542a 100644 --- a/custom_receipts_for_pos/data/pos_receipt_design2_data.xml +++ b/custom_receipts_for_pos/data/pos_receipt_design2_data.xml @@ -5,14 +5,11 @@ Design 2 - - - - - - Phone: + + + + Phone: @@ -24,15 +21,14 @@ - Order : Cashier : - - Customer : - + + + @@ -56,12 +52,12 @@ - + - - + + - % discount + % discount @@ -69,22 +65,22 @@ - + - + - + - - + + - % discount + % discount @@ -92,10 +88,10 @@ - + - + @@ -107,11 +103,11 @@ - Subtotal : - + Subtotal : + - + @@ -119,40 +115,40 @@ TOTAL : - + - + - + CHANGE : - + Discounts : - + - + Total Taxes : - + @@ -166,7 +162,7 @@ + + + + Version 17.0.3.1.5| + Released on: Dec 03, 2024 + + + Updated the tracking number to custom receipt screen and fixed the issues when tip is enabled. + + + 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 4a798ac49..275cd6c6c 100644 --- a/custom_receipts_for_pos/static/src/js/receipt_design.js +++ b/custom_receipts_for_pos/static/src/js/receipt_design.js @@ -13,12 +13,14 @@ patch(OrderReceipt.prototype, { this.pos = useState(useService("pos")); }, get templateProps() { + return { + pos:this.pos, data: this.props.data, order: this.pos.orders, - receipt: this.pos.get_order().export_for_printing(), - orderlines:this.pos.get_order().get_orderlines(), - paymentlines:this.pos.get_order().get_paymentlines() + receipt:this.props.data, + orderlines:this.props.data.orderlines, + paymentlines:this.props.data.paymentlines }; }, get templateComponent() { diff --git a/custom_receipts_for_pos/static/src/xml/order_receipt.xml b/custom_receipts_for_pos/static/src/xml/order_receipt.xml index 61606e743..5b5802cee 100644 --- a/custom_receipts_for_pos/static/src/xml/order_receipt.xml +++ b/custom_receipts_for_pos/static/src/xml/order_receipt.xml @@ -29,7 +29,6 @@ - -------- @@ -51,9 +50,7 @@ - - @@ -65,9 +62,7 @@ - - Discounts
+ Updated the tracking number to custom receipt screen and fixed the issues when tip is enabled. +