From 8324dfcfe10db0214bbfa210dd91821247d6e6d5 Mon Sep 17 00:00:00 2001 From: yusuffAFEX Date: Sun, 22 Dec 2024 07:40:54 +0100 Subject: [PATCH] assignment-rule-roster-post-action --- one_fm/fixtures/assignment_rule.json | 64 ++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/one_fm/fixtures/assignment_rule.json b/one_fm/fixtures/assignment_rule.json index 2814993ab8..ae11ebe3fb 100644 --- a/one_fm/fixtures/assignment_rule.json +++ b/one_fm/fixtures/assignment_rule.json @@ -1,4 +1,68 @@ [ + { + "assign_condition": "status in (\"Pending\", \"Overdue\")", + "assignment_days": [ + { + "day": "Sunday", + "parent": "Roster Post Actions - Site Supervisor", + "parentfield": "assignment_days", + "parenttype": "Assignment Rule" + }, + { + "day": "Monday", + "parent": "Roster Post Actions - Site Supervisor", + "parentfield": "assignment_days", + "parenttype": "Assignment Rule" + }, + { + "day": "Tuesday", + "parent": "Roster Post Actions - Site Supervisor", + "parentfield": "assignment_days", + "parenttype": "Assignment Rule" + }, + { + "day": "Wednesday", + "parent": "Roster Post Actions - Site Supervisor", + "parentfield": "assignment_days", + "parenttype": "Assignment Rule" + }, + { + "day": "Thursday", + "parent": "Roster Post Actions - Site Supervisor", + "parentfield": "assignment_days", + "parenttype": "Assignment Rule" + }, + { + "day": "Friday", + "parent": "Roster Post Actions - Site Supervisor", + "parentfield": "assignment_days", + "parenttype": "Assignment Rule" + }, + { + "day": "Saturday", + "parent": "Roster Post Actions - Site Supervisor", + "parentfield": "assignment_days", + "parenttype": "Assignment Rule" + } + ], + "close_condition": "status == \"Completed\"", + "custom_routine_task": null, + "description": "

Here is to inform you that the following {{ doctype }}({{ name }}) requires your attention/action.\n
\n The details of the request are as follows:\n
\n

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
LabelValue
Start Date{{start_date}}
End Date{{end_date}}
Shift Supervisor{{supervisor}}

", + "disabled": 0, + "docstatus": 0, + "doctype": "Assignment Rule", + "document_type": "Roster Post Actions", + "due_date_based_on": null, + "field": "site_supervisor_name", + "is_assignment_rule_with_workflow": 0, + "last_user": null, + "modified": "2024-12-22 09:34:09.951249", + "name": "Roster Post Actions - Site Supervisor", + "priority": 0, + "rule": "Based on Field", + "unassign_condition": "status == \"Cancelled\"", + "users": [] + }, { "assign_condition": "workflow_state == \"Pending HR\"", "assignment_days": [