Each distributor has its own requirements. For Distributor A and B, the meter serial on the bill must be the installed meter’s.
For the rest, that check doesn’t apply. A general rule would block reports that are fine.
The rule
- Checks
- The visit’s distributor, the meter serial on the bill and the actual meter serial.
- Blocks when
- The visit is for Distributor A or B, the bill was recorded and the two serials don’t match.
- Message to the inspector
- “The meter serial on the bill must match the actual meter. Bill meter: 7810-22, actual meter: 7810-25. Please check.”
- Applies to
- Periodic inspection forms, only for Distributor A and B.
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 · same serials | Passes |
| Distributor A · different serials | Blocks |
| Distributor C · different serials | Passes |
Variant: no bill, no charge
For other distributors: if no bill is generated, the subtotal, VAT, total and installments fields must stay empty.
Ask your assistant for it
With the RETGAS connector in Claude, all you have to write is:
«For Distributor A and B, the meter serial on the bill has to match the actual meter. For the others it doesn’t apply. Prepare it and test it with one case of each.»
Why it matters
-
One rule per requirement
Each distributor’s conditions live in separate rules. Changing one doesn’t touch the others.
-
It doesn’t over-block
The rule only runs for the distributors that require it. Everyone else’s reports go out as usual.
The engine flags and the person decides. Rules only run when they’re active and linked to the form. How they’re configured
Working with several distributors means working with several rulebooks. The engine applies each one separately.
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
- Tables Exposed piping has length, diameter and type
- Calculations The appliances’ power adds up
- Distributors The inspection fee is the one agreed with each distributor
- 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