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
d9246966
Commit
d9246966
authored
Oct 04, 2023
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bad amount clicking on pos meal voucher payment method
parent
56e55b0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
README.rst
lacagette_addons/lacagette_mona/README.rst
+26
-0
screens.js
lacagette_addons/pos_meal_voucher/static/src/js/screens.js
+6
-0
No files found.
lacagette_addons/lacagette_mona/README.rst
0 → 100644
View file @
d9246966
============================
La Cagette - MonA
============================
This module extends the Point of Sale Odoo module, as well as the POS Meal Voucher module.
MonA is the payment method of a Common Food Fund experimentation.
The products elligible are the same as the ones elligible to Meal Vouchers.
Configuration
=============
Payment Method
~~~~~~~~
Go to the payment methods and add/update the MonA payment method (needs to be done each time the module is uninstalled/reinstalled).
"Type" should be "Bank".
In the "Point of sale" tab, check the "Pay with MonA" checkbox.
Point of sale
~~~~~~~~
Go to your point of sale and click on the "Activate MonA payment" checkbox.
Add the MonA payment method to your point of sale.
lacagette_addons/pos_meal_voucher/static/src/js/screens.js
View file @
d9246966
...
@@ -332,6 +332,12 @@ odoo.define("pos_meal_voucher.screens", function (require) {
...
@@ -332,6 +332,12 @@ odoo.define("pos_meal_voucher.screens", function (require) {
// if user choose card meal voucher
// if user choose card meal voucher
if
(
order
.
selected_paymentline
.
is_meal_voucher
()
&&
order
.
selected_paymentline
.
is_dematerialized_meal_voucher
()){
if
(
order
.
selected_paymentline
.
is_meal_voucher
()
&&
order
.
selected_paymentline
.
is_dematerialized_meal_voucher
()){
// Set selected payment line amount to 0 before any further check
order
.
selected_paymentline
.
set_amount
(
0
);
paymentScreen
.
order_changes
();
paymentScreen
.
render_paymentlines
();
paymentScreen
.
$
(
".paymentline.selected .edit"
).
text
(
paymentScreen
.
format_currency_no_symbol
(
0
));
// 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
();
...
...
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