<?xml version="1.0" encoding="UTF-8" ?>
<templates id="template" xml:space="preserve">

    <t
        t-name="MealVoucherOrderReceipt"
        t-inherit="point_of_sale.OrderReceipt"
        t-inherit-mode="extension"
        owl="1"
    >
        <xpath expr="//t/div[hasclass('pos-receipt-amount')]/.." position="after">
            <t t-if="env.pos.config.enable_meal_voucher_receipt_info">
                <br />
                <div class="pos-receipt-meal-voucher-totals">
                    Products marked with an asterisk (*) can be paid for by meal vouchers.
                    <br />
                    Eligible Total:
                    <span
                        t-out="env.pos.format_currency(props.order.get_total_meal_voucher_eligible())"
                        class="pos-receipt-right-align"
                    />
                    <br />
                    Non-Eligible Total:
                    <span
                        t-out="env.pos.format_currency(props.order.get_total_meal_voucher_non_eligible())"
                        class="pos-receipt-right-align"
                    />
                </div>
            </t>
        </xpath>
    </t>

</templates>
