binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
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>Status_Formula_Retention_Days__c</fullName>
    <description>20230911 BK
Key_tipics_last_update_day__c,替换为 Key_tipics_last_update_dayF__c,</description>
    <externalId>false</externalId>
    <formula>IF(Not(ISNULL(Min_FirstApproveDate__c)) ,0, 
(IF(OR(SAP_Send_OK__c, Text(StageName)=&quot;注残&quot;, Text(StageName)=&quot;出荷&quot;, Text(StageName)=&quot;完了&quot;) ,today()-SFDCLast_Process_Date__c, 
(IF(Not(ISNULL(Sales_Shop_Hospital_Contract__c )) ,today()-Agent_Hospital_Contract_day_last_update__c, 
(IF(Not(ISNULL(Agency_Contract_Date1__c    )) ,today()-Agency_Contract_Date_last_update__c, 
(IF(Not(ISNULL(Assistant_Applied_Date__c )) ,IF(ISNULL(Contract_DB_complite_day__c),IF(ISNULL(Contract_DB_SalesDept_complite_day__c),today()-Assistant_Applied_Date__c,today()-Contract_DB_SalesDept_complite_day__c),today()-Contract_DB_complite_day__c), 
(IF(Not(ISNULL(Closing_Bid_Date__c )) ,today()-Closing_Bid_Date__c, 
(IF(Not(ISNULL(Autholization_Activated_Date__c )) ,IF(Not(ISNULL(Bid_Date__c)),today()-Bid_Date__c,today()-Authorized_Date__c), 
(IF(Not(ISNULL(Authorized_Date__c )) ,IF(Not(ISNULL(Bid_Date__c)),today()-Bid_Date__c,today()-Authorized_Date__c), 
(IF(Not(ISNULL(Last_Follow_Up_Date__c )) ,today()-Last_Follow_Up_Date__c, 
(IF(DATEVALUE(LastModifiedDate) &gt; DATEVALUE(CreatedDate) ,today()-Key_tipics_last_update_dayF__c, 
today()-Created_Day__c 
)) 
)) 
)) 
)) 
)) 
)) 
)) 
)) 
)) 
)</formula>
    <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
    <label>状态2各阶段滞留天数</label>
    <precision>18</precision>
    <required>false</required>
    <scale>0</scale>
    <trackHistory>false</trackHistory>
    <trackTrending>false</trackTrending>
    <type>Number</type>
    <unique>false</unique>
</CustomField>