Commit 229c6aa4 authored by Yusei Tahara's avatar Yusei Tahara

Use getInventoriatedQuantity instead of getQuantity.

parent 5ddac0b4
...@@ -195,9 +195,9 @@ class Inventory(Delivery): ...@@ -195,9 +195,9 @@ class Inventory(Delivery):
method = getattr(self, list_method) method = getattr(self, list_method)
for movement in method(): for movement in method():
if movement.getResourceValue() is not None and \ if movement.getResourceValue() is not None and \
movement.getQuantity() not in (None, ''): movement.getInventoriatedQuantity() not in (None, ''):
movement_quantity = movement.getQuantity() movement_quantity = movement.getInventoriatedQuantity()
# construct key to retrieve inventory into dict # construct key to retrieve inventory into dict
getter_list = [x['getter'] for x in inventory_calculation_dict['first_level']] getter_list = [x['getter'] for x in inventory_calculation_dict['first_level']]
key_list = [] key_list = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment