Past Jobs & Quotes on the work order calls GET /past-jobs with zip, city, and street from the current inspection’s property. The backend matches other inspections and quotes by:
property.zipproperty.cityproperty.street onlyproperty.street for street name wordsIt does not use property.unit. For condos and multi-unit buildings where many units share the same street line and unit is stored in property.unit, the list effectively shows all jobs/quotes at that building address, not only the current unit.
Include unit (apartment/suite/condo unit) in the match logic so Past Jobs & Quotes reflects the same unit when property.unit is present, with sensible behavior when unit is blank or inconsistent (e.g. match building-level history only when unit is empty on both sides, or document the rule).
PastJobsQuotes.tsx — passes zip, city, street only today; may need to pass unit when present.attik-backend/src/routes/pastJobs.ts — aggregation $match stages; propertySchema already has optional property.unit.property.unit, they match only if units align (normalization rules TBD: trim, case, # vs Unit prefix, etc.).property.Please authenticate to join the conversation.
Planned
New Features
About 21 hours ago
Linear
Get notified by email when there are changes.
Planned
New Features
About 21 hours ago
Linear
Get notified by email when there are changes.