phase-4: preventive maintenance and calibration modules
This commit is contained in:
@@ -187,6 +187,46 @@ SETTINGS_SCHEMA: list[dict[str, Any]] = [
|
||||
"max": None,
|
||||
"options": ["attended_at", "restored_at", "closed_at"],
|
||||
},
|
||||
{
|
||||
"key": "pm_inhouse_lead_days",
|
||||
"type": "int",
|
||||
"default": 15,
|
||||
"label": "In-House PM Lead Days",
|
||||
"description": "Days before planned in-house PM date when status transitions from upcoming to due.",
|
||||
"min": 1,
|
||||
"max": 90,
|
||||
"options": None,
|
||||
},
|
||||
{
|
||||
"key": "pm_outsourced_lead_days",
|
||||
"type": "int",
|
||||
"default": 15,
|
||||
"label": "Outsourced PM Lead Days",
|
||||
"description": "Days before planned outsourced PM date when status transitions from upcoming to due.",
|
||||
"min": 1,
|
||||
"max": 90,
|
||||
"options": None,
|
||||
},
|
||||
{
|
||||
"key": "calibration_lead_days",
|
||||
"type": "int",
|
||||
"default": 15,
|
||||
"label": "Calibration Lead Days",
|
||||
"description": "Days before calibration due date when status transitions from upcoming to due.",
|
||||
"min": 1,
|
||||
"max": 90,
|
||||
"options": None,
|
||||
},
|
||||
{
|
||||
"key": "red_threshold_days",
|
||||
"type": "int",
|
||||
"default": 7,
|
||||
"label": "Critical Alert Threshold Days",
|
||||
"description": "Days remaining at or below which a due schedule alert escalates to critical (red).",
|
||||
"min": 1,
|
||||
"max": 60,
|
||||
"options": None,
|
||||
},
|
||||
]
|
||||
|
||||
SETTINGS_BY_KEY: dict[str, dict[str, Any]] = {item["key"]: item for item in SETTINGS_SCHEMA}
|
||||
|
||||
Reference in New Issue
Block a user