<?xml version="1.0" encoding="UTF-8"?>
|
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>NM_Forecast_formula__c</fullName>
|
<externalId>false</externalId>
|
<formula>IF(NextMonthly_ship_target_txt__c = '1' &&
|
(Close_Forecasted_Date__c > IF(
|
MONTH(today()) = 12,
|
DATE(YEAR(today()), 12, 31),
|
DATE(YEAR(today()), MONTH(today()) + 1, 1) - 1 ) &&
|
Close_Forecasted_Date__c <=IF(
|
MONTH( today() ) = 11,
|
DATE( YEAR( today() ), 12, 31 ),IF(
|
MONTH( today() ) = 12,
|
DATE( YEAR( today() ) + 1, 01, 31 ),
|
DATE( YEAR( today() ), MONTH ( today() ) + 2, 1 ) - 1 ))
|
) && StageName__c = '询价'
|
&& ForecastAccuracyObject__c = true,"次月订发货预测",
|
IF(NextMonthly_ship_target_txt__c = '1' && StageName__c = '询价'
|
&& ForecastAccuracyObject__c = true,"次月发货预测",
|
IF(NextMonthly_order_target_txt__c = '1' && (StageName__c = '询价')
|
&& ForecastAccuracyObject__c = true,"次月订货预测","")))</formula>
|
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
|
<label>是否次月预测询价(公式)</label>
|
<required>false</required>
|
<trackHistory>false</trackHistory>
|
<trackTrending>false</trackTrending>
|
<type>Text</type>
|
<unique>false</unique>
|
</CustomField>
|