NewProductGuaranteeObject__c
/* else if 保修期间内 */
,IF(Failure_Occurrence_Date__c <= 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)) > Delivered_Product__r.InstallDate__c
/* 保修期间超过1年 */
, IF(Delivered_Product__r.Product2.Extend_new_product_gurantee__c, '2: 多年保修', '3: 销售特殊保修期')
/* else 保修期间 < 1年 */
, IF(Delivered_Product__r.Product2.Extend_new_product_gurantee__c, '2: 多年保修', '1: 新品保修')
)
false
/* 一定要是 编码: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) != '市场多年保修',
OR(qis_next_action__c = '无偿维修' && QIS_ID__r.Special_follow__c,
qis_next_action__c = '无偿维修',
qis_next_action__c = '有偿维修+无偿维修' && QIS_ID__r.Special_follow__c,
qis_next_action__c = '有偿维修+无偿维修',
qis_next_action__c = '有偿维修' && QIS_ID__r.Special_follow__c = false
)
),
IF(
/* 多年保修优先 */
NewProductGuaranteeObject_NoQis__c = '2: 服务多年保修' || NewProductGuaranteeObject_NoQis__c = '8: 市场多年保修', NewProductGuaranteeObject_NoQis__c
/* 非多年保修,QIS判定 */
,IF(qis_next_action__c = '无偿维修' && QIS_ID__r.Special_follow__c,
IF(Text(QIS_ID__r.OCM_judgement__c)='质量问题+非质量问题', '6: QIS部分无偿特别对应', '7: 服务本部无偿')
,IF(qis_next_action__c = '无偿维修', '4: 无偿QIS转修理'
,IF(qis_next_action__c = '有偿维修+无偿维修' && QIS_ID__r.Special_follow__c, '6: QIS部分无偿特别对应'
,IF(qis_next_action__c = '有偿维修+无偿维修', '5: QIS部分无偿'
,IF(qis_next_action__c = '有偿维修' && QIS_ID__r.Special_follow__c = false, NewProductGuaranteeObject_NoQis__c
,'' /* ありえない */
))))))
,
/* else 普通修理 */
NewProductGuaranteeObject_NoQis__c
)
BlankAsZero
false
false
false
Text
false