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
d20e549e
Commit
d20e549e
authored
May 25, 2023
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix float comparison
parent
2a90d8ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
screens.js
...ette_addons/lacagette_custom_pos/static/src/js/screens.js
+1
-1
No files found.
lacagette_addons/lacagette_custom_pos/static/src/js/screens.js
View file @
d20e549e
...
...
@@ -334,7 +334,7 @@ odoo.define("lacagette_custom_pos.screens", function (require) {
}
}
if
(
!
force_validation
&&
order
.
get_total_with_tax
()
>
0
&&
(
order
.
get_total_with_tax
(
)
<
totalPaidExceptCash
))
{
if
(
!
force_validation
&&
order
.
get_total_with_tax
()
>
0
&&
(
(
order
.
get_total_with_tax
()
+
0.00001
)
<
totalPaidExceptCash
))
{
this
.
gui
.
show_popup
(
'error'
,{
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û.'
),
...
...
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