fix: set for_qty instead of pick_list

This commit is contained in:
Suraj Shetty 2019-08-26 10:05:35 +05:30
parent 2b9e256002
commit 457da47dba

View File

@ -711,7 +711,7 @@ def get_work_order_operation_data(work_order, operation, workstation):
@frappe.whitelist()
def create_pick_list(source_name, target_doc=None, for_qty=None):
pick_list = for_qty or json.loads(target_doc).get('for_qty')
for_qty = for_qty or json.loads(target_doc).get('for_qty')
max_finished_goods_qty = frappe.db.get_value('Work Order', source_name, 'qty')
def update_item_quantity(source, target, source_parent):
# qty = source.required_qty - source.transferred_qty