From f5712470c739d442c886c89eb249c184b237724c Mon Sep 17 00:00:00 2001 From: deepakmulamalla Date: Fri, 25 Oct 2024 16:52:36 -0400 Subject: [PATCH 1/3] De-activating ACR VR --- .../EDRD_Validate_ACR_Insert.validationRule-meta.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), From 80d3fc18cc8e4502c42c5805549fe4c983663369 Mon Sep 17 00:00:00 2001 From: deepakmulamalla Date: Fri, 25 Oct 2024 17:10:07 -0400 Subject: [PATCH 2/3] De-activating ACR VR --- .../EDRD_Validate_ACR_Insert.validationRule-meta.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), From bac8a5b7595e6119dad0e39b2245a92aa6d5d0e3 Mon Sep 17 00:00:00 2001 From: deepakmulamalla Date: Tue, 5 Nov 2024 18:42:34 -0500 Subject: [PATCH 3/3] Changes Related EDRD-988 --- force-app/main/default/classes/AccountTriggerHelper.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;