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
57be95bc
Commit
57be95bc
authored
Jun 28, 2023
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MonA total_eligible
parent
2a9fa667
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
5 deletions
+26
-5
__openerp__.py
lacagette_addons/pos_meal_voucher/__openerp__.py
+1
-0
pos_meal_voucher.css
...dons/pos_meal_voucher/static/src/css/pos_meal_voucher.css
+5
-5
screens.js
lacagette_addons/pos_meal_voucher/static/src/js/screens.js
+3
-0
pos_meal_voucher.xml
...dons/pos_meal_voucher/static/src/xml/pos_meal_voucher.xml
+17
-0
No files found.
lacagette_addons/pos_meal_voucher/__openerp__.py
View file @
57be95bc
# Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
# TODO: Rendre l'affichage MonA paramétrable
{
"name"
:
"Point Of Sale - Meal Voucher"
,
"summary"
:
"Handle meal vouchers in Point of Sale"
...
...
lacagette_addons/pos_meal_voucher/static/src/css/pos_meal_voucher.css
View file @
57be95bc
...
...
@@ -37,7 +37,7 @@
background
:
rgba
(
255
,
255
,
255
,
0.4
);
}
.payment-screen
div
.meal-voucher-summary
{
.payment-screen
div
.meal-voucher-summary
,
.payment-screen
div
.monA-summary
{
border-top
:
dashed
1px
gainsboro
;
}
...
...
@@ -45,20 +45,20 @@
color
:
red
;
}
.payment-screen
div
.meal-voucher-summary
table
{
.payment-screen
div
.meal-voucher-summary
table
,
.payment-screen
div
.monA-summary
table
{
width
:
100%
;
}
.payment-screen
div
.meal-voucher-summary
tbody
{
.payment-screen
div
.meal-voucher-summary
tbody
,
.payment-screen
div
.monA-summary
tbody
{
background
:
white
;
}
.payment-screen
div
.meal-voucher-summary
th
{
.payment-screen
div
.meal-voucher-summary
th
,
.payment-screen
div
.monA-summary
th
{
font-size
:
16px
;
padding
:
8px
;
text-align
:
center
;
}
.payment-screen
div
.meal-voucher-summary
td
{
.payment-screen
div
.meal-voucher-summary
td
,
.payment-screen
div
.monA-summary
td
{
font-size
:
22px
;
padding
:
8px
12px
;
}
...
...
lacagette_addons/pos_meal_voucher/static/src/js/screens.js
View file @
57be95bc
...
...
@@ -424,6 +424,9 @@ odoo.define("pos_meal_voucher.screens", function (require) {
this
.
$
(
".meal-voucher-summary"
).
addClass
(
"oe_hidden"
);
}
// Update MonA summary
this
.
el
.
querySelector
(
"#monA-eligible-amount"
).
textContent
=
this
.
format_currency
(
total_eligible
)
},
order_is_valid
:
function
(
force_validation
)
{
...
...
lacagette_addons/pos_meal_voucher/static/src/xml/pos_meal_voucher.xml
View file @
57be95bc
...
...
@@ -56,6 +56,23 @@
</tbody>
</table>
</div>
<div
class=
"monA-summary"
>
<table
class=
"monA-summary"
>
<thead>
<tr>
<th
colspan=
"2"
>
MonA
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Total Eligible
</td>
<td>
<span
id=
"monA-eligible-amount"
>
0.00 €
</span>
</td>
</tr>
</tbody>
</table>
</div>
</t>
</t>
...
...
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