Li Jun
2022-04-27 f90c63155656928b86f1ce1d91a134de3d12d2b9
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
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>NewProductGuaranteeObject__c</fullName>
    <description>/* else if 保修期间内 */
,IF(Failure_Occurrence_Date__c &lt;= Delivered_Product__r.Guarantee_period_for_products__c,
  IF(DATE(Year(Delivered_Product__r.Guarantee_period_for_products__c) - 1, Month(Delivered_Product__r.Guarantee_period_for_products__c),Day(Delivered_Product__r.Guarantee_period_for_products__c)) &gt; Delivered_Product__r.InstallDate__c
    /* 保修期间超过1年 */
    , IF(Delivered_Product__r.Product2.Extend_new_product_gurantee__c, &apos;2: 多年保修&apos;, &apos;3: 销售特殊保修期&apos;)
    /* else 保修期间 &lt; 1年 */
    , IF(Delivered_Product__r.Product2.Extend_new_product_gurantee__c, &apos;2: 多年保修&apos;, &apos;1: 新品保修&apos;)
  )</description>
    <externalId>false</externalId>
    <formula>/* 一定要是 编码:Space汉字 的格式 */
 
/* if QIS */
IF(AND(Isblank(QIS_ID__c) = false,not(Delivered_Product__r.IS_Extend_Gurantee_Txt__c),
    text(Delivered_Product__r.warrantyType__c) != &apos;市场多年保修&apos;,
     OR(qis_next_action__c = &apos;无偿维修&apos; &amp;&amp; QIS_ID__r.Special_follow__c,
        qis_next_action__c = &apos;无偿维修&apos;,
        qis_next_action__c = &apos;有偿维修+无偿维修&apos; &amp;&amp; QIS_ID__r.Special_follow__c,
        qis_next_action__c = &apos;有偿维修+无偿维修&apos;,
        qis_next_action__c = &apos;有偿维修&apos; &amp;&amp; QIS_ID__r.Special_follow__c = false
     )
   ),
   IF(
      /* 多年保修优先 */
      NewProductGuaranteeObject_NoQis__c = &apos;2: 服务多年保修&apos; || NewProductGuaranteeObject_NoQis__c = &apos;8: 市场多年保修&apos;, NewProductGuaranteeObject_NoQis__c
      /* 非多年保修,QIS判定 */
      ,IF(qis_next_action__c = &apos;无偿维修&apos; &amp;&amp; QIS_ID__r.Special_follow__c,
          IF(Text(QIS_ID__r.OCM_judgement__c)=&apos;质量问题+非质量问题&apos;, &apos;6: QIS部分无偿特别对应&apos;, &apos;7: 服务本部无偿&apos;)
      ,IF(qis_next_action__c = &apos;无偿维修&apos;, &apos;4: 无偿QIS转修理&apos;
      ,IF(qis_next_action__c = &apos;有偿维修+无偿维修&apos; &amp;&amp; QIS_ID__r.Special_follow__c, &apos;6: QIS部分无偿特别对应&apos;
      ,IF(qis_next_action__c = &apos;有偿维修+无偿维修&apos;, &apos;5: QIS部分无偿&apos;
      ,IF(qis_next_action__c = &apos;有偿维修&apos; &amp;&amp; QIS_ID__r.Special_follow__c = false, NewProductGuaranteeObject_NoQis__c
      ,&apos;&apos;   /* ありえない */
  ))))))
,
/* else 普通修理 */
NewProductGuaranteeObject_NoQis__c
)</formula>
    <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
    <label>无偿区别标志</label>
    <required>false</required>
    <trackHistory>false</trackHistory>
    <trackTrending>false</trackTrending>
    <type>Text</type>
    <unique>false</unique>
</CustomField>