Both prices are positive
Passed| Row | sku | price |
|---|---|---|
| 1 | A-100 | 25.00 |
| 2 | B-200 | 12.50 |
When a price list is rejected, the buyer needs to know which check failed and who approved the rule. RuleGenius is designed to keep both answers with the rule.
Example · Supplier price list
“Every item offered for sale must have a unit price.”
supplier-policy.pdf · §4.2
Purchasing decides that a zero is a placeholder for an unconfirmed price.
rule "Positive unit price":
convert price to number
check price is greater than 0
message "Unit price must exceed zero"The CSV stores prices as text. Convert each price to a number before comparing it with zero.
Each file contains two rows. One failed row blocks the output for the whole batch.
| Row | sku | price |
|---|---|---|
| 1 | A-100 | 25.00 |
| 2 | B-200 | 12.50 |
| Row | sku | price |
|---|---|---|
| 1 | A-100 | 25.00 |
| 2 | B-200 | 0.00 |
The report points to row 2 and the “Positive unit price” rule.
Purchasing would need to agree on an exception and record when it applies. Keeping that decision with the rule explains why an older file was rejected.
RuleScript is the open language for writing the check. If the file identifies which items are for sale, a when condition can apply the price check to just those rows.