<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>AWAL_HoldbackPeriodInMonths</fullName>
    <active>true</active>
    <errorConditionFormula>AND(
    RecordType.DeveloperName = &apos;AWAL&apos;,
    NOT($Permission.AWAL_Bypass_VRs),
    NOT(ISPICKVAL(StageName, &quot;Deal Tracking&quot;)),
    NOT(ISPICKVAL(StageName, &quot;Deal Discussions&quot;)),
    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")))),
    ISPICKVAL(ContractBasis__c, &apos;License Period &amp; Holdback Period&apos;),
    ISBLANK(HoldbackPeriodInMonths__c)
)</errorConditionFormula>
    <errorDisplayField>HoldbackPeriodInMonths__c</errorDisplayField>
    <errorMessage>&apos;Holdback Period (in months)&apos; is mandatory when &apos;Contract Basis&apos; equals to &apos;License Period &amp; Holdback Period&apos;</errorMessage>
</ValidationRule>
