In the appliances table, each appliance carries a census code that says what appliance it is, its type and its capacity. Distributor A wants it in 4 characters; Distributor B, in 3.
A mistyped code, or one written in another distributor’s format, sends the report back. It’s one of the most frequent reasons for returns.
The rule
- Checks
- The visit’s distributor and the census code in every row of the appliances table, with its room.
- Blocks when
- A code doesn’t have the distributor’s format: 4 characters for A, 3 for B, with a valid type in its position. Special codes for planned points are accepted. It doesn’t apply on a main line.
- Message to the inspector
- “Appliance 2 in room Kitchen doesn’t meet the required census format SAD.”
- Applies to
- Forms with an appliances table, for distributors that require a census.
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 · SAAD | Passes |
| Distributor A · SAD | Blocks |
| Distributor B · SAD | Passes |
| Two identical appliances · SAAD*2 | Passes |
| Special planned-point code · 99 | Passes |
Variant: one format for all
An inspection body can require the 4-character code on all its forms and with any distributor. If a distributor changes its format, the rule is adjusted; the inspector’s app doesn’t change.
Ask your assistant for it
With the RETGAS connector in Claude, all you have to write is:
«In the appliances table, the census code must be 4 characters for Distributor A and 3 for Distributor B, accepting the special planned-point codes. It doesn’t apply on a main line. Prepare it and test it with one code of each format.»
Why it matters
-
It says which row to fix
The message gives the appliance number, the room and the code. The inspector goes straight to that row.
-
Each distributor’s format
The rule applies the format that matches the visit’s distributor. One inspection form works for several.
The engine flags and the person decides. Rules only run when they’re active and linked to the form. How they’re configured
The census is what the distributor loads into its system. If the code arrives correctly written, the report won’t come back over it.
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
- Distributors The inspection fee is the one agreed with each distributor
- 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