<?xml version="1.0" encoding="UTF-8"?>
|
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Yizhouweixiu_Final_reply_day_F__c</fullName>
|
<externalId>false</externalId>
|
<formula>IF(NOT((Not(isblank(Rental_Apply__r.Repair__r.Repair_Ordered_Date__c))
|
/* OLY_OCM-645 Start*/
|
/* 一周之内送修 Bollow_Date__c = Shippment_loaner_time2__c */
|
&& (Rental_Apply__r.Repair__r.Repair_Ordered_Date__c <= IF(Rental_Apply__r.Request_demo_day__c < DATEVALUE('2019-07-01'), Bollow_Date__c + 7, Bollow_Date_Add_7_WD__c))
|
)
|
/* OLY_OCM-662 修理受理日为空的情况对应Start */
|
/* 20170901以后已经出库但是7天工作日没有更新的这段时间做一周内送修处理 */
|
|| (Rental_Apply__r.Request_demo_day__c >= DATEVALUE('2019-07-01')
|
&& isblank(Bollow_Date_Add_7_WD__c)
|
&& NOT(isblank(Bollow_Date__c))
|
)
|
/* 修理受理日为空的话如果没超过出库7内的话做一周内送修处理 */
|
|| isblank(Rental_Apply__r.Repair__r.Repair_Ordered_Date__c) && TODAY() <= IF(Rental_Apply__r.Request_demo_day__c < DATEVALUE('2019-07-01'), Bollow_Date__c + 7, Bollow_Date_Add_7_WD__c)
|
/* OLY_OCM-662 修理受理日为空的情况对应End */
|
)
|
/* OLY_OCM-645 End*/
|
&& (Demo_purpose2_T__c == '保修用户' || Demo_purpose2_T__c == '市场多年保修') && Not(ISBLANK(Shippment_loaner_time2__c))
|
, DATEVALUE(Shippment_loaner_time2__c + 14)
|
,null
|
)</formula>
|
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
|
<label>最新预定归还日_一周之内未送修_F</label>
|
<required>false</required>
|
<trackHistory>false</trackHistory>
|
<trackTrending>false</trackTrending>
|
<type>Date</type>
|
</CustomField>
|