mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 15:45:01 +00:00
fix: not able to save QC (#42371)
This commit is contained in:
@@ -242,6 +242,9 @@ class QualityInspection(Document):
|
||||
# numeric readings
|
||||
for i in range(1, 11):
|
||||
field = "reading_" + str(i)
|
||||
if reading.get(field) is None:
|
||||
continue
|
||||
|
||||
data[field] = parse_float(reading.get(field))
|
||||
data["mean"] = self.calculate_mean(reading)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user