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 83edd6417..415e444c9 100644 --- a/custom_receipts_for_pos/static/src/js/receipt_design.js +++ b/custom_receipts_for_pos/static/src/js/receipt_design.js @@ -6,16 +6,13 @@ import { useService } from "@web/core/utils/hooks"; patch(OrderReceipt.prototype, { setup(){ - console.log('setupp') super.setup(); this.state = useState({ template: true, }) this.pos = useState(useService("pos")); - }, get templateProps() { - console.log('templateProps') return { data: this.props.data, order: this.pos.get_order(), @@ -25,7 +22,6 @@ patch(OrderReceipt.prototype, { }; }, get templateComponent() { - console.log('templateComponent') var mainRef = this; return class extends Component { setup() {} @@ -33,10 +29,9 @@ patch(OrderReceipt.prototype, { }; }, get isTrue() { - console.log('isTrue') if (this.env.services.pos.config.is_custom_receipt == false) { - return true; + return false; } - return false; + return true; } }); 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 0a96c57f1..fa28e989f 100644 --- a/custom_receipts_for_pos/static/src/xml/order_receipt.xml +++ b/custom_receipts_for_pos/static/src/xml/order_receipt.xml @@ -4,7 +4,6 @@
- -
-
@@ -66,12 +63,14 @@
--------------------------------
-
- - -
- + +
+ + +
+
+
To Pay - -
@@ -94,7 +91,7 @@ class="pos-receipt-right-align"/>
-