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
0a5659cc
Commit
0a5659cc
authored
May 14, 2019
by
Cédric Le Ninivin
Committed by
Titouan Soulard
Mar 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buildermixin: Include missing movement list
parent
24ce3a48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.BuilderMixin.py
...TemplateItem/portal_components/mixin.erp5.BuilderMixin.py
+8
-1
No files found.
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.BuilderMixin.py
View file @
0a5659cc
...
@@ -473,7 +473,14 @@ class BuilderMixin(XMLObject, Amount, Predicate):
...
@@ -473,7 +473,14 @@ class BuilderMixin(XMLObject, Amount, Predicate):
to_date
=
limit_date_list
[
0
],
to_date
=
limit_date_list
[
0
],
resource_uid
=
resource_value
.
getUid
(),
resource_uid
=
resource_value
.
getUid
(),
node_uid
=
supply
.
getDestinationUid
(),
node_uid
=
supply
.
getDestinationUid
(),
)
)
# We update history_list to include movements from the initial inventory date
history_list
=
resource_value
.
Resource_getInventoryHistoryList
(
from_date
=
limit_date_list
[
0
],
to_date
=
history_list
[
0
][
0
],
node_uid
=
supply
.
getDestinationUid
()
)
+
history_list
min_stock_value
=
supply
.
getMinOrderQuantity
()
/
default_quantity_unit_flow_quantity_unit_conversion_ratio
min_stock_value
=
supply
.
getMinOrderQuantity
()
/
default_quantity_unit_flow_quantity_unit_conversion_ratio
factor
=
supply
.
getMinFlow
()
factor
=
supply
.
getMinFlow
()
...
...
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