Merge branch 'develop' into project-link-for-all-accounts

This commit is contained in:
Deepesh Garg
2020-03-31 16:07:23 +05:30
committed by GitHub
210 changed files with 3288 additions and 3587 deletions

View File

@@ -240,7 +240,7 @@ class StockController(AccountsController):
for d in self.items:
if not d.batch_no: continue
serial_nos = [d.name for d in frappe.get_all("Serial No", {'batch_no': d.batch_no})]
serial_nos = [sr.name for sr in frappe.get_all("Serial No", {'batch_no': d.batch_no})]
if serial_nos:
frappe.db.set_value("Serial No", { 'name': ['in', serial_nos] }, "batch_no", None)