From 399dc537e190e6b45e1e65ed919035af442c9f17 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 30 Jul 2021 22:54:05 +0000 Subject: [PATCH] --- docs/8.0/ayanova/docs/svc-pms.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/8.0/ayanova/docs/svc-pms.md b/docs/8.0/ayanova/docs/svc-pms.md index 0886466f..fb2c92ff 100644 --- a/docs/8.0/ayanova/docs/svc-pms.md +++ b/docs/8.0/ayanova/docs/svc-pms.md @@ -4,11 +4,21 @@ Notes for docs: -All selectable dates are advanced relatively based on the next service date calculation: -Next service date is calcualted as the repeat interval selected on PM then if exclude days are set the next service date is checked to ensure it doesn't fall on an excluded day of week. If it does fall on an excluded day then 1 day is added and it's checked against excluded days and this continues until it hits a non excluded day of week. + +### Automatic date calculations + +(Note: The very first time a Work order is generated from a newly saved PM it will take the exact values as entered by the user on the PM for all dates and transfer those to the first generated work order. Only after the first work order has been generated will the PM dates be re-calculated and updated for the **next** time it generates a work order in the process outlined below.) + +All selectable dates on the PM are advanced relatively based on the next service date calculation: + +Next service date is calculated as the repeat interval selected on PM then if exclude days are set the next service date is checked to ensure it doesn't fall on an excluded day of week. If it does fall on an excluded day then 1 day is added and it's checked against excluded days and this continues until it hits a non excluded day of week. + This Next service date calculated has the previous service date subtracted giving the total time span difference between the current generate date and the next generate date. That time span is then added to all the current dates (such as scheduled user start date etc) in the PM as well as the Next service date and the PM is saved ready for the next time it will go through the process again. If an date is left empty it will not be affected by this process so for example if you do not want a scheduled user date to be set or modified leave it blank in the PM. +### Service Date and Excluded days + +When a PM is first created it will use the exact service date chosen the **first** time it generates the first workorder regardless of which day it falls on as it's assumed the user specifically wants that particular day for the first work order generated from that PM. Subsequent generate events will take into account the chosen excluded days. \ No newline at end of file