Skip to content

Commit

Permalink
Merge pull request #3890 from ONE-F-M/assignment-rule-roster-employee…
Browse files Browse the repository at this point in the history
…-action

feat: Roster Employee Action Assignment Rule
  • Loading branch information
pjamsheer authored Dec 24, 2024
2 parents 1545bd4 + 7635c7f commit 83fcb99
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions one_fm/fixtures/assignment_rule.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,68 @@
[
{
"assign_condition": "status in (\"Pending\", \"Overdue\")",
"assignment_days": [
{
"day": "Sunday",
"parent": "Roster Employee Actions - Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
},
{
"day": "Monday",
"parent": "Roster Employee Actions - Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
},
{
"day": "Tuesday",
"parent": "Roster Employee Actions - Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
},
{
"day": "Wednesday",
"parent": "Roster Employee Actions - Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
},
{
"day": "Thursday",
"parent": "Roster Employee Actions - Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
},
{
"day": "Friday",
"parent": "Roster Employee Actions - Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
},
{
"day": "Saturday",
"parent": "Roster Employee Actions - Site Supervisor",
"parentfield": "assignment_days",
"parenttype": "Assignment Rule"
}
],
"close_condition": "status == \"Completed\"",
"custom_routine_task": null,
"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;\">{{supervisor}}</td>\n </tr>\n </tbody></table><p></p>",
"disabled": 0,
"docstatus": 0,
"doctype": "Assignment Rule",
"document_type": "Roster Employee Actions",
"due_date_based_on": null,
"field": "site_supervisor_name",
"is_assignment_rule_with_workflow": 0,
"last_user": null,
"modified": "2024-12-22 10:06:31.263792",
"name": "Roster Employee Actions - Site Supervisor",
"priority": 0,
"rule": "Based on Field",
"unassign_condition": "status == \"Cancelled\"",
"users": []
},
{
"assign_condition": "status in (\"Pending\", \"Overdue\")",
"assignment_days": [
Expand Down

0 comments on commit 83fcb99

Please sign in to comment.