style: fixed formatting

Fixed formatting for for auto_fetch_serial_number
This commit is contained in:
Shivam Mishra 2019-04-17 15:29:29 +05:30 committed by GitHub
parent 5522cf8c26
commit 63921ebbc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")
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]