Li Jun
2022-05-11 b776940205e893302f77d24c4285613f228b44c6
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
38
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Status_1__c</fullName>
    <externalId>false</externalId>
    <formula>CASE(OverviewStatus__c,
  &apos;无效合同&apos;, &apos;无效&apos;,
  &apos;冻结&apos;, &apos;冻结&apos;,
  IF(ReturnFlag__c,
    IF(Not(OR(ISNULL(LastApproveDate__c), LastApproveDate__c = DATEVALUE(&apos;1900-1-1&apos;))), &apos;退货&apos;,
      &apos;冻结&apos;
    ),
  IF(OverviewStatus__c = &apos;订单完成&apos;,
    &quot;结束&quot;,
  IF(Not(OR(ISNULL( InstallDate__c ), InstallDate__c = DATEVALUE(&apos;1900-1-1&apos;))),
    &quot;发货&quot;,
  IF(Not(OR(ISNULL( DeliveryDate__c ), DeliveryDate__c = DATEVALUE(&apos;1900-1-1&apos;))),
    &quot;发货&quot;,
    CASE(Opportunity__r.StageName,
      &quot;引合&quot;, IF(Not(OR(ISNULL( FirstApproveDate__c ), FirstApproveDate__c = DATEVALUE(&apos;1900-1-1&apos;))),
          &quot;注残&quot;,
          &quot;询价&quot;
      ),
      &quot;注残&quot;,&quot;注残&quot;,
      &quot;出荷&quot;,&quot;发货&quot;,
      &quot;完了&quot;,&quot;完毕&quot;,
      &quot;削除&quot;,&quot;取消&quot;,
      &quot;敗戦&quot;,&quot;失单&quot;,
      Text(Opportunity__r.StageName)
    )
  ))))
)</formula>
    <label>注残状态1</label>
    <required>false</required>
    <trackHistory>false</trackHistory>
    <trackTrending>false</trackTrending>
    <type>Text</type>
    <unique>false</unique>
</CustomField>