Merge pull request #25590 from 18alantom/fix-use-get-serial-nos

fix: use get_serial_nos for splitting
This commit is contained in:
rohitwaghchaure 2021-05-06 14:03:15 +05:30 committed by GitHub
commit 180ba1dfc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1111,7 +1111,7 @@ class SalesInvoice(SellingController):
if not item.serial_no:
continue
for serial_no in item.serial_no.split("\n"):
for serial_no in get_serial_nos(item.serial_no):
if serial_no and frappe.db.get_value('Serial No', serial_no, 'item_code') == item.item_code:
frappe.db.set_value('Serial No', serial_no, 'sales_invoice', invoice)