fix: set for_qty instead of pick_list
This commit is contained in:
parent
2b9e256002
commit
457da47dba
@ -711,7 +711,7 @@ def get_work_order_operation_data(work_order, operation, workstation):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def create_pick_list(source_name, target_doc=None, for_qty=None):
|
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')
|
max_finished_goods_qty = frappe.db.get_value('Work Order', source_name, 'qty')
|
||||||
def update_item_quantity(source, target, source_parent):
|
def update_item_quantity(source, target, source_parent):
|
||||||
# qty = source.required_qty - source.transferred_qty
|
# qty = source.required_qty - source.transferred_qty
|
||||||
|
Loading…
Reference in New Issue
Block a user