Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odoo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
odoo
Commits
28ea6dd1
Commit
28ea6dd1
authored
Mar 24, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dev code & add cutlery symbol to subtotal
parent
388ec710
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
screens.js
lacagette_addons/pos_meal_voucher/static/src/js/screens.js
+2
-11
pos_meal_voucher.xml
...dons/pos_meal_voucher/static/src/xml/pos_meal_voucher.xml
+2
-2
No files found.
lacagette_addons/pos_meal_voucher/static/src/js/screens.js
View file @
28ea6dd1
...
...
@@ -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
()
}));
*/
}));
}
});
});
lacagette_addons/pos_meal_voucher/static/src/xml/pos_meal_voucher.xml
View file @
28ea6dd1
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment