With Distributor A, B and C the inspection fee is agreed at 90,000. If an inspector records another amount, the difference shows up weeks later, at reconciliation.
With other distributors the fee is different, so the rule can’t be general.
The rule
- Checks
- The visit’s distributor and the inspection fee the app sends.
- Blocks when
- The visit is for Distributor A, B or C and the fee is not 90,000 or is empty.
- Message to the inspector
- “For this distributor the inspection fee must be 90,000.”
- Applies to
- Periodic inspection forms.
Test cases
This is how it’s simulated before saving: if a case doesn’t give the expected result, nothing is saved.
| Situation | Result |
|---|---|
| Distributor A · 90,000 | Passes |
| Distributor B · 85,000 | Blocks |
| Distributor C · no amount | Blocks |
| Another distributor · 70,000 | Passes |
Ask your assistant for it
With the RETGAS connector in Claude, all you have to write is:
«For Distributor A, B and C I want the inspection fee to always be 90,000. Prepare the rule and test it before saving it.»
Why it matters
-
It uses the data the app sends
Besides the form fields, the rule can check visit data such as the fee and the distributor.
-
The test cases are the rule
The table above is exactly the one the assistant builds before saving: if a case doesn’t give the expected result, nothing is saved.
The engine flags and the person decides. Rules only run when they’re active and linked to the form. How they’re configured
This is the example we show in the connector video: one sentence, a table of cases and a rule ready to activate.
Other examples
- Times The start time comes before the end time
- Times The visit lasts at least the minimum time
- Photos The photos were taken on the day of the visit
- Result consistency A compliant report can’t have failed items
- Distributors The meter serial on the bill matches the actual meter
- Tables Exposed piping has length, diameter and type
- Calculations The appliances’ power adds up
- Appliance census The census code follows each distributor’s format
- Appliance census The census type matches the flue (D.E.P.C.) column
- Appliance census Planned points in the census are marked as planned
- Appliance census Every appliance is in a registered room