<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>New_Request_Verify</fullName>
|
<active>true</active>
|
<description>新建备品借出申请时,不能填写回库物流信息和签字信息</description>
|
<errorConditionFormula>isnew()
|
&&
|
($User.ProfileId <>'00e10000000Y3o5')
|
&&
|
( not(ISBLANK(text(Return_Track_Company__c))) ||
|
not(ISBLANK(text(Return_Distrubutor_Method__c))) ||
|
not(ISBLANK(Return_Track_Number__c)) ||
|
not(ISBLANK(Return_Trake_Staff__c)) ||
|
(not(ISBLANK(HP_received_sign_text__c)) && NOT(TEXT(Routine_Check_Status__c) = 'OK')) ||
|
(not(ISBLANK(HP_received_sign_day__c)) && NOT(TEXT(Routine_Check_Status__c) = 'OK'))
|
)</errorConditionFormula>
|
<errorDisplayField>Return_to_wh_staff__c</errorDisplayField>
|
<errorMessage>新建备品借出申请时,不能填写回库物流信息和签字信息</errorMessage>
|
</ValidationRule>
|