Li Jun
2022-04-08 ac719375874fd50fad5a11f8e04ac3329081bd0b
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
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>GuaranteePrice_Amount__c</fullName>
    <description>Asset__r.Asset_GuaranteePrice__c</description>
    <externalId>false</externalId>
    <formula>/*已失效的产品,维修报价总额为0*/
if( Invalid__c ,0,
/*退换货时保存保修天数和多年保修期至到维修合同保有设备*/
if(
Return_Flag__c,
/*退货且退货日期计提年限在内,按天计算;退货日期计提年限在外,取全值*/
if( endDateGurantee_changeAcc__c &lt;  Extend_Gurantee_DateTo__c ,Asset__r.Asset_GuaranteePrice__c/ Proviston_period__c *(endDateGurantee_Text__c - startDateGurantee_Text__c),Asset__r.Asset_GuaranteePrice__c)
,IF(AND(ChangeAcc_flag__c, NOT(ISBLANK( Maintenance_Contract__r.Opportunity__c )) )
/*变更且变更日期计提年限在内,按天计算(变更前合同)*/
,IF(endDateGurantee_changeAcc__c &lt;  Extend_Gurantee_DateTo__c,Asset__r.Asset_GuaranteePrice__c/ Proviston_period__c*(endDateGurantee_Text__c - startDateGurantee_Text__c),Asset__r.Asset_GuaranteePrice__c)
/*变更且变更日期计提年限在内,按天计算(变更后合同)*/
,IF(AND(ChangeAcc_flag__c, ISBLANK( Maintenance_Contract__r.Opportunity__c ))
,IF(NOT(ISBLANK(  endDateGurantee_changeAcc__c  )),
Asset__r.Asset_GuaranteePrice__c/ Proviston_period__c*(endDateGurantee_Text__c - startDateGurantee_Text__c),
IF( startDateGurantee_Text__c  &lt;  Extend_Gurantee_DateTo__c,
    Asset__r.Asset_GuaranteePrice__c/ Proviston_period__c*(Extend_Gurantee_DateTo__c - startDateGurantee_Text__c),
    0)
)
,Asset__r.Asset_GuaranteePrice__c)
)))</formula>
    <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
    <label>计提总额</label>
    <precision>18</precision>
    <required>false</required>
    <scale>2</scale>
    <trackTrending>false</trackTrending>
    <type>Number</type>
    <unique>false</unique>
</CustomField>