diff --git a/erpnext/stock/doctype/quality_inspection/quality_inspection.py b/erpnext/stock/doctype/quality_inspection/quality_inspection.py index 536a88fb868d..60f048673fb8 100644 --- a/erpnext/stock/doctype/quality_inspection/quality_inspection.py +++ b/erpnext/stock/doctype/quality_inspection/quality_inspection.py @@ -242,6 +242,9 @@ def get_formula_evaluation_data(self, reading): # 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)