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
f8e9aea7
Commit
f8e9aea7
authored
3 years ago
by
Etienne Freiss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix about max amount of meal voucher
parent
2d9449d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
screens.js
lacagette_addons/pos_meal_voucher/static/src/js/screens.js
+1
-2
No files found.
lacagette_addons/pos_meal_voucher/static/src/js/screens.js
View file @
f8e9aea7
...
@@ -89,7 +89,6 @@ odoo.define("pos_meal_voucher.screens", function (require) {
...
@@ -89,7 +89,6 @@ odoo.define("pos_meal_voucher.screens", function (require) {
return
methods
;
return
methods
;
},
},
payment_input
:
function
()
{
payment_input
:
function
()
{
var
self
=
this
;
var
self
=
this
;
...
@@ -111,7 +110,7 @@ odoo.define("pos_meal_voucher.screens", function (require) {
...
@@ -111,7 +110,7 @@ odoo.define("pos_meal_voucher.screens", function (require) {
this
.
format_currency
(
current_max
),
this
.
format_currency
(
current_max
),
});
});
const
max_curent_amount
=
total_eligible
-
total_received
+
order
.
selected_paymentline
.
get_amount
()
;
const
max_curent_amount
=
current_max
-
total_received
+
order
.
selected_paymentline
.
get_amount
()
;
order
.
selected_paymentline
.
set_amount
(
max_curent_amount
);
order
.
selected_paymentline
.
set_amount
(
max_curent_amount
);
this
.
order_changes
();
this
.
order_changes
();
this
.
render_paymentlines
();
this
.
render_paymentlines
();
...
...
This diff is collapsed.
Click to expand it.
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