Commit 5743b9cb by Damien Moulard

fix meal voucher subtotal display on pos ticket

parent 89de62bc
......@@ -355,14 +355,21 @@ msgstr "Pour ajouter un chèque restaurant merci de fermer cette fenêtre et sca
#. module: pos_meal_voucher
#. openerp-web
#: code:addons/pos_meal_voucher/static/src/xml/pos_meal_voucher.xml:92
#: code:addons/pos_meal_voucher/static/src/xml/pos_meal_voucher.xml:96
#, python-format
msgid "Eligible amount for meal vouchers:"
msgstr "Montant éligible en tickets restaurant :"
msgid "Eligible subtotal for meal vouchers:"
msgstr "Sous-total éligible en tickets restaurant :"
#. module: pos_meal_voucher
#. openerp-web
#: code:addons/pos_meal_voucher/static/src/xml/pos_meal_voucher.xml:107
#: code:addons/pos_meal_voucher/static/src/xml/pos_meal_voucher.xml:110
#, python-format
msgid "Eligible amount for meal vouchers:"
msgstr "Montant éligible en tickets restaurant :"
msgid "Eligible subtotal for"
msgstr "Sous-total éligible en"
#. module: pos_meal_voucher
#. openerp-web
#: code:addons/pos_meal_voucher/static/src/xml/pos_meal_voucher.xml:112
#, python-format
msgid "meal vouchers:"
msgstr "tickets restaurant :"
......@@ -88,8 +88,12 @@
<t t-jquery="table.receipt-total" t-operation="before">
<t t-if="order.meal_voucher_used === true">
<table class='receipt-eligible-meal-voucher'>
<colgroup>
<col width='75%' />
<col width='25%' />
</colgroup>
<tr>
<td>Eligible amount for meal vouchers:</td>
<td>Eligible subtotal for meal vouchers:</td>
<td class="pos-right-align">
<t t-esc="widget.format_currency(order.get_total_meal_voucher_eligible())"/>
</td>
......@@ -103,8 +107,9 @@
<t t-jquery="div.orderlines" t-operation="after">
<t t-if="receipt.meal_voucher_used === true">
<line><right>--------</right></line>
<line><left>Eligible subtotal for</left></line>
<line>
<left>Eligible amount for meal vouchers:</left>
<left>meal vouchers:</left>
<right><value t-att-value-decimals='pos.currency.decimals'><t t-esc='receipt.total_meal_voucher_eligible' /></value></right>
</line>
</t>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment