binxie
2024-01-17 92d30efcdebfc59500385e018d597a6b6a946075
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Check_FinishedOpp</fullName>
    <active>true</active>
    <description>保存时拦截询价修改</description>
    <errorConditionFormula>AND(OR(ISNEW(), ISCHANGED(InquiryCode__c) ), OR( InquiryCode__r.SAP_Send_OK__c, InquiryCode__r.StageName__c = &apos;取消&apos;, InquiryCode__r.StageName__c = &apos;失单&apos;))</errorConditionFormula>
    <errorDisplayField>InquiryCode__c</errorDisplayField>
    <errorMessage>询价已经win或已经取消/失单,请勿关联预留产品</errorMessage>
</ValidationRule>