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
469eaca5
Commit
469eaca5
authored
Feb 24, 2022
by
Thibault Grandjean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix selector undefined
parent
37d90424
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
screens.js
lacagette_addons/pos_meal_voucher/static/src/js/screens.js
+5
-3
No files found.
lacagette_addons/pos_meal_voucher/static/src/js/screens.js
View file @
469eaca5
...
...
@@ -82,7 +82,11 @@ odoo.define("pos_meal_voucher.screens", function (require) {
var
order
=
this
.
pos
.
get_order
();
if
(
!
this
.
meal_voucher_activated
())
{
this
.
el
.
querySelector
(
".summary .meal-voucher"
).
style
.
display
=
'none'
;
const
meal_voucher_summary
=
this
.
el
.
querySelector
(
".summary .meal-voucher"
);
if
(
meal_voucher_summary
!=
null
)
{
meal_voucher_summary
.
style
.
display
=
'none'
;
}
// this.el.querySelector(".summary .meal-voucher").style.display = 'none';
return
;
}
if
(
!
order
.
get_orderlines
().
length
)
{
...
...
@@ -321,8 +325,6 @@ odoo.define("pos_meal_voucher.screens", function (require) {
return
;
}
var
meal_voucher_available
=
this
.
meal_voucher_activated
();
// Update meal voucher summary
var
total_eligible
=
order
.
get_total_meal_voucher_eligible
();
this
.
el
.
querySelector
(
"#meal-voucher-eligible-amount"
).
textContent
=
this
.
format_currency
(
total_eligible
);
...
...
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