diff --git a/force-app/main/default/classes/AccountTriggerHelper.cls b/force-app/main/default/classes/AccountTriggerHelper.cls index 44f6335c6..b79a5a568 100644 --- a/force-app/main/default/classes/AccountTriggerHelper.cls +++ b/force-app/main/default/classes/AccountTriggerHelper.cls @@ -75,7 +75,7 @@ public without sharing class AccountTriggerHelper { String existingValue = String.isEmpty(caseObj.EDRD_Notes__c) ? '' : caseObj.EDRD_Notes__c; if (!caseObj.IsClosed) { - caseObj.EDRD_MOHFunding_Decision__c = ESA_cls_constants.EDRD_FUNDING_DECISION_DENIED; + caseObj.EDRD_MOHFunding_Decision__c = (caseObj.Status == 'MOH Review') ? ESA_cls_constants.EDRD_FUNDING_DECISION_DENIED : NULL; caseObj.Status = ESA_cls_constants.EDRD_CASE_STATUS_CANCELLED; caseObj.EDRD_Case_Closure_Reasons__c = ESA_cls_constants.EDRD_CASE_CLOSER_REASON_PATIENT_DECEASED; caseObj.EDRD_Notes__c = existingValue + '\n' + Label.EDRD_label_Patient_deceased; diff --git a/force-app/main/default/objects/AccountContactRelation/validationRules/EDRD_Validate_ACR_Insert.validationRule-meta.xml b/force-app/main/default/objects/AccountContactRelation/validationRules/EDRD_Validate_ACR_Insert.validationRule-meta.xml index 54efb733e..a9b093b4f 100644 --- a/force-app/main/default/objects/AccountContactRelation/validationRules/EDRD_Validate_ACR_Insert.validationRule-meta.xml +++ b/force-app/main/default/objects/AccountContactRelation/validationRules/EDRD_Validate_ACR_Insert.validationRule-meta.xml @@ -1,7 +1,7 @@ EDRD_Validate_ACR_Insert - true + false This validation rule prevents an inactive Account Contact Relation from being created when an EDRD user associates a Physician role with a Provider Account, and the related Contact's Account record type is 'Patient' AND( ISNEW(),