Li Jun
2022-05-10 51fb56f3f5b0dc96d7f93a71f9b61263e303243f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>If_CurrentSeason_F__c</fullName>
    <externalId>false</externalId>
    <formula>/**
IF(AND(text(Status__c)=&quot;计划中&quot;,OPDPlan_ImplementDate__c &gt;= DATE(YEAR(today()), MONTH(today()), 1),OPDPlan_ImplementDate__c&lt;= DATE(YEAR(today()), MONTH(today()) + 3, 1) - 1 ), 1, 0)
**/
IF(
AND(text(Status__c)=&quot;计划中&quot;,
        OPDPlan_ImplementDate__c &gt;= DATE(YEAR(today()), MONTH(today()), 1),
        OPDPlan_ImplementDate__c&lt;= if (MONTH(today()) + 3 &lt;= 12,DATE(YEAR(today()), MONTH(today()) + 3, 1) -1,DATE(YEAR(today())+1, MONTH(today()) + 3-12, 1) -1)) , 1, 0)</formula>
    <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
    <label>是否本季度OPD计划(公式)</label>
    <precision>18</precision>
    <required>false</required>
    <scale>0</scale>
    <trackHistory>false</trackHistory>
    <trackTrending>false</trackTrending>
    <type>Number</type>
    <unique>false</unique>
</CustomField>