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
0a3d45ad
Commit
0a3d45ad
authored
Jan 11, 2019
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Builder: Supply builder fix min stock to check only if movement are commings
parent
3877d4e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.BuilderMixin.py
...TemplateItem/portal_components/mixin.erp5.BuilderMixin.py
+2
-1
No files found.
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.BuilderMixin.py
View file @
0a3d45ad
...
@@ -451,6 +451,7 @@ class BuilderMixin(XMLObject, Amount, Predicate):
...
@@ -451,6 +451,7 @@ class BuilderMixin(XMLObject, Amount, Predicate):
if
not
has_consumption_movement
:
if
not
has_consumption_movement
:
return
[]
return
[]
from_date
=
date
# evaluate future inventory at date
# evaluate future inventory at date
future_inventory_to_date
=
portal
.
portal_simulation
.
getFutureInventory
(
future_inventory_to_date
=
portal
.
portal_simulation
.
getFutureInventory
(
...
@@ -502,7 +503,7 @@ class BuilderMixin(XMLObject, Amount, Predicate):
...
@@ -502,7 +503,7 @@ class BuilderMixin(XMLObject, Amount, Predicate):
if
start_date
<
supply
.
getStartDateRangeMin
():
if
start_date
<
supply
.
getStartDateRangeMin
():
# As we are going to need to go further in time to check if new Movements are needed
# As we are going to need to go further in time to check if new Movements are needed
# we need to keep inventory correct
# we need to keep inventory correct
future_inventory_to_date
+=
quantity
#
future_inventory_to_date += quantity
for
date
,
total_inventory
,
quantity
,
portal_type
in
period_history_list
:
for
date
,
total_inventory
,
quantity
,
portal_type
in
period_history_list
:
future_inventory_to_date
+=
quantity
future_inventory_to_date
+=
quantity
continue
continue
...
...
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