Li Jun
2022-04-13 5c01ebbfddb6b8674430b47c22977bea2e350084
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>lastestMultiYearWarranty__c</fullName>
    <description>1.如果外贸是4.1之前deceid的,则默认取消多年保修 置为false
2.产品为服务多年保修时,则为真;
3.产品为市场多年保修时, (取消并且不可取消多年保为假),为假,否则为真
4、其他情况不是多年保修;</description>
    <externalId>false</externalId>
    <formula>if (Text(QuantityId__r.Opportunity.Trade__c) = &apos;外貿&apos; &amp;&amp; QuantityId__r.Opportunity.DecideQuoteDate__c &lt; DATEVALUE($Label.GuaranteeUSD), false,
    if (Product2__r.GuranteeType__c = &apos;服务&apos;, true,
        if (Product2__r.GuranteeType__c = &apos;市场&apos;,
            if ((QuantityId__r.Opportunity.multiYearWarranty__c &amp;&amp; CanNotCancelFlag__c = false), false, true), false)))</formula>
    <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
    <label>多年保修(最新)</label>
    <trackTrending>false</trackTrending>
    <type>Checkbox</type>
</CustomField>