| <?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>From 备品Set</description> | 
|     <errorConditionFormula>DataMigration_Flag__c == false | 
| && 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))</errorConditionFormula> | 
|     <errorDisplayField>DeliverySlip__c</errorDisplayField> | 
|     <errorMessage>发货前-检测结果不合格,不能出库。</errorMessage> | 
| </ValidationRule> |