Skip to content

Commit

Permalink
Merge pull request #1384 from bcgov/EDRD-Main
Browse files Browse the repository at this point in the history
De-activating ACR validation rule.
  • Loading branch information
RanadheerRG authored Nov 8, 2024
2 parents 9715e7e + a541ff6 commit 6058368
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion force-app/main/default/classes/AccountTriggerHelper.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>EDRD_Validate_ACR_Insert</fullName>
<active>true</active>
<active>false</active>
<description>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&apos;s Account record type is &apos;Patient&apos;</description>
<errorConditionFormula>AND(
ISNEW(),
Expand Down

0 comments on commit 6058368

Please sign in to comment.