张宇恒
2022-04-28 ddf52e1dd6e4041756854ee3ea914d568e98922e
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
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>OCSM_Period_New__c</fullName>
    <description>IF(month(DATEVALUE(CreatedDate)) &lt;= 3 &amp;&amp; year(DATEVALUE(CreatedDate))&lt;=2021,
if(MONTH(today()) &lt;= 3,text(year(DATEVALUE(CreatedDate)) - 1- 1867)&amp;&quot;P&quot;,
text(year(DATEVALUE(CreatedDate)) - 1867)&amp;&quot;P&quot;),
if(month(DATEVALUE(CreatedDate)) &lt;= 3, &quot;FY&quot; &amp; text(year(DATEVALUE(CreatedDate))) ,&quot;FY&quot; &amp; text(year(DATEVALUE(CreatedDate+1))
)&amp;
IF(OR(month(DATEVALUE(CreatedDate)) &lt;=3, month(DATEVALUE(CreatedDate)) &gt;=10), &quot; 2H’&quot;, &quot; 1H’&quot;)
))</description>
    <externalId>false</externalId>
    <formula>IF(YEAR(DATEVALUE(CreatedDate)) &lt;= 2021 &amp;&amp; month(DATEVALUE(CreatedDate)) &lt;= 3,
text(YEAR(DATEVALUE(CreatedDate)) - 1- 1867) &amp; &quot;P&quot; &amp;
IF(OR(month(DATEVALUE(CreatedDate)) &lt;=3, month(DATEVALUE(CreatedDate)) &gt;=10), &quot;B&quot;, &quot;A&quot;),
if(YEAR(DATEVALUE(CreatedDate)) &lt; 2021 &amp;&amp; month(DATEVALUE(CreatedDate)) &gt; 3,
text(YEAR(DATEVALUE(CreatedDate))- 1867 ) &amp; &quot;P&quot; &amp;
IF(OR(month(DATEVALUE(CreatedDate)) &lt;=3, month(DATEVALUE(CreatedDate)) &gt;=10), &quot;B&quot;, &quot;A&quot;),
(if(month(DATEVALUE(CreatedDate)) &lt;= 3,
&quot;FY&quot; &amp; text(YEAR(DATEVALUE(CreatedDate))) , &quot;FY&quot; &amp; text(YEAR(DATEVALUE(CreatedDate))+1))&amp;
IF(OR(month(DATEVALUE(CreatedDate)) &lt;=3, month(DATEVALUE(CreatedDate)) &gt;=10), &quot; 2H’&quot;, &quot; 1H’&quot;)
)
)
)</formula>
    <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
    <label>OCSM期</label>
    <required>false</required>
    <trackTrending>false</trackTrending>
    <type>Text</type>
    <unique>false</unique>
</CustomField>