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
38
39
40
41
42
43
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Status1_Elapsed_Date_Function__c</fullName>
    <externalId>false</externalId>
    <formula>if (
  isblank( Last_Follow_Up_Date__c),
  if (
    isblank( Authorized_Start_Date__c),
    if (
      isblank( Closing_Bid_Date__c),
      if (
        isblank( Assistant_Applied_Date__c),
        if (
          isblank( Agency_Contract_Date1__c),
          if (
            isblank( Sales_Shop_Hospital_Contract__c),
            if (
              isblank( SFDCLast_Process_Date__c),
              today() - Follow_Start_Date__c,
              SFDCLast_Process_Date__c - Follow_Start_Date__c
            ),  
            Sales_Shop_Hospital_Contract__c - Follow_Start_Date__c
          ),  
          Agency_Contract_Date1__c - Follow_Start_Date__c
        ),  
        Assistant_Applied_Date__c - Follow_Start_Date__c
      ),  
      Closing_Bid_Date__c - Follow_Start_Date__c
    ),  
    Authorized_Start_Date__c - Follow_Start_Date__c
  ),  
  Last_Follow_Up_Date__c - Follow_Start_Date__c
)</formula>
    <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
    <label>未拜访日数(公式)</label>
    <precision>18</precision>
    <required>false</required>
    <scale>2</scale>
    <trackHistory>false</trackHistory>
    <trackTrending>false</trackTrending>
    <type>Number</type>
    <unique>false</unique>
</CustomField>