|
@ -4,7 +4,6 @@ |
|
|
<t t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension"> |
|
|
<t t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension"> |
|
|
<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-log="'isTrue',isTrue"/> |
|
|
|
|
|
<t t-if="isTrue"> |
|
|
<t t-if="isTrue"> |
|
|
<ReceiptHeader data="props.data.headerData"/> |
|
|
<ReceiptHeader data="props.data.headerData"/> |
|
|
<OrderWidget t-if="props.data.orderlines?.length" |
|
|
<OrderWidget t-if="props.data.orderlines?.length" |
|
@ -39,9 +38,7 @@ |
|
|
<span class="fw-bolder" |
|
|
<span class="fw-bolder" |
|
|
t-out="subtotal.name"/> |
|
|
t-out="subtotal.name"/> |
|
|
<span t-esc="props.formatCurrency(subtotal.base_amount_currency)" class="ms-auto"/> |
|
|
<span t-esc="props.formatCurrency(subtotal.base_amount_currency)" class="ms-auto"/> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div t-foreach="subtotal.tax_groups" |
|
|
<div t-foreach="subtotal.tax_groups" |
|
|
t-as="tax_group" t-key="tax_group_index" |
|
|
t-as="tax_group" t-key="tax_group_index" |
|
|
class="d-flex"> |
|
|
class="d-flex"> |
|
@ -66,12 +63,14 @@ |
|
|
</div> |
|
|
</div> |
|
|
<!--1--> |
|
|
<!--1--> |
|
|
<div class="text-center">--------------------------------</div> |
|
|
<div class="text-center">--------------------------------</div> |
|
|
<div class="pos-receipt-amount receipt-total"> |
|
|
<t t-if="taxTotals and taxTotals.order_total !== undefined"> |
|
|
<t t-out="props.data.label_total"/> |
|
|
<div class="pos-receipt-amount receipt-total"> |
|
|
<span t-esc="props.formatCurrency(taxTotals.order_total)" |
|
|
<t t-out="props.data.label_total"/> |
|
|
class="pos-receipt-right-align"/> |
|
|
<span t-esc="props.formatCurrency(taxTotals.order_total)" |
|
|
</div> |
|
|
class="pos-receipt-right-align"/> |
|
|
<t t-if="'order_rounding' in taxTotals"> |
|
|
</div> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="taxTotals and 'order_rounding' in taxTotals"> |
|
|
<div class="pos-receipt-amount receipt-rounding"> |
|
|
<div class="pos-receipt-amount receipt-rounding"> |
|
|
<t t-out="props.data.label_rounding"/> |
|
|
<t t-out="props.data.label_rounding"/> |
|
|
<span t-esc="props.formatCurrency(taxTotals.order_rounding)" |
|
|
<span t-esc="props.formatCurrency(taxTotals.order_rounding)" |
|
@ -79,8 +78,6 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="pos-receipt-amount receipt-to-pay"> |
|
|
<div class="pos-receipt-amount receipt-to-pay"> |
|
|
To Pay |
|
|
To Pay |
|
|
<t t-log="'props', props"/> |
|
|
|
|
|
<t t-log="'taxTotals.order_to_pay', taxTotals"/> |
|
|
|
|
|
<span t-esc="props.formatCurrency(taxTotals.total_amount_currency)" |
|
|
<span t-esc="props.formatCurrency(taxTotals.total_amount_currency)" |
|
|
class="pos-receipt-right-align"/> |
|
|
class="pos-receipt-right-align"/> |
|
|
</div> |
|
|
</div> |
|
@ -94,7 +91,7 @@ |
|
|
class="pos-receipt-right-align"/> |
|
|
class="pos-receipt-right-align"/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div t-if="'order_change' in taxTotals" |
|
|
<div t-if="order_change and 'order_change' in taxTotals" |
|
|
class="pos-receipt-amount receipt-change"> |
|
|
class="pos-receipt-amount receipt-change"> |
|
|
<t t-out="props.data.label_change"/> |
|
|
<t t-out="props.data.label_change"/> |
|
|
<span t-esc="props.formatCurrency(taxTotals.order_change)" |
|
|
<span t-esc="props.formatCurrency(taxTotals.order_change)" |
|
|