binxie
2024-01-17 92d30efcdebfc59500385e018d597a6b6a946075
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Fixture_Status__c</fullName>
    <externalId>false</externalId>
    <formula>/* if 过期状态*/
IF (Guaranteen_end__c &gt;  TODAY() , &apos;已过期&apos;,
 
/* else if 数量管理 */
IF (ISPICKVAL(Manage_type__c, &apos;数量管理&apos;), Fixture_Status3_Text__c,
 
/* else 个体管理 */
IF (
    /*  if 已连上Last (分配, 暂定分配)  */
    NOT(ISBLANK(Last_Reserve_RAES_Detail__c)),
        IF(NOT(ISBLANK(Last_Reserve_RAES_Detail__r.Confirm_Lost_Date__c)) &amp;&amp; Last_Reserve_RAES_Detail__r.Check_lost_Item_F__c = &apos;欠品&apos;, &apos;确认遗失&apos;, Last_Reserve_RAES_Detail__r.RAESD_Status__c)
    /*  else 没有连上Last */
        , Fixture_Status2_text__c 
)))</formula>
    <label>备品状态</label>
    <required>false</required>
    <trackHistory>false</trackHistory>
    <type>Text</type>
    <unique>false</unique>
</CustomField>