Browse Source

Nov 26: [FIX] Bug Fixed 'custom_receipts_for_pos'

pull/358/merge
Risvana Cybro 3 weeks ago
parent
commit
00184c5f3f
  1. 2
      custom_receipts_for_pos/__manifest__.py
  2. 7
      custom_receipts_for_pos/doc/RELEASE_NOTES.md
  3. 5
      custom_receipts_for_pos/static/src/js/receipt_design.js
  4. 8
      custom_receipts_for_pos/static/src/xml/order_receipt.xml

2
custom_receipts_for_pos/__manifest__.py

@ -22,7 +22,7 @@
################################################################################ ################################################################################
{ {
'name': 'POS Receipt Design', 'name': 'POS Receipt Design',
'version': '18.0.1.0.4', 'version': '18.0.1.0.5',
'category': 'Point of Sale', 'category': 'Point of Sale',
'live_test_url': 'https://www.youtube.com/watch?v=sHQUam5F5Qs', 'live_test_url': 'https://www.youtube.com/watch?v=sHQUam5F5Qs',
'summary': "POS Receipt, Receipt Design, POS Receipt Template, Design " 'summary': "POS Receipt, Receipt Design, POS Receipt Template, Design "

7
custom_receipts_for_pos/doc/RELEASE_NOTES.md

@ -23,4 +23,9 @@
#### 29.10.2025 #### 29.10.2025
#### Version 18.0.1.0.4 #### Version 18.0.1.0.4
##### BUG FIX ##### BUG FIX
- Fixed the POS issue displaying the default receipt despite a selected custom design. - Fixed the POS issue displaying the default receipt despite a selected custom design.
#### 18.11.2025
#### Version 18.0.1.0.5
##### BUG FIX
- Fixed the POS issue where the receipt design was not appearing even if a design is selected.

5
custom_receipts_for_pos/static/src/js/receipt_design.js

@ -29,9 +29,6 @@ patch(OrderReceipt.prototype, {
}; };
}, },
get isTrue() { get isTrue() {
if (this.env.services.pos.config.is_custom_receipt == false) { return this.env.services.pos.config.is_custom_receipt;
return false;
}
return true;
} }
}); });

8
custom_receipts_for_pos/static/src/xml/order_receipt.xml

@ -5,6 +5,9 @@
<xpath expr="//div[hasclass('pos-receipt')]" position="replace"> <xpath expr="//div[hasclass('pos-receipt')]" position="replace">
<div class="pos-receipt"> <div class="pos-receipt">
<t t-if="isTrue"> <t t-if="isTrue">
<t t-component="templateComponent" t-props="templateProps"/>
</t>
<t t-else="">
<ReceiptHeader data="props.data.headerData"/> <ReceiptHeader data="props.data.headerData"/>
<OrderWidget t-if="props.data.orderlines?.length" <OrderWidget t-if="props.data.orderlines?.length"
lines="props.data.orderlines" lines="props.data.orderlines"
@ -61,7 +64,7 @@
</div> </div>
</t> </t>
</div> </div>
<!--1--> <!--1-->
<div class="text-center">--------------------------------</div> <div class="text-center">--------------------------------</div>
<t t-if="taxTotals and taxTotals.order_total !== undefined"> <t t-if="taxTotals and taxTotals.order_total !== undefined">
<div class="pos-receipt-amount receipt-total"> <div class="pos-receipt-amount receipt-total">
@ -165,9 +168,6 @@
<div id="order-date" t-esc="props.data.date"/> <div id="order-date" t-esc="props.data.date"/>
</div> </div>
</t> </t>
<t t-else="">
<t t-component="templateComponent" t-props="templateProps"/>
</t>
</div> </div>
</xpath> </xpath>
</t> </t>

Loading…
Cancel
Save