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
2a90d8ab
Commit
2a90d8ab
authored
a year ago
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pas de rendu d'espèces sur chèques repas non plus
parent
f2ed58f5
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
pour_mep
revert-c649eae1
supercafoutch-prod-20220811
supercafoutch_prod
test
supercafoutch_20240609_115709
supercafoutch_20240212_082431
supercafoutch_20240107_181851
supercafoutch_prod_until_240107
supercafoutch-230915
supercafoutch-230823
1 merge request
!56
Story 4617
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
screens.js
...ette_addons/lacagette_custom_pos/static/src/js/screens.js
+6
-6
No files found.
lacagette_addons/lacagette_custom_pos/static/src/js/screens.js
View file @
2a90d8ab
...
...
@@ -327,17 +327,17 @@ odoo.define("lacagette_custom_pos.screens", function (require) {
return
false
;
}
var
totalPaidExceptCash
OrMealVoucherPaper
=
0
;
//block if this amount is more than total with tax
var
totalPaidExceptCash
=
0
;
//block if this amount is more than total with tax
for
(
i
=
0
;
i
<
plines
.
length
;
i
++
)
{
if
(
plines
[
i
].
get_type
()
!==
'cash'
&&
!
plines
[
i
].
is_paper_meal_voucher
()
)
{
totalPaidExceptCash
OrMealVoucherPaper
+=
plines
[
i
].
get_amount
();
if
(
plines
[
i
].
get_type
()
!==
'cash'
)
{
totalPaidExceptCash
+=
plines
[
i
].
get_amount
();
}
}
if
(
!
force_validation
&&
order
.
get_total_with_tax
()
>
0
&&
(
order
.
get_total_with_tax
()
<
totalPaidExceptCash
OrMealVoucherPaper
))
{
if
(
!
force_validation
&&
order
.
get_total_with_tax
()
>
0
&&
(
order
.
get_total_with_tax
()
<
totalPaidExceptCash
))
{
this
.
gui
.
show_popup
(
'error'
,{
title
:
_t
(
'Le rendu de monnaie est possible seulement sur les lignes espèces
et chèques repas
.'
),
body
:
_t
(
'Pour valider le paiement, la somme des montants offerts des lignes (hors espèces
et chèques repas
) doit donc être inférieure au total dû.'
),
title
:
_t
(
'Le rendu de monnaie est possible seulement sur les lignes espèces.'
),
body
:
_t
(
'Pour valider le paiement, la somme des montants offerts des lignes (hors espèces) doit donc être inférieure au total dû.'
),
});
return
false
;
}
...
...
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