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