Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
2
Merge Requests
2
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
Cédric Le Ninivin
erp5
Commits
d58fe7dd
Commit
d58fe7dd
authored
Dec 16, 2019
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder mixin: Supply calculation use default supply value even if not stock definition is found
parent
dcce704d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.BuilderMixin.py
...TemplateItem/portal_components/mixin.erp5.BuilderMixin.py
+3
-2
No files found.
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.BuilderMixin.py
View file @
d58fe7dd
...
...
@@ -537,8 +537,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
min_stock_value
=
getCorrectSupplyParameter
(
selected_supply
,
supply
,
'getMinOrderQuantity'
)
/
getDefaultQuantityUnitFlowQuantityUnitConversionRatio
(
selected_supply
,
supply
)
factor
=
getCorrectSupplyParameter
(
selected_supply
,
supply
,
'getMinFlow'
)
else
:
min_stock_value
=
original_min_stock_value
factor
=
original_factor
# Fallback to current supply values
min_stock_value
=
supply
.
getMinOrderQuantity
()
/
default_quantity_unit_flow_quantity_unit_conversion_ratio
factor
=
supply
.
getMinFlow
()
period_history_list
=
[]
if
next_period_history_list
and
\
...
...
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