fix: dont send empty serial no in get_item_details

[skip ci]
This commit is contained in:
Ankush Menat 2022-04-01 20:25:30 +05:30 committed by Ankush Menat
parent 6a069d6efa
commit c8ead0a7ab

View File

@ -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):