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
56e55b0a
Commit
56e55b0a
authored
Aug 22, 2023
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bad meal voucher amount when mona payment exists
parent
b58475ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
screens.js
lacagette_addons/pos_meal_voucher/static/src/js/screens.js
+7
-0
No files found.
lacagette_addons/pos_meal_voucher/static/src/js/screens.js
View file @
56e55b0a
...
@@ -335,6 +335,13 @@ odoo.define("pos_meal_voucher.screens", function (require) {
...
@@ -335,6 +335,13 @@ odoo.define("pos_meal_voucher.screens", function (require) {
// update selected (last) payment line & order with meal voucher data
// update selected (last) payment line & order with meal voucher data
function
update_order_meal_voucher_data
(
issuer
=
''
)
{
function
update_order_meal_voucher_data
(
issuer
=
''
)
{
var
total_eligible
=
order
.
get_total_meal_voucher_eligible
();
var
total_eligible
=
order
.
get_total_meal_voucher_eligible
();
// Function defined in module "lacagette_mona", that may not be activated.
// If said module is activated, consider this eligible amount.
if
(
typeof
order
.
get_total_meal_vouchers_eligible_including_mona
===
"function"
)
{
total_eligible
=
order
.
get_total_meal_vouchers_eligible_including_mona
();
}
var
total_received
=
order
.
get_total_meal_voucher_received
();
var
total_received
=
order
.
get_total_meal_voucher_received
();
var
max_amount
=
self
.
pos
.
config
.
max_meal_voucher_amount
;
var
max_amount
=
self
.
pos
.
config
.
max_meal_voucher_amount
;
var
current_max
=
total_eligible
;
var
current_max
=
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