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