Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
d642ab37
Commit
d642ab37
authored
Jul 27, 2011
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
consider delivery_error if decision_movement is delivery of prevision_movement.
parent
283985a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
product/ERP5/Document/FloatEquivalenceTester.py
product/ERP5/Document/FloatEquivalenceTester.py
+6
-4
No files found.
product/ERP5/Document/FloatEquivalenceTester.py
View file @
d642ab37
...
...
@@ -79,10 +79,12 @@ class FloatEquivalenceTester(Predicate, EquivalenceTesterMixin):
prevision_value
=
self
.
_getTestedPropertyValue
(
prevision_movement
,
tested_property
)
or
0.0
# use delivery_ratio if specified
if
self
.
getProperty
(
'use_delivery_ratio'
)
and
\
prevision_movement
.
getDelivery
()
==
decision_movement
.
getRelativeUrl
():
decision_value
*=
prevision_movement
.
getDeliveryRatio
()
if
prevision_movement
.
getDelivery
()
==
decision_movement
.
getRelativeUrl
():
# use delivery_ratio if specified
if
self
.
getProperty
(
'use_delivery_ratio'
):
decision_value
*=
prevision_movement
.
getDeliveryRatio
()
if
tested_property
==
'quantity'
:
prevision_value
+=
prevision_movement
.
getDeliveryError
(
0.0
)
if
self
.
isDecimalAlignmentEnabled
():
decision_value
=
self
.
_round
(
decision_value
)
...
...
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