Merge pull request #22430 from frappe/clarkejj-patch-1

fix: stock_ageing.py report SyntaxError: can’t assign to function call
This commit is contained in:
Marica 2020-06-24 21:24:44 +05:30 committed by GitHub
commit ba334cbfa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,7 @@ def get_fifo_queue(filters, sle=None):
transferred_item_details[(d.voucher_no, d.name)].append(fifo_queue.pop(0))
else:
# all from current batch
batch[0] -= qty_to_pop
batch[0] = flt(batch[0]) - qty_to_pop
transferred_item_details[(d.voucher_no, d.name)].append([qty_to_pop, batch[1]])
qty_to_pop = 0