binxie
2024-01-20 0a2fc19461a141fbbb2c303142afdee22c72daac
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>Fixture_OneToOne_Link_Should_Delete</fullName>
    <active>true</active>
    <errorConditionFormula>IsBlank(Fixture_OneToOne_Link__c) = false
&amp;&amp; Not(IsNew())
&amp;&amp; (Delete_Flag__c == true || Freeze_sign_Abandoned_Flag__c == true)
&amp;&amp; (PRIORVALUE(Delete_Flag__c) == false || PRIORVALUE(Freeze_sign_Abandoned_Flag__c) == false)
 &amp;&amp; AssetManageConfirm__c = TRUE &amp;&amp; NOT($User.Batch_User__c)
&amp;&amp; $User.ProfileId &lt;&gt;&apos;00e10000000dEQx&apos;
&amp;&amp; $User.ProfileId &lt;&gt; $Label.Profile_Skip_OneToOneCheck
&amp;&amp; $User.Id &lt;&gt; $Setup.bp3_Setting__c.BeiPin_ZhongJian__c
&amp;&amp; CONTAINS(TEXT(Internal_asset_location__c), &apos;备品中心&apos;)</errorConditionFormula>
    <errorDisplayField>Fixture_OneToOne_Link__c</errorDisplayField>
    <errorMessage>不删除一对一, 不可以 进行 消耗, 欠品放弃, 冻结 或 废弃 的操作</errorMessage>
</ValidationRule>