binxie
2024-01-20 2ff0f0a7ab276c3466d9e06e14222db802194efc
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
<?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) == &apos;引合&apos;, TEXT(Opportunity.ConfirmationofAward__c) ==&apos;竞争对手中标&apos;) ,
0,
IF( TEXT(Opportunity.AdvanceTarget__c) == &apos;必达&apos;, OCSM_RMB_Without_Tax_1000__c * 1,
CASE(Opportunity.Competitor__c ,
&apos;A1&apos;, OCSM_RMB_Without_Tax_1000__c * 1,
&apos;A&apos;, OCSM_RMB_Without_Tax_1000__c * 0.8,
&apos;B&apos;, OCSM_RMB_Without_Tax_1000__c * 0.5,
&apos;C&apos;, OCSM_RMB_Without_Tax_1000__c * 0.3,
&apos;D&apos;, 0,
&apos;E&apos;, 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 &lt;&gt;  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>