This commit is contained in:
@@ -326,6 +326,7 @@ namespace AyaNova.Biz
|
|||||||
if (ayaEvent != AyaEvent.Created && ayaEvent != AyaEvent.Modified)
|
if (ayaEvent != AyaEvent.Created && ayaEvent != AyaEvent.Modified)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
//CREATION ACTIONS
|
||||||
if (ayaEvent == AyaEvent.Created)
|
if (ayaEvent == AyaEvent.Created)
|
||||||
{
|
{
|
||||||
//CONTRACT AUTO SET
|
//CONTRACT AUTO SET
|
||||||
@@ -344,7 +345,7 @@ namespace AyaNova.Biz
|
|||||||
}
|
}
|
||||||
|
|
||||||
//RESPONSE TIME / COMPLETE BY AUTO SET
|
//RESPONSE TIME / COMPLETE BY AUTO SET
|
||||||
//precedence: manuall set -> contract -> global biz setting
|
//precedence: manually pre-set -> contract -> global biz
|
||||||
if (newObj.CompleteByDate != null)
|
if (newObj.CompleteByDate != null)
|
||||||
{
|
{
|
||||||
if (newObj.ContractId != null)
|
if (newObj.ContractId != null)
|
||||||
@@ -357,14 +358,9 @@ namespace AyaNova.Biz
|
|||||||
{
|
{
|
||||||
if(AyaNova.Util.ServerGlobalBizSettings.WorkOrderCompleteByAge!=TimeSpan.Zero)
|
if(AyaNova.Util.ServerGlobalBizSettings.WorkOrderCompleteByAge!=TimeSpan.Zero)
|
||||||
newObj.CompleteByDate = DateTime.UtcNow.Add(AyaNova.Util.ServerGlobalBizSettings.WorkOrderCompleteByAge);
|
newObj.CompleteByDate = DateTime.UtcNow.Add(AyaNova.Util.ServerGlobalBizSettings.WorkOrderCompleteByAge);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user