Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
0479a3b1
Commit
0479a3b1
authored
Apr 08, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove non used brain DeliveryListBrain
parent
d2c17920
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
56 deletions
+0
-56
product/ERP5/Extensions/InventoryBrain.py
product/ERP5/Extensions/InventoryBrain.py
+0
-56
No files found.
product/ERP5/Extensions/InventoryBrain.py
View file @
0479a3b1
...
@@ -279,62 +279,6 @@ class TrackingListBrain(InventoryListBrain):
...
@@ -279,62 +279,6 @@ class TrackingListBrain(InventoryListBrain):
return
self
.
date
.
toZone
(
timezone
)
return
self
.
date
.
toZone
(
timezone
)
return
self
.
date
return
self
.
date
class
DeliveryListBrain
(
InventoryListBrain
):
"""
Lists each variation
"""
# Stock management
def
getInventory
(
self
,
at_date
=
None
,
ignore_variation
=
0
,
simulation_state
=
None
,
**
kw
):
if
isinstance
(
simulation_state
,
str
):
simulation_state
=
[
simulation_state
]
where_expression
=
getattr
(
self
,
'where_expression'
,
None
)
result
=
self
.
Resource_zGetInventory
(
resource_uid
=
[
self
.
resource_uid
],
to_date
=
at_date
,
section_category
=
self
.
getPortalDefaultSectionCategory
(),
variation_text
=
self
.
variation_text
,
simulation_state
=
simulation_state
,
where_expression
=
where_expression
)
inventory
=
None
if
len
(
result
)
>
0
:
inventory
=
result
[
0
].
inventory
if
inventory
is
None
:
return
0.0
else
:
return
inventory
def
getAvailableInventory
(
self
):
"""
Returns current inventory at current date
"""
current
=
self
.
getCurrentInventory
()
result
=
self
.
Resource_zGetInventory
(
resource_uid
=
[
self
.
resource_uid
],
omit_simulation
=
1
,
omit_input
=
1
,
section_category
=
self
.
getPortalDefaultSectionCategory
(),
variation_text
=
self
.
variation_text
,
simulation_state
=
self
.
getPortalReservedInventoryStateList
())
reserved_inventory
=
None
if
len
(
result
)
>
0
:
reserved_inventory
=
result
[
0
].
inventory
if
reserved_inventory
is
None
:
reserved_inventory
=
0.0
return
current
+
reserved_inventory
def
getInventoryAtDate
(
self
):
"""
Returns inventory at the date provided by the SQL method
"""
at_date
=
self
.
at_date
return
self
.
getInventory
(
at_date
=
at_date
,
ignore_variation
=
0
,
simulation_state
=
\
list
(
self
.
getPortalFutureInventoryStateList
())
+
\
list
(
self
.
getPortalReservedInventoryStateList
())
+
\
list
(
self
.
getPortalCurrentInventoryStateList
()))
class
MovementHistoryListBrain
(
InventoryListBrain
):
class
MovementHistoryListBrain
(
InventoryListBrain
):
"""Brain for getMovementHistoryList
"""Brain for getMovementHistoryList
...
...
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