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
1
Merge Requests
1
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
606549d3
Commit
606549d3
authored
Dec 16, 2019
by
Cédric Le Ninivin
Committed by
Cédric Le Ninivin
May 29, 2023
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
1f19f759
Changes
1
Show 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 @
606549d3
...
@@ -537,8 +537,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
...
@@ -537,8 +537,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
min_stock_value
=
getCorrectSupplyParameter
(
selected_supply
,
supply
,
'getMinOrderQuantity'
)
/
getDefaultQuantityUnitFlowQuantityUnitConversionRatio
(
selected_supply
,
supply
)
min_stock_value
=
getCorrectSupplyParameter
(
selected_supply
,
supply
,
'getMinOrderQuantity'
)
/
getDefaultQuantityUnitFlowQuantityUnitConversionRatio
(
selected_supply
,
supply
)
factor
=
getCorrectSupplyParameter
(
selected_supply
,
supply
,
'getMinFlow'
)
factor
=
getCorrectSupplyParameter
(
selected_supply
,
supply
,
'getMinFlow'
)
else
:
else
:
min_stock_value
=
original_min_stock_value
# Fallback to current supply values
factor
=
original_factor
min_stock_value
=
supply
.
getMinOrderQuantity
()
/
default_quantity_unit_flow_quantity_unit_conversion_ratio
factor
=
supply
.
getMinFlow
()
period_history_list
=
[]
period_history_list
=
[]
if
next_period_history_list
and
\
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