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: