fix(stock-ageing): filter none values from the fifo queue
This commit is contained in:
parent
9a8549a361
commit
77f22635f2
@ -15,6 +15,8 @@ def execute(filters=None):
|
||||
to_date = filters["to_date"]
|
||||
data = []
|
||||
for item, item_dict in iteritems(item_details):
|
||||
|
||||
item_dict['fifo_queue'] = [item for item in item_dict if item[1]]
|
||||
fifo_queue = sorted(item_dict["fifo_queue"], key=lambda x: x[1])
|
||||
details = item_dict["details"]
|
||||
if not fifo_queue or (not item_dict.get("total_qty")): continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user