Li Jun
2022-04-21 03a6b8730cde75e4c42634b676c96dd9caeda07f
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
39
40
41
42
43
44
45
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Elapsed_day_each_status__c</fullName>
    <description>6月3日
 契約書未回収の状態であれば、引合のSFDC最終処理日をみるように変更。変更部分
IF( ISBLANK(opportunity__r.SFDCLast_Process_Date__c) , null,
IF( ISBLANK(ContractReceivedDate__c) , (today() - opportunity__r.SFDCLast_Process_Date__c), 
 
 
2/8のレポートダッシュボードデモのために追加。
 
if(ISNULL(LastApproveDate__c)
        ,null,LastApproveDate__c - 
            if(AND(ISNULL(ContractReceivedDate__c),ISNULL(FirstApproveDate__c)),null,
                if(ISNULL(ContractReceivedDate__c),
                    if(ISNULL(FirstApproveDate__c),null,FirstApproveDate__c
                    ),ContractReceivedDate__c
                )
            )
)</description>
    <externalId>false</externalId>
    <formula>IF( ISBLANK(Opportunity__r.SFDCLast_Process_Date__c) , null,
IF( ISBLANK(ContractReceivedDate__c) , (today() - Opportunity__r.SFDCLast_Process_Date__c), 
IF( ISBLANK(FirstApproveDate__c) , (today() - ContractReceivedDate__c) ,
IF( ISBLANK(LastApproveDate__c) , (today() - FirstApproveDate__c) , 
IF( ISBLANK(X30_Deposit_Day__c) , (today() - LastApproveDate__c) , 
IF( ISBLANK(Deposit_In_Full_Day__c) , (today() - X30_Deposit_Day__c) , 
IF( ISBLANK(DeliveryDate__c) , (today() - Deposit_In_Full_Day__c) , null
)
)
)
)
)
)
)</formula>
    <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
    <label>各状态经过天数</label>
    <precision>18</precision>
    <required>false</required>
    <scale>0</scale>
    <trackHistory>false</trackHistory>
    <trackTrending>false</trackTrending>
    <type>Number</type>
    <unique>false</unique>
</CustomField>