1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  | <?xml version="1.0" encoding="UTF-8"?> 
 |  <CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> 
 |      <fullName>Shipment_Status_F__c</fullName> 
 |      <externalId>false</externalId> 
 |      <formula>IF (NOT( ISBLANK(DeliverySlip__c)), '已出库', 
 |      IF (OR(ISPICKVAL(Inspection_result__c, 'OK'),ISPICKVAL(Inspection_result__c, '现场出借')), '出库前已检测', 
 |          IF (ISPICKVAL(Inspection_result__c, 'NG'), 
 |              IF (ISPICKVAL(Inspection_result_NG__c, '维修'), 
 |                 Repair_Status_Text__c, 
 |                  IF (Arrival_in_wh__c, 
 |                     /*IF (Cancel_Select__c, '取消',*/ 
 |                      '待废弃', 
 |                    /*)*/ 
 |                     '待移至报废区' 
 |                  ) 
 |              ), 
 |              IF (StockDown__c, '已下架', 
 |                 IF (Cancel_Select__c, '取消', 
 |                      IF (NOT( ISBLANK(Shipment_request_time2__c)), '已出库指示', 
 |                          IF (NOT(ISBLANK(Select_Time__c)), '已分配', 
 |                              IF(ISPICKVAL(Consum_Apply__r.Status__c, '已批准') || ISPICKVAL(Consum_Apply__r.Status__c, '已出库指示'),IF (NOT(ISBLANK(Asset__c)), '暂定分配','待分配'), 
 |                                  Text(Consum_Apply__r.Status__c) 
 |                              ) 
 |                          ) 
 |                      ) 
 |                  ) 
 |              ) 
 |          ) 
 |      ) 
 |  )</formula> 
 |      <label>出库前状态</label> 
 |      <required>false</required> 
 |      <trackHistory>false</trackHistory> 
 |      <trackTrending>false</trackTrending> 
 |      <type>Text</type> 
 |      <unique>false</unique> 
 |  </CustomField> 
 |  
  |