<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>You_Xiao_Ku_Cun_chk</fullName>
|
<active>true</active>
|
<description>有效库存不能小于0
|
2018/09/14修改前:
|
RecordTypeId = '01210000000kOPR' && Quantity > 0
|
&& You_Xiao_Ku_Cun__c < 0 && AssetManageConfirm__c = TRUE
|
&& NOT($User.Batch_User__c)
|
&& $User.ProfileId <>'00e10000000dEQx'</description>
|
<errorConditionFormula>RecordTypeId = '01210000000kOPR' && Quantity > 0
|
&& You_Xiao_Ku_Cun__c < 0 && AssetManageConfirm__c = TRUE
|
&& NOT($User.Batch_User__c)
|
&& ($User.ProfileId = '00e10000000xnoT' || CONTAINS($Label.ProfileId_EquCenCheckAndDepot, $User.ProfileId) || CONTAINS($Label.ProfileId_EquCenAdmin, $User.ProfileId))
|
&& (ISCHANGED(Out_of_wh__c) || ISCHANGED(Quantity))</errorConditionFormula>
|
<errorDisplayField>X147P_reserch_target__c</errorDisplayField>
|
<errorMessage>借出_分配_数 不能大于 设备的总数</errorMessage>
|
</ValidationRule>
|