remove unused code
This commit is contained in:
parent
96e45902fd
commit
0456ced796
@ -693,12 +693,6 @@ def get_serial_no(args, serial_nos=None):
|
|||||||
has_serial_no = frappe.get_value('Item', {'item_code': args.item_code}, "has_serial_no")
|
has_serial_no = frappe.get_value('Item', {'item_code': args.item_code}, "has_serial_no")
|
||||||
if args.get('batch_no') and has_serial_no == 1:
|
if args.get('batch_no') and has_serial_no == 1:
|
||||||
return get_serial_no_batchwise(args)
|
return get_serial_no_batchwise(args)
|
||||||
# elif (args.get('has_batch_no') == 1) and has_serial_no == 1 and not args.get('batch_no'):
|
|
||||||
# args.batch_no = get_batch_no(args.item_code, args.warehouse, args.qty)
|
|
||||||
# actual_batch_qty = get_batch_qty(args.batch_no, args.warehouse, args.item_code)
|
|
||||||
# if actual_batch_qty:
|
|
||||||
# args.update(actual_batch_qty)
|
|
||||||
# return get_serial_no_batchwise(args)
|
|
||||||
elif has_serial_no == 1:
|
elif has_serial_no == 1:
|
||||||
args = json.dumps({"item_code": args.get('item_code'),"warehouse": args.get('warehouse'),"stock_qty": args.get('stock_qty')})
|
args = json.dumps({"item_code": args.get('item_code'),"warehouse": args.get('warehouse'),"stock_qty": args.get('stock_qty')})
|
||||||
args = process_args(args)
|
args = process_args(args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user