@ -5,14 +5,11 @@
<field name= "name" > Design 2</field>
<field name= "design_receipt" > < ![CDATA[
<div class= "pos-receipt" >
<t t-if= "env.services.pos.config.logo" >
<img t-att-src= "'data:image/png;base64,' + env.services.pos.config.logo"
alt="Logo" class="pos-receipt-logo"/>
<br />
</t>
<div style= "font-size:13px; text-align:center;" >
<t t-esc= "env.services.pos.company.name" /> <br />
Phone:<t t-esc= "env.services.pos.company.phone || ''" /> <br />
<t t-if= "props.data.headerData.company.name" >
<div > <t t-esc= "props.data.headerData.company.name" /> </div>
</t>
Phone:<t t-esc= "props.pos.env.services.pos.company.phone || ''" /> <br />
</div>
<br />
<div style= "font-size:13px; text-align:center;" >
@ -24,15 +21,14 @@
<t t-esc= "props.order.validation_date" />
</t>
<br />
Order : <t t-esc= "props.data.name" /> <br />
</div>
<br />
<div style= "font-size:13px; text-align:center;" >
Cashier : <t t-esc= 'props.receipt.headerData.cashier' /> <br />
<t t-if= "props.order[0].partner" >
Customer : <t t-esc= 'props.order[0].partner.name' style= "font-style:bold" />
</t>
<br />
<div class= "fw-bolder" t-if= "props.data.headerData.trackingNumber" >
<span class= "fs-2" t-esc= "props.data.headerData.trackingNumber" />
</div>
</div>
<br />
<t t-if= "props.receipt.headerData.header" >
@ -56,12 +52,12 @@
</tr>
<t t-if= "props.order and props.order.length and props.order[0] and props.order[0].pos and props.order[0].pos.mainScreen and props.order[0].pos.mainScreen.props and props.order[0].pos.mainScreen.props.order and props.order[0].pos.mainScreen.props.order.orderlines and props.order[0].pos.mainScreen.props.order.orderlines.length" >
<t t-if= "props.order[0].pos.mainScreen.props" >
<tr t-foreach= "props.order[0].pos.mainScreen.props.order.orderlines" t-as= "orderline" t-key= "index_orderlines " >
<tr t-foreach= "props.order[0].pos.mainScreen.props.order.orderlines" t-as= "orderline" t-key= "orderline_index " >
<td style= "padding-top:1%; padding-bottom:1%; text-align:left;" >
<t t-esc= "orderline.get_product().display_n ame" />
<t t-if= "orderline.get_ discount() > 0" >
<t t-esc= "orderline.productN ame" />
<t t-if= "orderline.discount > 0" >
<div style= "font-size:12px; font-style:italic; color:#808080;" >
<t t-esc= "orderline.get_ discount() " /> % discount
<t t-esc= "orderline.discount" /> % discount
</div>
</t>
<t t-if= "orderline.customerNote" >
@ -69,22 +65,22 @@
</t>
</td>
<td style= "text-align:right; font-size:14px;" >
<t t-esc= "orderline.get_ quanti ty_str_with_unit() " />
<t t-esc= "orderline.qty" />
</td>
<td style= "text-align:right; font-size:14px;" >
<t t-esc= "props.order[0].env.utils.formatCurrency(orderline.get_display_price()) " />
<t t-esc= "orderline.unitPrice " />
</td>
</tr>
</t>
</t>
<t t-else= "" >
<t t-if= "props.orderlines and props.orderlines.length" >
<tr t-foreach= "props.orderlines" t-as= "orderline" t-key= "orderline.id " >
<tr t-foreach= "props.orderlines" t-as= "orderline" t-key= "orderline_index " >
<td style= "padding-top:1%; padding-bottom:1%; text-align:left;" >
<t t-esc= "orderline.get_product().display_n ame" />
<t t-if= "orderline.get_ discount() > 0" >
<t t-esc= "orderline.productN ame" />
<t t-if= "orderline.discount > 0" >
<div style= "font-size:12px; font-style:italic; color:#808080;" >
<t t-esc= "orderline.get_ discount() " /> % discount
<t t-esc= "orderline.discount" /> % discount
</div>
</t>
<t t-if= "orderline.customerNote" >
@ -92,10 +88,10 @@
</t>
</td>
<td style= "text-align:right; font-size:14px;" >
<t t-esc= "orderline.get_ quanti ty_str_with_unit() " />
<t t-esc= "orderline.qty" />
</td>
<td style= "text-align:right; font-size:14px;" >
<t t-esc= "env.utils.formatCurrency(orderline.get_display_price()) " />
<t t-esc= "orderline.unitPrice " />
</td>
</tr>
</t>
@ -107,11 +103,11 @@
<t t-set= 'taxincluded' t-value= 'Math.abs(props.receipt.amount_total - props.receipt.total_with_tax) <= 0.000001' />
<t t-if= '!taxincluded' >
<br />
<div style= "font-weight:700; font-size:14px; border-top:1px dashed;" > <span style= "margin-left:40%;" > Subtotal : </span> <span t-esc= 'env.utils.formatCurrency(props.data.total_without_tax)' class= "pos-receipt-right-align" /> </div>
<t t-foreach= 'props.data.tax_details' t-as= 'tax' t-key= "index_tax_details " >
<div style= "font-weight:700; font-size:14px; border-top:1px dashed;" > <span style= "margin-left:40%;" > Subtotal : </span> <span t-esc= 'props.pos. env.utils.formatCurrency(props.data.total_without_tax)' class= "pos-receipt-right-align" /> </div>
<t t-foreach= 'props.data.tax_details' t-as= 'tax' t-key= "tax.tax.id " >
<div style= "font-weight:700; font-size:14px;" >
<span style= "margin-left:40%;" > <t t-esc= 'tax.name' /> </span>
<span t-esc= 'env.utils.formatCurrency(tax.amount)' class= "pos-receipt-right-align" />
<span t-esc= 'props.pos. env.utils.formatCurrency(tax.amount)' class= "pos-receipt-right-align" />
</div>
</t>
</t>
@ -119,40 +115,40 @@
<br />
<div style= "font-weight:700; font-size:14px;" >
<span style= "margin-left:40%;" > TOTAL : </span>
<span t-esc= 'env.utils.formatCurrency(props.data.amount_total)' class= "pos-receipt-right-align" />
<span t-esc= 'props.pos. env.utils.formatCurrency(props.data.amount_total)' class= "pos-receipt-right-align" />
</div>
<br /> <br />
</div>
<!-- Payment Lines -->
<t t-foreach= 'props.paymentlines' t-as= 'line' t-key= "index_paymentlines " >
<t t-foreach= 'props.paymentlines' t-as= 'line' t-key= "line_index " >
<div style= "font-size:14px; border-top:1px dashed; padding-top:5px;" >
<span style= "margin-left:40%;" > <t t-esc= 'line.name' /> </span>
<span t-esc= 'env.utils.formatCurrency(line.get_ amount() )' class= "pos-receipt-right-align" />
<span t-esc= 'props.pos. env.utils.formatCurrency(line.amount)' class= "pos-receipt-right-align" />
</div>
</t>
<br />
<div class= "receipt-change" style= "font-size:14px;" >
<span style= "margin-left:40%;" > CHANGE : </span>
<span t-esc= 'env.utils.formatCurrency(props.receipt.change)' class= "pos-receipt-right-align" />
<span t-esc= 'props.pos. env.utils.formatCurrency(props.receipt.change)' class= "pos-receipt-right-align" />
</div>
<br />
<!-- Extra Payment Info -->
<t t-if= 'props.receipt.total_discount' >
<div style= "font-size:14px; border-top:1px dashed; padding-top:5px;" >
<span style= "margin-left:40%;" > Discounts : </span>
<span t-esc= 'env.utils.formatCurrency(props.receipt.total_discount)' class= "pos-receipt-right-align" />
<span t-esc= 'props.pos. env.utils.formatCurrency(props.receipt.total_discount)' class= "pos-receipt-right-align" />
</div>
</t>
<t t-if= 'taxincluded' >
<t t-foreach= 'props.receipt.tax_details' t-as= 'tax' t-key= "index_receipt_tax_details" >
<div style= "font-size:14px;" >
<span style= "margin-left:40%;" > <t t-esc= 'tax.name' /> </span>
<span t-esc= 'env.utils.formatCurrency(tax.amount)' class= "pos-receipt-right-align" />
<span t-esc= 'props.pos. env.utils.formatCurrency(tax.amount)' class= "pos-receipt-right-align" />
</div>
</t>
<div style= "font-size:14px;" >
<span style= "margin-left:40%;" > Total Taxes : </span>
<span t-esc= 'env.utils.formatCurrency(rops.receipt.total_tax)' class= "pos-receipt-right-align" />
<span t-esc= 'props.pos. env.utils.formatCurrency(p rops.receipt.total_tax)' class= "pos-receipt-right-align" />
</div>
</t>
<div class= 'before-footer' />
@ -166,7 +162,7 @@
<br /> <br />
</div>
<div class= 'after-footer' style= "font-size:14px;" >
<t t-foreach= 'props.paymentlines' t-as= 'line' t-key= "index_payment " >
<t t-foreach= 'props.paymentlines' t-as= 'line' t-key= "line_ index" >
<t t-if= 'line.ticket' >
<br />
<div class= "pos-payment-terminal-receipt" >