Li Jun
2022-04-21 03a6b8730cde75e4c42634b676c96dd9caeda07f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>discount_apply_user</fullName>
    <active>true</active>
    <description>「修理主负责人」と「修理委托者」と「助理」 のみ。申請可能</description>
    <errorConditionFormula>TEXT(Repair_quotation_status__c) = &quot;减价申请填写完毕&quot; &amp;&amp; isChanged(Repair_quotation_status__c) &amp;&amp;
Not(OR(
 $User.Id = Repair__r.Hospital__r.FSE_SP_Main_Leader__c,
 $User.Id = Repair__r.Hospital__r.FSE_GI_Main_Leader__c,
 $User.Id = Repair__r.Incharge_Staff__c,
 $User.Id = Repair__r.CreatedById,
 $User.Id = Repair__r.Incharge_Staff__r.ManagerId,
 TEXT($User.Job_Category__c) = &quot;支援&quot;
))</errorConditionFormula>
    <errorMessage>「修理作成者」「修理主负责人」「修理委托者」以及「助理」才能做减价申请</errorMessage>
</ValidationRule>