fix: update item reference in quality inspection

(cherry picked from commit 9da5010265)

# Conflicts:
#	erpnext/public/js/controllers/transaction.js
This commit is contained in:
pugazhendhivelu
2025-07-03 15:44:00 +05:30
committed by ruthra kumar
parent d60d8a2625
commit 65c277fd27
4 changed files with 28 additions and 47 deletions

View File

@@ -1648,8 +1648,9 @@ def make_quality_inspections(doctype, docname, items):
"sample_size": flt(item.get("sample_size")),
"item_serial_no": item.get("serial_no").split("\n")[0] if item.get("serial_no") else None,
"batch_no": item.get("batch_no"),
"child_row_reference": item.get("child_row_reference"),
}
).insert()
)
quality_inspection.save()
inspections.append(quality_inspection.name)