mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +00:00
Fixed the issue Serial No serial no not found
This commit is contained in:
@@ -803,6 +803,7 @@ class SalesInvoice(SellingController):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
for serial_no in item.serial_no.split("\n"):
|
for serial_no in item.serial_no.split("\n"):
|
||||||
|
if serial_no and frappe.db.exists('Serial No', serial_no):
|
||||||
sno = frappe.get_doc('Serial No', serial_no)
|
sno = frappe.get_doc('Serial No', serial_no)
|
||||||
sno.sales_invoice = invoice
|
sno.sales_invoice = invoice
|
||||||
sno.db_update()
|
sno.db_update()
|
||||||
|
|||||||
Reference in New Issue
Block a user