<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fieldUpdates>
|
<fullName>EPT1</fullName>
|
<field>If_EP_T1_F__c</field>
|
<literalValue>1</literalValue>
|
<name>是否包含EPT1</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Important_Rroduct_Update2</fullName>
|
<field>Important_Rroduct__c</field>
|
<literalValue>0</literalValue>
|
<name>重点製品フラグ戻し</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Important_Rroduct_update</fullName>
|
<field>Important_Rroduct__c</field>
|
<literalValue>1</literalValue>
|
<name>重点製品フラグ更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>OCM_man_province_txt_set</fullName>
|
<field>OCM_man_province_txt__c</field>
|
<formula>OCM_man_province__c</formula>
|
<name>OCM管理省(文本)设定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>OpplineItemTotalPrice_Set</fullName>
|
<field>TotalPrice__c</field>
|
<formula>UnitPrice__c*Quantity</formula>
|
<name>计算报价总额</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateDangerousChemicals</fullName>
|
<field>Is_DangerousChemicals__c</field>
|
<literalValue>1</literalValue>
|
<name>更新是否是危化品</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>oppPro_is170</fullName>
|
<field>If_170Pro__c</field>
|
<literalValue>1</literalValue>
|
<name>询价产品是否170</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>oppPro_isAH</fullName>
|
<field>If_AHPro__c</field>
|
<literalValue>1</literalValue>
|
<name>询价产品是否奥辉</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>oppPro_isOER_AW</fullName>
|
<field>If_OER_AW__c</field>
|
<literalValue>1</literalValue>
|
<name>询价产品是否OER-AW</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>set_opp_deliver_date</fullName>
|
<field>DeliveryDate__c</field>
|
<formula>Product2.DeliveryDate__c</formula>
|
<name>设置交货期</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>strategyProductToText</fullName>
|
<description>SWAG-BGCCB9</description>
|
<field>strategyProductText__c</field>
|
<formula>strategyProduct__c</formula>
|
<name>战略产品文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>updateBackOfficeUseForecastProduct</fullName>
|
<field>BackOfficeUseForecastProductAmount__c</field>
|
<formula>IF( AND(TEXT(Opportunity.StageName) == '引合', TEXT(Opportunity.ConfirmationofAward__c) =='竞争对手中标') ,
|
0,
|
IF( TEXT(Opportunity.AdvanceTarget__c) == '必达', OCSM_RMB_Without_Tax_1000__c * 1,
|
CASE(Opportunity.Competitor__c ,
|
'A1', OCSM_RMB_Without_Tax_1000__c * 1,
|
'A', OCSM_RMB_Without_Tax_1000__c * 0.8,
|
'B', OCSM_RMB_Without_Tax_1000__c * 0.5,
|
'C', OCSM_RMB_Without_Tax_1000__c * 0.3,
|
'D', 0,
|
'E', 0,
|
0)))</formula>
|
<name>更新后台用-预测产品金额(换算值)(PBI)</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>Important_Rroduct_Rule</fullName>
|
<actions>
|
<name>Important_Rroduct_update</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>5月22日:追加重点产品公式(16-20个)</description>
|
<formula>Or( OCM_Sales_Forecast_Product1__c != 0,
|
OCM_Sales_Forecast_Product2__c != 0,
|
OCM_Sales_Forecast_Product3__c != 0,
|
OCM_Sales_Forecast_Product4__c != 0,
|
OCM_Sales_Forecast_Product5__c != 0,
|
OCM_Sales_Forecast_Product6__c != 0,
|
OCM_Sales_Forecast_Product7__c != 0,
|
OCM_Sales_Forecast_Product8__c != 0,
|
OCM_Sales_Forecast_Product9__c != 0,
|
OCM_Sales_Forecast_Product10__c != 0,
|
OCM_Sales_Forecast_Product11__c != 0,
|
OCM_Sales_Forecast_Product12__c != 0,
|
OCM_Sales_Forecast_Product13__c != 0,
|
OCM_Sales_Forecast_Product14__c != 0,
|
OCM_Sales_Forecast_Product15__c != 0,
|
OCM_Sales_Forecast_Product16__c != 0,
|
OCM_Sales_Forecast_Product17__c != 0,
|
OCM_Sales_Forecast_Product18__c != 0,
|
OCM_Sales_Forecast_Product19__c != 0,
|
OCM_Sales_Forecast_Product20__c != 0 )</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>Important_Rroduct_Rule_2</fullName>
|
<actions>
|
<name>Important_Rroduct_Update2</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>5月22日:追加重点产品公式(16-20个)</description>
|
<formula>And( OCM_Sales_Forecast_Product1__c = 0,
|
OCM_Sales_Forecast_Product2__c = 0,
|
OCM_Sales_Forecast_Product3__c = 0,
|
OCM_Sales_Forecast_Product4__c = 0,
|
OCM_Sales_Forecast_Product5__c = 0,
|
OCM_Sales_Forecast_Product6__c = 0,
|
OCM_Sales_Forecast_Product7__c = 0,
|
OCM_Sales_Forecast_Product8__c = 0,
|
OCM_Sales_Forecast_Product9__c = 0,
|
OCM_Sales_Forecast_Product10__c = 0,
|
OCM_Sales_Forecast_Product11__c = 0,
|
OCM_Sales_Forecast_Product12__c = 0,
|
OCM_Sales_Forecast_Product13__c = 0,
|
OCM_Sales_Forecast_Product14__c = 0,
|
OCM_Sales_Forecast_Product15__c = 0,
|
OCM_Sales_Forecast_Product16__c = 0,
|
OCM_Sales_Forecast_Product17__c = 0,
|
OCM_Sales_Forecast_Product18__c = 0,
|
OCM_Sales_Forecast_Product19__c = 0,
|
OCM_Sales_Forecast_Product20__c = 0
|
)</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>OCM管理省文本更新</fullName>
|
<actions>
|
<name>OCM_man_province_txt_set</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>ISNEW() || OCM_man_province__c <> OCM_man_province_txt__c</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>updateBackOfficeUseForecastProductAmount</fullName>
|
<actions>
|
<name>updateBackOfficeUseForecastProduct</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>存在EPT1产品</fullName>
|
<actions>
|
<name>EPT1</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>OpportunityLineItem.If_EP_T1__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>战略产品文本化</fullName>
|
<actions>
|
<name>strategyProductToText</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>SWAG-BGCCB9</description>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>是否170</fullName>
|
<actions>
|
<name>oppPro_is170</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>OpportunityLineItem.If_170Pro_F__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>是否OER-AW</fullName>
|
<actions>
|
<name>oppPro_isOER_AW</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>OpportunityLineItem.If_OER_AW_F__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>是否危化品</fullName>
|
<actions>
|
<name>UpdateDangerousChemicals</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>OpportunityLineItem.Is_DangerousChemicals_F__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>是否奥辉</fullName>
|
<actions>
|
<name>oppPro_isAH</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>OpportunityLineItem.If_AHPro_F__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>计算报价总额</fullName>
|
<actions>
|
<name>OpplineItemTotalPrice_Set</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>设置交货期</fullName>
|
<actions>
|
<name>set_opp_deliver_date</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onCreateOnly</triggerType>
|
</rules>
|
</Workflow>
|