| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>Cannot_Create_When_IH_Not_App</fullName> | 
|     <active>true</active> | 
|     <errorConditionFormula>NOT(ISBLANK(Inventory_Header__c)) | 
| && NOT( ISPICKVAL(Inventory_Header__r.Inventory_Status__c, '已批准')) | 
| &&  ISNEW()</errorConditionFormula> | 
|     <errorMessage>盘点报告批准后才能创建遗失报告</errorMessage> | 
| </ValidationRule> |