feat(assets): warranty-expiry 'Needs refresh' / 'Expires soon' badge (MAPPS-305) #309
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!309
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-305-warranty-needs-refresh-tag"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The asset detail page rendered the warranty date as text, so an admin had to spreadsheet-sweep the list to find devices in or past their warranty window. Derive a refresh-status bucket at read time from the
warranty_expirydate compared to today (in the user's profile timezone, viauser_todayfrom PMS-360): expired -> red "Needs refresh", within 30 days -> yellow "Expires soon", further out -> nothing. The badge sits next to the warranty date on the Status sidebar so a tech sees the cue without leaving the asset view. No scheduled job, no schema change - pure derived display from existing data. Threshold is hardcoded at 30 days; the operator-configurable threshold + asset-list "Needs refresh" filter (also called out on the ticket) are tracked as follow-ups under MAPPS-305.#MAPPS-305