From b89f98902dcbc9c8dc4b622f773f28ca1a9e2fd4 Mon Sep 17 00:00:00 2001 From: Kipa24 Date: Tue, 13 Aug 2024 22:21:13 +0530 Subject: [PATCH] defect - alr -1828 --- ...UpdateStartTimeToCurrentOrPast.validationRule-meta.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/default/objects/Visit/validationRules/UpdateStartTimeToCurrentOrPast.validationRule-meta.xml b/src/main/default/objects/Visit/validationRules/UpdateStartTimeToCurrentOrPast.validationRule-meta.xml index 607f5895..97234b68 100644 --- a/src/main/default/objects/Visit/validationRules/UpdateStartTimeToCurrentOrPast.validationRule-meta.xml +++ b/src/main/default/objects/Visit/validationRules/UpdateStartTimeToCurrentOrPast.validationRule-meta.xml @@ -4,10 +4,10 @@ true ALR- 1253 AND( -NOT($Permission.EHISBypassValidationRuleCustomPermission), -RecordType.DeveloperName = 'Inspection', -DATETIMEVALUE(ActualVisitStartTime) > NOW(), -ISPICKVAL(Status,"Completed") + NOT($Permission.EHISBypassValidationRuleCustomPermission), + RecordType.DeveloperName = 'Inspection', + ActualVisitStartTime > NOW(), + ISPICKVAL( Status , "In Progress") ) Update Actual Start Time to a current or past date.