|
@ -31,18 +31,18 @@ |
|
|
class="pos-receipt-taxes"> |
|
|
class="pos-receipt-taxes"> |
|
|
<div class="text-center">--------------------------------</div> |
|
|
<div class="text-center">--------------------------------</div> |
|
|
<t t-foreach="taxTotals.subtotals" t-as="subtotal" |
|
|
<t t-foreach="taxTotals.subtotals" t-as="subtotal" |
|
|
t-key="subtotal.name"> |
|
|
t-key="subtotal_index"> |
|
|
<div class="d-flex"> |
|
|
<div class="d-flex"> |
|
|
<span t-if="showTaxGroupLabels" class="me-2" |
|
|
<span t-if="showTaxGroupLabels" class="me-2" |
|
|
style="visibility: hidden;">A</span> |
|
|
style="visibility: hidden;">A</span> |
|
|
<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).toFixed()" |
|
|
<span t-esc="props.formatCurrency(subtotal.base_amount_currency)" class="ms-auto"/> |
|
|
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.id" |
|
|
t-as="tax_group" t-key="tax_group_index" |
|
|
class="d-flex"> |
|
|
class="d-flex"> |
|
|
<t t-if="showTaxGroupLabels"> |
|
|
<t t-if="showTaxGroupLabels"> |
|
|
<span t-if="tax_group.group_label" |
|
|
<span t-if="tax_group.group_label" |
|
@ -55,10 +55,10 @@ |
|
|
<span t-esc="tax_group.group_name"/> |
|
|
<span t-esc="tax_group.group_name"/> |
|
|
<t t-if="!taxTotals.same_tax_base"> |
|
|
<t t-if="!taxTotals.same_tax_base"> |
|
|
on |
|
|
on |
|
|
<span t-esc="props.formatCurrency(tax_group.base_amount_currency).toFixed()"/> |
|
|
<span t-esc="props.formatCurrency(tax_group.base_amount_currency)"/> |
|
|
</t> |
|
|
</t> |
|
|
</span> |
|
|
</span> |
|
|
<span t-esc="props.formatCurrency(tax_group.tax_amount_currency).toFixed()" |
|
|
<span t-esc="props.formatCurrency(tax_group.tax_amount_currency)" |
|
|
class="ms-auto"/> |
|
|
class="ms-auto"/> |
|
|
</div> |
|
|
</div> |
|
|
</t> |
|
|
</t> |
|
@ -67,18 +67,18 @@ |
|
|
<div class="text-center">--------------------------------</div> |
|
|
<div class="text-center">--------------------------------</div> |
|
|
<div class="pos-receipt-amount receipt-total"> |
|
|
<div class="pos-receipt-amount receipt-total"> |
|
|
<t t-out="props.data.label_total"/> |
|
|
<t t-out="props.data.label_total"/> |
|
|
<span t-esc="props.formatCurrency(taxTotals.order_total).toFixed()" |
|
|
<span t-esc="props.formatCurrency(taxTotals.order_total)" |
|
|
class="pos-receipt-right-align"/> |
|
|
class="pos-receipt-right-align"/> |
|
|
</div> |
|
|
</div> |
|
|
<t t-if="'order_rounding' in taxTotals"> |
|
|
<t t-if="'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).toFixed()" |
|
|
<span t-esc="props.formatCurrency(taxTotals.order_rounding)" |
|
|
class="pos-receipt-right-align"/> |
|
|
class="pos-receipt-right-align"/> |
|
|
</div> |
|
|
</div> |
|
|
<div class="pos-receipt-amount receipt-to-pay"> |
|
|
<div class="pos-receipt-amount receipt-to-pay"> |
|
|
To Pay |
|
|
To Pay |
|
|
<span t-esc="props.formatCurrency(taxTotals.order_to_pay).toFixed()" |
|
|
<span t-esc="props.formatCurrency(taxTotals.order_to_pay)" |
|
|
class="pos-receipt-right-align"/> |
|
|
class="pos-receipt-right-align"/> |
|
|
</div> |
|
|
</div> |
|
|
</t> |
|
|
</t> |
|
@ -87,23 +87,22 @@ |
|
|
t-foreach="props.data.paymentlines" t-as="line" |
|
|
t-foreach="props.data.paymentlines" t-as="line" |
|
|
t-key="line_index"> |
|
|
t-key="line_index"> |
|
|
<t t-esc="line.name"/> |
|
|
<t t-esc="line.name"/> |
|
|
<span t-esc="props.formatCurrency(line.amount).toFixed()" |
|
|
<span t-esc="props.formatCurrency(line.amount)" |
|
|
class="pos-receipt-right-align"/> |
|
|
class="pos-receipt-right-align"/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div t-if="'order_change' in taxTotals" |
|
|
<div t-if="'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).toFixed()" |
|
|
<span t-esc="props.formatCurrency(taxTotals.order_change)" |
|
|
class="pos-receipt-right-align"/> |
|
|
class="pos-receipt-right-align"/> |
|
|
</div> |
|
|
</div> |
|
|
<!-- Extra Payment Info --> |
|
|
<!-- Extra Payment Info --> |
|
|
<t t-if="props.data.total_discount"> |
|
|
<t t-if="props.data.total_discount"> |
|
|
<div class="text-center"> |
|
|
<div class="text-center"> |
|
|
<t t-out="props.data.label_discounts"/> |
|
|
<t t-out="props.data.label_discounts"/> |
|
|
<span t-esc="props.formatCurrency(props.data.total_discount).toFixed()" |
|
|
<span t-esc="props.formatCurrency(props.data.total_discount)" |
|
|
class="pos-receipt-right-align"/> |
|
|
class="pos-receipt-right-align"/> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</t> |
|
|
</t> |
|
|
<div class="before-footer"/> |
|
|
<div class="before-footer"/> |
|
@ -142,12 +141,12 @@ |
|
|
<br/> |
|
|
<br/> |
|
|
</div> |
|
|
</div> |
|
|
<div class="after-footer"> |
|
|
<div class="after-footer"> |
|
|
<t t-foreach="props.data.paymentlines" t-as="line" |
|
|
<t t-foreach="props.data.paymentlines" t-as="lines" |
|
|
t-key="line_index"> |
|
|
t-key="lines_index"> |
|
|
<t t-if="line.ticket"> |
|
|
<t t-if="lines.ticket"> |
|
|
<br/> |
|
|
<br/> |
|
|
<div class="pos-payment-terminal-receipt"> |
|
|
<div class="pos-payment-terminal-receipt"> |
|
|
<pre t-esc="line.ticket"/> |
|
|
<pre t-esc="lines.ticket"/> |
|
|
</div> |
|
|
</div> |
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|