<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>After_Request_approve</fullName>
|
<active>true</active>
|
<description>申请单批准后,不能编辑耗材备品借用信息</description>
|
<errorConditionFormula>((TEXT( Status__c) <> '草案中' && TEXT( Status__c) <> '填写完毕' && TEXT( Status__c) <> '申请中' ))
|
&&
|
(($User.ProfileId <>'00e10000000Y3o5')&&
|
($User.ProfileId <>'00e10000000xnoT')&&
|
($User.ProfileId <>'00e10000000xo1D')
|
)
|
&&
|
(ISCHANGED(Person_In_Charge__c) || ISCHANGED(applyUser__c) || ISCHANGED(ApplyPerson_Phone__c) || ISCHANGED(Hospital__c) || ISCHANGED(Strategic_dept__c) || ISCHANGED(Account__c) || ISCHANGED(Loaner_medical_Staff__c) || ISCHANGED(Phone_number__c) || ISCHANGED(demo_purpose2__c) || ISCHANGED(Product_category__c) || ISCHANGED(AnimalExerimentFlag__c) || ISCHANGED(Campaign__c)|| ISCHANGED(Demo_purpose_text__c) || ISCHANGED(Request_demo_detail__c) || ISCHANGED(Request_shipping_day__c) ||
|
ISCHANGED(Shipment_address__c) || ISCHANGED(Dealer__c)
|
|| ISCHANGED(Loaner_received_staff__c) || ISCHANGED(direct_shippment_address__c) || ISCHANGED(direct_send__c) || ISCHANGED(pickup_time__c) || ISCHANGED(Loaner_received_staff_phone__c) || ISCHANGED(Post_Code__c) || ISCHANGED(Is_Special_Rental__c)
|
)
|
&& NOT($User.Batch_User__c) && NOT($User.Batch_User__c) && $User.ProfileId <>'00e10000000dEQx'</errorConditionFormula>
|
<errorMessage>申请单批准后,不能编辑耗材备品借用信息</errorMessage>
|
</ValidationRule>
|