Skip to content

Commit

Permalink
Merge pull request #3897 from ONE-F-M/188702801
Browse files Browse the repository at this point in the history
feat: Default Shift Checker Assignment rule - Site Supervisor
  • Loading branch information
ibtesam-onefm authored Dec 24, 2024
2 parents 622883d + ed7fefb commit 996fb79
Showing 1 changed file with 62 additions and 1 deletion.
63 changes: 62 additions & 1 deletion one_fm/fixtures/assignment_rule.json
Original file line number Diff line number Diff line change
Expand Up @@ -972,5 +972,66 @@
"rule": "Based on Field",
"unassign_condition": "workflow_state in ('Pending Approver', )",
"users": []
}
},
{
"name": "Default Shift Checker -Site Supervisor",
"modified": "2024-12-24 09:48:29.021713",
"docstatus": 0,
"document_type": "Default Shift Checker",
"priority": 0,
"disabled": 0,
"description": "<p>Here is to inform you that the following {{ doctype }}({{ name }}) requires your attention/action.\n <br>\n The details of the request are as follows:\n <br>\n </p><table cellpadding=\"0\" cellspacing=\"0\" border=\"1\" style=\"border-collapse: collapse;\">\n <thead>\n <tr>\n <th style=\"padding: 10px; text-align: left; background-color: #f2f2f2;\">Label</th>\n <th style=\"padding: 10px; text-align: left; background-color: #f2f2f2;\">Value</th>\n </tr>\n </thead>\n <tbody>\n \n <tr>\n <td style=\"padding: 10px;\">Start Date</td>\n <td style=\"padding: 10px;\">{{start_date}}</td>\n </tr>\n \n <tr>\n <td style=\"padding: 10px;\">End Date</td>\n <td style=\"padding: 10px;\">{{end_date}}</td>\n </tr>\n \n <tr>\n <td style=\"padding: 10px;\">Shift Supervisor</td>\n <td style=\"padding: 10px;\">{{shift_supervisor}}</td>\n </tr>\n \n <tr>\n <td style=\"padding: 10px;\">Site Supervisor</td>\n <td style=\"padding: 10px;\">{{site_supervisor}}</td>\n </tr>\n </tbody>\n </table>\n<p></p>",
"is_assignment_rule_with_workflow": 0,
"assign_condition": "status in (\"Pending\", \"Overdue\")",
"unassign_condition": "status == \"Cancelled\"",
"close_condition": "status == \"Completed\"",
"rule": "Based on Field",
"field": "site_supervisor_user",
"doctype": "Assignment Rule",
"assignment_days": [
{
"day": "Monday",
"parent": "Default Shift Checker -Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
},
{
"day": "Tuesday",
"parent": "Default Shift Checker -Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
},
{
"day": "Wednesday",
"parent": "Default Shift Checker -Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
},
{
"day": "Thursday",
"parent": "Default Shift Checker -Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
},
{
"day": "Friday",
"parent": "Default Shift Checker -Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
},
{
"day": "Saturday",
"parent": "Default Shift Checker -Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
},
{
"day": "Sunday",
"parent": "Default Shift Checker -Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
}
],
"users": []
}
]

0 comments on commit 996fb79

Please sign in to comment.