Purchase Order Amount Validator
Validates that the purchase order total is within the supplier's minimum and maximum order amount limits.
Overview
The Purchase Order Amount Validator checks that the total value of the purchase order falls within the supplier's configured order amount limits. Both a minimum and maximum limit are supported. Violations are reported as warnings, so orders can still be saved and processed — the warning serves as an advisory notice to the buyer.
Identifier
| Property | Value |
|---|---|
| Connector ID | purchaseOrderAmountValidator |
| Validation Type | Amount |
| Validation Scope | Order |
Behavior
- If no supplier is set on the purchase order, validation is skipped
- Looks up the supplier and checks whether
MinimumOrderAmountorMaximumOrderAmountis configured - If neither limit is set, validation is skipped
- If the order currency differs from the supplier's preferred currency, the limit values are converted to the order currency before comparison
- If the order total is below the minimum, adds a warning to the order
- If the order total is above the maximum, adds a warning to the order
- If both checks pass, any existing amount error is removed
Error messages
| Condition | Severity | Translation Key |
|---|---|---|
| Total below minimum order amount | Warning | OrderAmountBelowMinimum |
| Total above maximum order amount | Warning | OrderAmountAboveMaximum |
Configuration
No additional properties required. Minimum and maximum order amounts are configured on the supplier, not the validator connector.
Related
Supplier order amount limits are configured in Supplier Configuration. The validator uses ICurrencyService for currency conversion when the order and supplier currencies differ.
