<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>AWAL_BlockCurrencyUpdate</fullName>
    <active>true</active>
    <errorConditionFormula>AND (
    RecordType.DeveloperName = &apos;AWAL&apos;,
    NOT($Permission.AWAL_Bypass_VRs),
    NOT(ISPICKVAL(PRIORVALUE(StageName), &apos;Deal Tracking&apos;)),
    NOT(ISPICKVAL(PRIORVALUE(StageName), &apos;Deal Discussions&apos;)),
    NOT(ISPICKVAL(PRIORVALUE(StageName), &apos;Passed to Finance&apos;)),
    NOT(ISPICKVAL(PRIORVALUE(StageName), &apos;Passed to Finance Approver&apos;)),
    NOT(ISPICKVAL(PRIORVALUE(StageName), &apos;Finance Analysis Complete&apos;)),
    ISCHANGED(OpportunityCurrency__c)
)</errorConditionFormula>
    <errorDisplayField>OpportunityCurrency__c</errorDisplayField>
    <errorMessage>You cannot update the Opportunity Currency at this stage. To make changes, please revert the status to &apos;Finance Analysis Complete&apos; or an earlier stage.</errorMessage>
</ValidationRule>
