The photo evidence is what backs the report in front of the distributor and in an audit. If a photo is from another day, the report loses value.
Checking it by hand, photo by photo, isn’t feasible. The rule does it on every report.
The rule
- Checks
- The capture date the app stores with each photo and the visit date.
- Blocks when
- Any photo has a date different from the visit date.
- Message to the inspector
- A message pointing to the first photo that doesn’t match and its date.
- Applies to
- Forms with photo evidence.
Test cases
This is how it’s simulated before saving: if a case doesn’t give the expected result, nothing is saved.
| Situation | Result |
|---|---|
| All photos from March 14 · visit on March 14 | Passes |
| One photo from March 2 · visit on March 14 | Blocks |
Variant: the times match the photos
When the report is closed, the start time must be that of the first photo and the end time that of the last one. That way the form’s times are backed by the evidence.
Ask your assistant for it
With the RETGAS connector in Claude, all you have to write is:
«I need a rule that blocks the report if any photo wasn’t taken on the same day as the visit. Explain what it checks before saving it.»
Why it matters
-
The evidence backs the report
Each photo is tied to the visit day. That strengthens the report in front of the distributor.
-
No checking photo by photo
Nobody has to open each photo to look at the date. The rule checks it the same way every time.
The engine flags and the person decides. Rules only run when they’re active and linked to the form. How they’re configured
The photos are the proof that the visit happened. This rule makes sure the proof is from that day.
Other examples
- Times The start time comes before the end time
- Times The visit lasts at least the minimum time
- 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