<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>Inspection_result_notOK_cannot_Shippment</fullName> 
 | 
    <active>true</active> 
 | 
    <description>发货前-检测结果不合格,不能出库。</description> 
 | 
    <errorConditionFormula>Not($User.Batch_User__c) 
 | 
&& (IsBlank(Text(Inspection_result__c)) || IsPickval(Inspection_result__c, 'NG') || IsBlank(StockDown_time__c)) 
 | 
&& ISCHANGED(DeliverySlip__c) 
 | 
&& NOT(ISBLANK(DeliverySlip__c)) 
 | 
&& RecordType_F__c != 'AgencyToCenter'</errorConditionFormula> 
 | 
    <errorDisplayField>DeliverySlip__c</errorDisplayField> 
 | 
    <errorMessage>发货前-检测结果不合格,不能出库。</errorMessage> 
 | 
</ValidationRule> 
 |