You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

68 lines
2.5 KiB

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="OrderReceipt" t-inherit="point_of_sale.OrderReceipt"
t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('pos-receipt-contact')]" position="inside">
<div style="font-weight:bold;">Customer Name:
<!-- <t t-if="this.env.pos.session_orders[0].customer_name">-->
<t t-esc="this.env.pos.selectedOrder.partner.name"/>
<!-- </t>-->
</div>
<t t-if="this.env.pos.session_orders[0].customer_name">
<div style="font-weight:bold;">Customer Address:
<t t-esc="this.env.pos.selectedOrder.partner.name"/>
</div>
</t>
<t t-if="this.env.pos.session_orders[0].customer_mobile">
<div style="font-weight:bold;">Customer Mobile:
<t t-esc="this.env.pos.selectedOrder.partner.mobile"/>
</div>
</t>
<t t-if="this.env.pos.session_orders[0].customer_phone">
<div style="font-weight:bold;">Customer Phone:
<t t-esc="this.env.pos.selectedOrder.partner.phone"/>
</div>
</t>
<t t-if="this.env.pos.session_orders[0].customer_email">
<div style="font-weight:bold;">Customer Email:
<t t-esc="this.env.pos.selectedOrder.partner.email"/>
</div>
</t>
<t t-if="this.env.pos.session_orders[0].customer_vat">
<div style="font-weight:bold;">Customer Vat:
<t t-esc="this.env.pos.selectedOrder.partner.vat"/>
</div>
</t>
<t t-if="this.env.pos.session_orders[0].invoice_number">
<div style="font-weight:bold;">Invoice Number:
<t t-esc="this.env.pos.invoice "/>
</div>
</t>
<t t-if="this.env.pos.session_orders[0].barcode_type === 'qr_code' ">
<div style="font-weight:bold;">
<img t-attf-src="{{this.env.pos.qr_image}}"
style="width:50%;"/>
</div>
</t>
</xpath>
</t>
</templates>