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
80e5d84f
Commit
80e5d84f
authored
Aug 06, 2019
by
Xiaowu Zhang
Committed by
Cédric Le Ninivin
Feb 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder: consider min Stock/min flow are always 0 on the Supplier Supply
parent
a4a31445
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.BuilderMixin.py
...TemplateItem/portal_components/mixin.erp5.BuilderMixin.py
+3
-3
No files found.
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.BuilderMixin.py
View file @
80e5d84f
...
...
@@ -520,9 +520,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
if
len
(
stock_definition_supply_list
):
return
stock_definition_supply_list
[
0
]
return
default_supply
original_min_stock_value
=
supply
.
getMinOrderQuantity
()
/
default_quantity_unit_flow_quantity_unit_conversion_ratio
original_factor
=
supply
.
getMinFlow
()
# Consider min stock and min flow are always 0 on supplier supply
original_min_stock_value
=
0
#
supply.getMinOrderQuantity() / default_quantity_unit_flow_quantity_unit_conversion_ratio
original_factor
=
0
#
supply.getMinFlow()
original_order_quantity_unit_value
=
supply
.
getOrderQuantityUnitValue
()
# Create a movement per period
for
period_start_date
in
limit_date_list
:
...
...
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