Li Jun
2022-04-13 5c01ebbfddb6b8674430b47c22977bea2e350084
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>DeadlineLastMonthPeriodPaymentAmount__c</fullName>
    <description>1.当前月为1月、2月、3月时,开始日为上一年度的4月1日,否则为本年度的4月1日
2.截止日期为上个月的最后一天
3.当&quot;付款日期&quot;介于1和2之间时,取&quot;付款金额&quot;,否则,取0</description>
    <externalId>false</externalId>
    <formula>IF( AND(IF( AND(MONTH(today())&gt;=1,MONTH(today()) &lt;= 3) ,DATE(YEAR(today())-1, 4, 1), DATE(YEAR(today()), 4, 1))  &lt;=PaymentDate__c,PaymentDate__c &lt;= Date(YEAR(TODAY()),  MONTH(TODAY()) , 1)-1) ,PaymentAmount__c, 0)</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>