Merge pull request #48378 from aerele/refactor-quality-inspection

fix: update item reference in quality inspection
This commit is contained in:
rohitwaghchaure
2025-07-08 16:01:38 +05:30
committed by GitHub
4 changed files with 28 additions and 47 deletions

View File

@@ -1757,8 +1757,9 @@ def make_quality_inspections(doctype, docname, items, inspection_type):
"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)