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
| <?xml version="1.0" encoding="UTF-8"?>
| <CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
| <fullName>Contract_Months_This_Year__c</fullName>
| <externalId>false</externalId>
| <formula>if (
| or( isnull( Contract_End_Date__c), isnull( Contract_Start_Date__c), Contract_End_Date__c < Contract_Start_Date__c),
| 0,
| if (
| month( today()) <= 3,
|
| if (
| or( Contract_End_Date__c < LastYear_AprilOne__c, Contract_Start_Date__c >= ThisYear_AprilOne__c),
| 0,
| min( year( date( year( today()) - 0, 1, 1)) * 12 + 3, Contract_End_Month_Number__c) - max( year( date( year( today()) - 1, 1, 1)) * 12 + 4, Contract_Start_Month_Number__c) + 1
| ),
| if (
| or( Contract_End_Date__c < ThisYear_AprilOne__c, Contract_Start_Date__c >= NextYear_AprilOne__c),
| 0,
| min( year( date( year( today()) + 1, 1, 1)) * 12 + 3, Contract_End_Month_Number__c) - max( year( date( year( today()) - 0, 1, 1)) * 12 + 4, Contract_Start_Month_Number__c) + 1
| )
|
| )
| )</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>
|
|