style: fixed formatting
Fixed formatting for for auto_fetch_serial_number
This commit is contained in:
parent
5522cf8c26
commit
63921ebbc9
@ -462,5 +462,10 @@ def get_delivery_note_serial_no(item_code, qty, delivery_note):
|
||||
|
||||
@frappe.whitelist()
|
||||
def auto_fetch_serial_number(qty, item_code, warehouse):
|
||||
serial_numbers = frappe.get_list("Serial No", filters={"item_code": item_code, "warehouse": warehouse, "delivery_document_no": "", "sales_invoice": ""}, limit=qty, order_by="creation")
|
||||
return [item['name'] for item in serial_numbers]
|
||||
serial_numbers = frappe.get_list("Serial No", filters={
|
||||
"item_code": item_code,
|
||||
"warehouse": warehouse,
|
||||
"delivery_document_no": "",
|
||||
"sales_invoice": ""
|
||||
}, limit=qty, order_by="creation")
|
||||
return [item['name'] for item in serial_numbers]
|
||||
|
Loading…
Reference in New Issue
Block a user