高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Over_Loaner_Detail_Status__c.field-meta.xml
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Over_Loaner_Detail_Status__c</fullName>
    <externalId>false</externalId>
    <formula>IF(Lost_item_giveup__c = TRUE,&apos;遗失&apos;,
    <description>update lxy 2022/5/26 根据DLIU-CES8B9修改
原有逻辑:
IF(Lost_item_giveup__c = TRUE,&apos;遗失&apos;,
IF(
  AND(RAES_Final_reply_day__c &lt; TODAY(),
@@ -36,8 +37,86 @@
)
)
)
)</formula>
    <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
)</description>
    <externalId>false</externalId>
    <formula>IF(((Arrival_wh_day__c &gt; DATE(2022,2,28) &amp;&amp; !ISBLANK(RAES_Final_reply_day__c))
      || (ISBLANK(Arrival_wh_day__c) &amp;&amp; !ISBLANK(RAES_Final_reply_day__c))
      || (Arrival_wh_day__c &lt;= DATE(2022,2,28) &amp;&amp; RAES_Final_reply_day__c &gt;= DATE(2022,3,1)))
     &amp;&amp; Over90DayObject__c = false,
IF(
   OR(AND(NOT(ISBLANK(LostReport_Detail__c)),NOT(ISBLANK(LostReport_Detail__r.LostReport_approval_time__c))),
   Lost_item_giveup__c = TRUE),&apos;遗失&apos;,
IF(
  AND(RAES_Final_reply_day__c &lt; TODAY(),
  Not(ISBLANK(Shipment_request_time2__c)),
  Not(ISBLANK(Bollow_Date__c)),
  ISBLANK(Return_DeliverySlip__c)
  ),&apos;逾期出借&apos;,
IF(
  AND(RAES_Final_reply_day__c &gt;= TODAY(),
  Not(ISBLANK(Shipment_request_time2__c)) ,
  Not(ISBLANK(Bollow_Date__c)),
  ISBLANK(Return_DeliverySlip__c)
  ) ,&apos;正常出借&apos;,
IF(
AND(NOT(ISBLANK(Shipment_request_time2__c)),
Not(ISBLANK(Bollow_Date__c)),
NOT(ISBLANK(Return_DeliverySlip__c)),
RAES_Final_reply_day__c &lt; Asset_return_Day__c
), &apos;逾期返回&apos;,
IF(
AND(NOT(ISBLANK(Shipment_request_time2__c)),
Not(ISBLANK(Bollow_Date__c)),
NOT(ISBLANK(Return_DeliverySlip__c)),
RAES_Final_reply_day__c &gt;= Asset_return_Day__c
), &apos;正常返回&apos;, &apos;&apos;
)
)
)
)
),
IF(Lost_item_giveup__c = TRUE,&apos;遗失&apos;,
IF(
  AND(RAES_Final_reply_day__c &lt; TODAY(),
  Not(ISBLANK(Shipment_request_time2__c)),
  Not(ISBLANK(Bollow_Date__c)),
  ISBLANK(Return_DeliverySlip__c)
  ),&apos;逾期出借&apos;,
IF(
  AND(RAES_Final_reply_day__c &gt;= TODAY(),
  Not(ISBLANK(Shipment_request_time2__c)) ,
  Not(ISBLANK(Bollow_Date__c)),
  ISBLANK(Return_DeliverySlip__c)
  ) ,&apos;正常出借&apos;,
IF(
AND(NOT(ISBLANK(Shipment_request_time2__c)),
Not(ISBLANK(Bollow_Date__c)),
NOT(ISBLANK(Return_DeliverySlip__c)),
RAES_Final_reply_day__c &lt; Asset_return_Day__c
), &apos;逾期返回&apos;,
IF(
AND(NOT(ISBLANK(Shipment_request_time2__c)),
Not(ISBLANK(Bollow_Date__c)),
NOT(ISBLANK(Return_DeliverySlip__c)),
RAES_Final_reply_day__c &gt;= Asset_return_Day__c
), &apos;正常返回&apos;, &apos;&apos;
)
)
)
)
))</formula>
    <label>借出状态(明细)</label>
    <required>false</required>
    <trackHistory>false</trackHistory>