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
a year ago
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bad meal voucher amount when mona payment exists
parent
b58475ef
ticket_6464
…
5873-prevent-special-status-to-be-lost-when-adding-capital-shares
6833--nouveaux-sans-statut
ajout_module_exports_pour_capital_membres
branch_prod_anticipee_Cagette
correctifs_lacagette_membership
dev_cooperatic
graoucoop_prod
lacagette_prod
nouvelle_implentation_mails_rappel
revert-c649eae1
supercafoutch_prod
test
supercafoutch_20240609_115709
supercafoutch_20240212_082431
supercafoutch_20240107_181851
1 merge request
!61
create module for mona & set eligible amount to payment line at mona payment & security checks
Show 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) {
// update selected (last) payment line & order with meal voucher data
function
update_order_meal_voucher_data
(
issuer
=
''
)
{
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
max_amount
=
self
.
pos
.
config
.
max_meal_voucher_amount
;
var
current_max
=
total_eligible
;
...
...
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