|
|
@ -4,6 +4,7 @@ |
|
|
|
<record id="pos_receipt_design2_demo" model="pos.receipt"> |
|
|
|
<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" |
|
|
@ -58,10 +59,10 @@ |
|
|
|
<t t-if="props.order.pos.mainScreen.props"> |
|
|
|
<tr t-foreach="props.order.pos.mainScreen.props.order.orderlines" t-as="orderline" t-key="index_orderlines"> |
|
|
|
<td style="padding-top:1%; padding-bottom:1%; text-align:left;"> |
|
|
|
<t t-esc="orderline.get_product().display_name"/> |
|
|
|
<t t-if="orderline.get_discount() > 0"> |
|
|
|
<t t-esc="orderline.productName"/> |
|
|
|
<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,10 +70,10 @@ |
|
|
|
</t> |
|
|
|
</td> |
|
|
|
<td style="text-align:right; font-size:14px;"> |
|
|
|
<t t-esc="orderline.get_quantity_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.price"/> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</t> |
|
|
@ -81,10 +82,10 @@ |
|
|
|
<t t-if="props.orderlines and props.orderlines.length"> |
|
|
|
<tr t-foreach="props.orderlines" t-as="orderline" t-key="orderline.id"> |
|
|
|
<td style="padding-top:1%; padding-bottom:1%; text-align:left;"> |
|
|
|
<t t-esc="orderline.get_product().display_name"/> |
|
|
|
<t t-if="orderline.get_discount() > 0"> |
|
|
|
<t t-esc="orderline.productName"/> |
|
|
|
<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 +93,10 @@ |
|
|
|
</t> |
|
|
|
</td> |
|
|
|
<td style="text-align:right; font-size:14px;"> |
|
|
|
<t t-esc="orderline.get_quantity_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.price"/> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</t> |
|
|
@ -111,8 +112,8 @@ |
|
|
|
<t t-if="props.data.tax_details"> |
|
|
|
<t t-foreach='props.data.tax_details' t-as='tax' t-key="index_tax_details"> |
|
|
|
<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 style="margin-left:40%;"><t t-esc='tax.tax.name' /></span> |
|
|
|
<span t-esc='tax.amount' class="pos-receipt-right-align"/> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
</t> |
|
|
@ -121,7 +122,7 @@ |
|
|
|
<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.data.amount_total' class="pos-receipt-right-align"/> |
|
|
|
</div> |
|
|
|
<br/><br/> |
|
|
|
</div> |
|
|
@ -129,7 +130,7 @@ |
|
|
|
<t t-foreach='props.paymentlines' t-as='line' t-key="index_paymentlines"> |
|
|
|
<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.amount)' class="pos-receipt-right-align"/> |
|
|
|
<span t-esc='line.amount' class="pos-receipt-right-align"/> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
<br/> |
|
|
@ -142,21 +143,21 @@ |
|
|
|
<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.receipt.total_discount' class="pos-receipt-right-align"/> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
<t t-if='taxincluded'> |
|
|
|
<t t-if="props.receipt.tax_details"> |
|
|
|
<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 style="margin-left:40%;"><t t-esc='tax.tax.name' /></span> |
|
|
|
<span t-esc='tax.amount' class="pos-receipt-right-align"/> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
<div style="font-size:14px;"> |
|
|
|
<span style="margin-left:40%;">Total Taxes : </span> |
|
|
|
<span t-esc='env.utils.formatCurrency(props.receipt.total_tax)' class="pos-receipt-right-align"/> |
|
|
|
<span t-esc='props.receipt.total_tax' class="pos-receipt-right-align"/> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
<div class='before-footer' /> |
|
|
|