Commit 28ea6dd1 by Damien Moulard

remove dev code & add cutlery symbol to subtotal

parent 388ec710
...@@ -403,16 +403,7 @@ odoo.define("pos_meal_voucher.screens", function (require) { ...@@ -403,16 +403,7 @@ odoo.define("pos_meal_voucher.screens", function (require) {
/* point_of_sale/statis/src/js/screens.js */ /* point_of_sale/statis/src/js/screens.js */
screens.ReceiptScreenWidget.include({ screens.ReceiptScreenWidget.include({
render_receipt: function() { render_receipt: function() {
var env = { var order = this.pos.get_order();
widget: this,
pos: this.pos,
order: this.pos.get_order(),
receipt: this.pos.get_order().export_for_printing(),
paymentlines: this.pos.get_order().get_paymentlines()
};
this.$('.pos-receipt-container').html(QWeb.render('XmlReceipt',env));
/*var order = this.pos.get_order();
order.meal_voucher_used = order.is_meal_voucher_used(); order.meal_voucher_used = order.is_meal_voucher_used();
this.$('.pos-receipt-container').html(QWeb.render('PosTicket',{ this.$('.pos-receipt-container').html(QWeb.render('PosTicket',{
...@@ -421,7 +412,7 @@ odoo.define("pos_meal_voucher.screens", function (require) { ...@@ -421,7 +412,7 @@ odoo.define("pos_meal_voucher.screens", function (require) {
receipt: order.export_for_printing(), receipt: order.export_for_printing(),
orderlines: order.get_orderlines(), orderlines: order.get_orderlines(),
paymentlines: order.get_paymentlines() paymentlines: order.get_paymentlines()
}));*/ }));
} }
}); });
}); });
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
<col width='25%' /> <col width='25%' />
</colgroup> </colgroup>
<tr> <tr>
<td><i class="fa fa-cutlery" /> Eligible subtotal for meal vouchers:</td> <td><i class="fa fa-cutlery"/> Eligible subtotal for meal vouchers:</td>
<td class="pos-right-align"> <td class="pos-right-align">
<t t-esc="widget.format_currency(order.get_total_meal_voucher_eligible())"/> <t t-esc="widget.format_currency(order.get_total_meal_voucher_eligible())"/>
</td> </td>
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
<t t-jquery="div.orderlines" t-operation="after"> <t t-jquery="div.orderlines" t-operation="after">
<t t-if="receipt.meal_voucher_used === true"> <t t-if="receipt.meal_voucher_used === true">
<line><right>--------</right></line> <line><right>--------</right></line>
<line><left>Eligible subtotal for</left></line> <line><left><i class="fa fa-cutlery"/> Eligible subtotal for</left></line>
<line> <line>
<left>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> <right><value t-att-value-decimals='pos.currency.decimals'><t t-esc='receipt.total_meal_voucher_eligible' /></value></right>
......
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