<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>AWAL_RequireTimeToRecoupYrs</fullName>
    <active>true</active>
    <errorConditionFormula>AND (
    RecordType.DeveloperName = &apos;AWAL&apos;,
    NOT($Permission.AWAL_Bypass_VRs),
        NOT(AND(Is_Migrated__c, OR(ISPICKVAL(Migrated_From_Opportunity__r.StageName, "Pass to Approver (KLS only)"), ISPICKVAL(Migrated_From_Opportunity__r.StageName, "Passed to Finance"), ISPICKVAL(Migrated_From_Opportunity__r.StageName, "Passed to BA")))),
    NOT(ISPICKVAL(StageName, &quot;Deal Tracking&quot;)),
    NOT(ISPICKVAL(StageName, &quot;Deal Discussions&quot;)),
    NOT(ISPICKVAL(StageName, &quot;Passed to Finance&quot;)),
    TotalCommittedFunding__c &gt; 0,
    ISBLANK(TimeToRecoupYrs__c)
)</errorConditionFormula>
    <errorDisplayField>TimeToRecoupYrs__c</errorDisplayField>
    <errorMessage>You must complete this field once the stage moves beyond &quot;Passed to Finance&quot; and &quot;Total Committed Funding&quot; is greater than 0.</errorMessage>
</ValidationRule>
