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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
| <?xml version="1.0" encoding="UTF-8"?>
| <CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
| <fullName>NewProductGuarante_Formula__c</fullName>
| <description>IF(OR(AND(ISBLANK(SAP_Transfer_day__c), DATEVALUE(CreatedDate) > Delivered_Product__r.Guarantee_period_for_products__c),
| AND(NOT(ISBLANK(SAP_Transfer_day__c)),SAP_Transfer_day__c > Delivered_Product__r.Guarantee_period_for_products__c))
| ,''
| ,IF(Delivered_Product__r.guarantee_period__c <= 366
| ,'1: 新品保修'
| ,IF(ISBLANK(Delivered_Product__r.Extend_Gurantee_DateTo__c)
| ,'3: 销售特殊保修期'
| ,IF(Failure_Occurrence_Date__c <= Delivered_Product__r.Extend_Gurantee_DateTo__c
| ,'2: 多年保修'
| ,IF(AND(Failure_Occurrence_Date__c > Delivered_Product__r.Extend_Gurantee_DateTo__c,Failure_Occurrence_Date__c <= Delivered_Product__r.Guarantee_period_for_products__c)
| ,'3: 销售特殊保修期'
| ,''
| )
| )
| )
| )
| )</description>
| <externalId>false</externalId>
| <formula>IF(OR(AND(ISBLANK(FSE_ApplyForRepair_Day__c), DATEVALUE(CreatedDate) > Delivered_Product__r.Guarantee_period_for_products__c),
| AND(NOT(ISBLANK(FSE_ApplyForRepair_Day__c)),FSE_ApplyForRepair_Day__c > Delivered_Product__r.Guarantee_period_for_products__c))
| /* "修理创建日" 大于 保修期限 或者 "SAP修理申请日”大于 保修期限,无偿区别标志为空 */
| ,''
| ,IF(Delivered_Product__r.guarantee_period__c <= 366
| /* 保修天数 小于等于 366日 */
| ,'1: 新品保修'
| ,IF(OR(AND( Delivered_Product__r.IS_Extend_Gurantee_Txt__c,Failure_Occurrence_Date__c <= Delivered_Product__r.Extend_Gurantee_DateTo_Text__c))
| ,'2: 服务多年保修'
| ,IF(ISBLANK(Delivered_Product__r.Extend_Gurantee_DateTo_Text__c)
| ,'3: 销售特殊保修期'
| ,IF(AND(OR(Delivered_Product__r.IS_Extend_Gurantee_Txt__c,TEXT(Delivered_Product__r.warrantyType__c) = '市场多年保修'),AND(Failure_Occurrence_Date__c > Delivered_Product__r.Extend_Gurantee_DateTo_Text__c,Failure_Occurrence_Date__c <= Delivered_Product__r.Guarantee_period_for_products__c))
| ,'3: 销售特殊保修期'
| ,IF(OR(AND( TEXT(Delivered_Product__r.warrantyType__c) = '市场多年保修',Failure_Occurrence_Date__c <= Delivered_Product__r.Extend_Gurantee_DateTo_Text__c))
| ,'8: 市场多年保修'
| ,''
| )
| )
| )
| )
| )
| )</formula>
| <label>新品保修期用公式</label>
| <required>false</required>
| <trackHistory>false</trackHistory>
| <trackTrending>false</trackTrending>
| <type>Text</type>
| <unique>false</unique>
| </CustomField>
|
|