Merge pull request #9704 from rohitwaghchaure/serial_no_not_found_issue

Fixed the issue Serial No serial no not found
This commit is contained in:
Nabin Hait 2017-07-07 15:47:25 +05:30 committed by GitHub
commit 6eb55042d8

View File

@ -803,9 +803,10 @@ class SalesInvoice(SellingController):
continue
for serial_no in item.serial_no.split("\n"):
sno = frappe.get_doc('Serial No', serial_no)
sno.sales_invoice = invoice
sno.db_update()
if serial_no and frappe.db.exists('Serial No', serial_no):
sno = frappe.get_doc('Serial No', serial_no)
sno.sales_invoice = invoice
sno.db_update()
def validate_serial_numbers(self):
"""