At the end of a long day, the inspector enters 3:40 p.m. as the start time and 3:10 p.m. as the end time. Nobody notices until the distributor returns the report.
Fixing it later takes a call, reopening the report and sometimes another visit. On site it takes ten seconds.
The rule
- Checks
- The Start time and End time fields of the form.
- Blocks when
- The start time is equal to or later than the end time.
- Message to the inspector
- “The start time must be earlier than the end time. Start time: 15:40, end time: 15:10.”
- Applies to
- Forms that have both times.
Test cases
This is how it’s simulated before saving: if a case doesn’t give the expected result, nothing is saved.
| Situation | Result |
|---|---|
| Start 9:00 · end 9:45 | Passes |
| Start 9:45 · end 9:00 | Blocks |
| Start 9:00 · end 9:00 | Blocks |
Ask your assistant for it
With the RETGAS connector in Claude, all you have to write is:
«Create a rule that blocks the report if the start time is not earlier than the end time, and make the message show the inspector both times.»
Why it matters
-
The message includes the values
The inspector sees the two times they entered. No guessing what is wrong.
-
One rule, every form
It is linked to every form that has both times. If you create a new form tomorrow, you link it and that’s it.
The engine flags and the person decides. Rules only run when they’re active and linked to the form. How they’re configured
It is the simplest rule and one of the ones that prevents the most returns. That’s why almost every inspection body starts here.
Other examples
- 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 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