fix: dont send empty serial no in get_item_details
[skip ci]
This commit is contained in:
parent
6a069d6efa
commit
c8ead0a7ab
@ -167,6 +167,9 @@ def update_stock(args, out):
|
||||
reserved_so = get_so_reservation_for_item(args)
|
||||
out.serial_no = get_serial_no(out, args.serial_no, sales_order=reserved_so)
|
||||
|
||||
if not out.serial_no:
|
||||
out.pop("serial_no", None)
|
||||
|
||||
|
||||
def set_valuation_rate(out, args):
|
||||
if frappe.db.exists("Product Bundle", args.item_code, cache=True):
|
||||
|
Loading…
x
Reference in New Issue
Block a user