Formula-based quality checks in iVendNext enable businesses to implement complex inspection logic beyond simple numeric ranges or text matches. This guide covers how to:
✔ Create dynamic formulas for inspections
✔ Apply mathematical and logical operations
✔ Troubleshoot common formula errors
Why Use Formulas?
Validate product grades (A/B/C)
Calculate averages/variances (e.g., pH levels)
Enforce multi-parameter rules (e.g., "Weight must increase if density > X")
Before creating formula-based checks:
Enable Quality Inspection in the Item Master
Create a Quality Inspection Template
Basic understanding of:
Arithmetic operators (+, -, *, /)
Comparison operators (>, <, ==, !=)
Logical operators (and, or, in)
Validate calculations against numeric criteria:
# Example 1: Sum of readings < 100
(reading_1 + reading_2) < 100
# Example 2: Mean of readings > 50
mean > 50
# Example 3: Ratio constraint
(reading_1 / reading_2) < 2.5
Validate text patterns or categories:
# Example 1: Exact match
reading_value == "Pass"
# Example 2: Value in list
reading_value in ("A", "B", "C")
# Example 3: Exclusion check
reading_value != "Defective"
Combine numeric and text logic:
# Example: Reject if "Color" is Red AND "Weight" < 10kg
reading_value == "Red" and reading_1 < 10
Open Quality Inspection Template
For a parameter:
Check "Formula Based Criteria"
Enter formula in Acceptance Criteria Formula
Save
Create a New Quality Inspection
Select the template → Formulas auto-populate
Enter readings → System auto-calculates results
# Standard deviation < 5
std_dev < 5
# 90th percentile > 100
percentile_90 > 100
# Reject if: Temperature > 30°C AND Humidity > 80%
reading_1 > 30 and reading_2 > 80
# Density must correlate with weight
(reading_1 / reading_2) > 0.5
Document formulas in template descriptions
Use templates to standardize frequent checks
Train staff on formula logic and troubleshooting
Formula-based checks transform iVendNext into a powerful QC platform, handling everything from basic math to AI-like conditional logic.