<?xml version="1.0" encoding="UTF-8"?>
<!-- Synthetic teaching fixture. Not extracted from a customer org and not deployed or runtime-tested. -->
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Closed_Won_Requires_Amount</fullName>
    <active>true</active>
    <description>Synthetic documentation example for Opportunity. Business intent must be confirmed separately.</description>
    <errorConditionFormula>AND(ISPICKVAL(StageName, "Closed Won"), OR(ISBLANK(Amount), Amount &lt;= 0))</errorConditionFormula>
    <errorDisplayField>Amount</errorDisplayField>
    <errorMessage>Enter a positive amount before closing this opportunity as won.</errorMessage>
</ValidationRule>
