From 9d4c7bb4a19d46f853d656d3884589384eacce70 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 12 May 2021 00:03:39 +0000 Subject: [PATCH] --- server/AyaNova/biz/WorkOrderBiz.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/AyaNova/biz/WorkOrderBiz.cs b/server/AyaNova/biz/WorkOrderBiz.cs index 4fb1157c..16a6aa5b 100644 --- a/server/AyaNova/biz/WorkOrderBiz.cs +++ b/server/AyaNova/biz/WorkOrderBiz.cs @@ -1765,8 +1765,12 @@ namespace AyaNova.Biz } //Contract - //todo: need to have a bombproof way to get the effective contract and statically hold it here in wobiz until processing finished because other objects in tree may also need it - //figure out if there will only ever be ONE effective contract or multiple and then can determine how to handle here + todo: need to have a bombproof way to get the effective contract and statically hold it here in wobiz until processing finished because other objects in tree may also need it + figure out if there will only ever be ONE effective contract or multiple and then can determine how to handle here + //Yes precedence is Unit->Customer->headoffice. + //it's not permitted to have more than one contracted unit on a workorder + //if a unit has a contract on workorder it applies to *entire* workorder so they must use one unit under contract and it's the entirety of the work performed + //if they don't want the rest of wo to be discounted etc break; case AyaEvent.Modified: