Li Jun
2022-04-24 fc8a8cea62e5d248834482a1ade9db6ab0758bf2
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
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Borrow_day__c</fullName>
    <description>2018/01/31: 报表中使用
2018/08/28之前:
IF(AND(Not(ISNULL(Shipment_request_command__c)),Not(ISNULL(Bollow_Date__c)),ISNULL(Asset_return_day2__c)), TODAY() - Bollow_Date__c, 
IF(AND(Not(ISNULL(Shipment_request_command__c)),Not(ISNULL(Bollow_Date__c)),Not(ISNULL(Asset_return_day2__c))) 
,Asset_return_day2__c- Bollow_Date__c ,0))</description>
    <externalId>false</externalId>
    <formula>IF(AND(Not(ISNULL(Shipment_request_command__c)),Not(ISNULL(Bollow_Date__c)),ISNULL(Asset_return_day2__c)), TODAY() - Bollow_Date__c, 
IF(AND(Not(ISNULL(Shipment_request_command__c)),Not(ISNULL(Bollow_Date__c)),Not(ISNULL(    Asset_return_day_F__c)),First_Lost_item_check__c &lt;&gt; &apos;欠品&apos;) 
,Asset_return_day_F__c- Bollow_Date__c ,
IF(
AND(Not(ISNULL(Shipment_request_command__c)),Not(ISNULL(Bollow_Date__c)),Not(ISNULL(Asset_return_day_F__c)),First_Lost_item_check__c  =  &apos;欠品&apos;, First_RAESD__r.Lost_item_giveup__c  = FALSE)
, TODAY()- Bollow_Date__c ,
IF(
AND(Not(ISNULL(Shipment_request_command__c)),Not(ISNULL(Bollow_Date__c)),Not(ISNULL(Asset_return_day_F__c)),First_Lost_item_check__c  =  &apos;欠品&apos;, First_RAESD__r.Lost_item_giveup__c  = TRUE)
,  First_RAESD__r.Lost_item_check_day_F__c - Bollow_Date__c ,0
)
 
))
)</formula>
    <label>已借用自然日</label>
    <precision>18</precision>
    <required>false</required>
    <scale>0</scale>
    <trackHistory>false</trackHistory>
    <trackTrending>false</trackTrending>
    <type>Number</type>
    <unique>false</unique>
</CustomField>