| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 | | <?xml version="1.0" encoding="UTF-8"?> |  | <CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> |  |     <fullName>Product_Date__c</fullName> |  |     <externalId>false</externalId> |  |     <formula>IF( BEGINS( Bar_Code__c , '241'),  |  |       IF(MID(Bar_Code__c ,4,7)= OT_Code__c && MID(Bar_Code__c ,11,2)= '11' ,  |  |       DATEVALUE('20'&MID( Bar_Code__c , 13, 2)&"-"&MID( Bar_Code__c , 15, 2)&"-"&if(MID(Bar_Code__c , 17, 2)= '00','01',MID(Bar_Code__c , 17, 2))), |  |            IF(MID(Bar_Code__c ,4,6)= OT_Code__c && MID(Bar_Code__c ,10,2)= '11' ,  |  |           DATEVALUE('20'&MID( Bar_Code__c , 12, 2)&"-"&MID( Bar_Code__c , 14, 2)&"-"&if(MID(Bar_Code__c , 16, 2)= '00','01',MID(Bar_Code__c , 16, 2))), |  |               IF(MID(Bar_Code__c ,4,8)= OT_Code__c && MID(Bar_Code__c ,12,2)= '11' ,  |  |               DATEVALUE('20'&MID( Bar_Code__c , 14, 2)&"-"&MID( Bar_Code__c , 16, 2)&"-"&if(MID(Bar_Code__c , 18, 2)= '00','01',MID(Bar_Code__c , 18, 2))), |  |                     IF(MID(Bar_Code__c ,4,9)= OT_Code__c && MID(Bar_Code__c ,13,2)= '11',  |  |                     DATEVALUE('20'&MID( Bar_Code__c , 15, 2)&"-"&MID( Bar_Code__c , 17, 2)&"-"&if(MID(Bar_Code__c , 19, 2)= '00','01',MID(Bar_Code__c , 19, 2))), null)))),  |  | if(MID(Bar_Code__c ,17,2)= '11',DATEVALUE('20'&MID( Bar_Code__c , 19, 2)&"-"&MID( Bar_Code__c , 21, 2)&"-"&if(MID(Bar_Code__c , 23, 2)= '00','01',MID(Bar_Code__c , 23, 2))),null))</formula> |  |     <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs> |  |     <label>生产日期</label> |  |     <required>false</required> |  |     <trackHistory>false</trackHistory> |  |     <trackTrending>false</trackTrending> |  |     <type>Date</type> |  | </CustomField> | 
 |