GWY
2022-05-21 a3460549533111815e7f73d6cef601a58031525d
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
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>ANI_DeliverGoods</fullName>
        <description>ANI发货提醒</description>
        <protected>false</protected>
        <recipients>
            <field>Director_email__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <recipient>ANI_loaner_manager</recipient>
            <type>group</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NDT_DeliverGoods_Mail</template>
    </alerts>
    <alerts>
        <fullName>ANI_ReturnGoods</fullName>
        <description>ANI_回寄物流提醒</description>
        <protected>false</protected>
        <recipients>
            <recipient>ANI_loaner_manager</recipient>
            <type>group</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NDT_ReturnGoods_Mail</template>
    </alerts>
    <alerts>
        <fullName>ANI_loanerApp</fullName>
        <description>ANI转借物流发货</description>
        <protected>false</protected>
        <recipients>
            <field>Director_email__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <recipient>ANI_loaner_manager</recipient>
            <type>group</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NDT_ReturnGoods_zh_Mail</template>
    </alerts>
    <alerts>
        <fullName>ANI_timeOut</fullName>
        <description>ANI延期收货</description>
        <protected>false</protected>
        <recipients>
            <recipient>ANI_loaner_manager</recipient>
            <type>group</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NDT_OutTime_Mail</template>
    </alerts>
    <alerts>
        <fullName>DeliverGoods</fullName>
        <description>发货邮件</description>
        <protected>false</protected>
        <recipients>
            <field>Approver__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>Loaner_Agent__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>sales_User__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/DeliverGoods_Mail</template>
    </alerts>
    <alerts>
        <fullName>NDT_DeliverGoods</fullName>
        <description>NDT发货提醒</description>
        <protected>false</protected>
        <recipients>
            <field>Director_email__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <recipient>NDT_loaner_manager</recipient>
            <type>group</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NDT_DeliverGoods_Mail</template>
    </alerts>
    <alerts>
        <fullName>NDT_ReturnGoods</fullName>
        <description>NDT_回寄物流提醒</description>
        <protected>false</protected>
        <recipients>
            <recipient>NDT_loaner_manager</recipient>
            <type>group</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NDT_ReturnGoods_Mail</template>
    </alerts>
    <alerts>
        <fullName>NDT_loanerApp</fullName>
        <description>NDT转借物流发货</description>
        <protected>false</protected>
        <recipients>
            <field>Director_email__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <recipient>NDT_loaner_manager</recipient>
            <type>group</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NDT_ReturnGoods_zh_Mail</template>
    </alerts>
    <alerts>
        <fullName>NDT_timeOut</fullName>
        <description>NDT延期收货</description>
        <protected>false</protected>
        <recipients>
            <recipient>NDT_loaner_manager</recipient>
            <type>group</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NDT_OutTime_Mail</template>
    </alerts>
    <alerts>
        <fullName>NDT_timeOut_bo</fullName>
        <description>NDT延期收货驳回</description>
        <protected>false</protected>
        <recipients>
            <field>Director_email__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NDT_OutTime_reject_Mail</template>
    </alerts>
    <alerts>
        <fullName>NDT_timeOut_pass</fullName>
        <description>NDT延期收货批准</description>
        <protected>false</protected>
        <recipients>
            <field>Director_email__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NDT_OutTime_pass_Mail</template>
    </alerts>
    <alerts>
        <fullName>ReturnEmail</fullName>
        <description>回寄邮件提醒</description>
        <protected>false</protected>
        <recipients>
            <field>Approver__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>sales_User__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/ReturnGoods_Mail</template>
    </alerts>
    <alerts>
        <fullName>autoEmail</fullName>
        <description>自动收货提醒</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/Received_Mail</template>
    </alerts>
    <alerts>
        <fullName>passEmail</fullName>
        <description>延期收货_批准</description>
        <protected>false</protected>
        <recipients>
            <field>Approver__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>sales_User__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/Pass1_Mail</template>
    </alerts>
    <fieldUpdates>
        <fullName>Delay_Reason_YES</fullName>
        <field>Automatic_Received_Date__c</field>
        <formula>Delay_Received_Date__c</formula>
        <name>延期收货_批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Director_email</fullName>
        <field>Director_email__c</field>
        <formula>loaner_application__r.Director_email__c</formula>
        <name>责任人邮箱</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <rules>
        <fullName>ANI发货提醒</fullName>
        <actions>
            <name>ANI_DeliverGoods</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>AND(IsDeliveryLogistics__c, Consignor_LogisticsNumber__c != null, NOT(IsLendOrder__c), Loaner_type__c == &apos;ANI&apos; )</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>ANI回寄邮件</fullName>
        <actions>
            <name>ANI_ReturnGoods</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>AND(NOT( IsDeliveryLogistics__c ),  Return_LogisticsNumber__c  != null ,  Loaner_type__c == &apos;ANI&apos;)</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>ANI转借发货提醒</fullName>
        <actions>
            <name>ANI_loanerApp</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>AND(IsDeliveryLogistics__c, Consignor_LogisticsNumber__c != null, IsLendOrder__c ,  Loaner_type__c == &apos;ANI&apos; )</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>NDT发货提醒</fullName>
        <actions>
            <name>NDT_DeliverGoods</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>AND(IsDeliveryLogistics__c, Consignor_LogisticsNumber__c != null, NOT(IsLendOrder__c),  Loaner_type__c == &apos;NDT&apos; )</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>NDT回寄邮件</fullName>
        <actions>
            <name>NDT_ReturnGoods</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>AND(NOT( IsDeliveryLogistics__c ),  Return_LogisticsNumber__c  != null ,  Loaner_type__c == &apos;NDT&apos;)</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>NDT转借发货提醒</fullName>
        <actions>
            <name>NDT_loanerApp</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>AND(IsDeliveryLogistics__c, Consignor_LogisticsNumber__c != null, IsLendOrder__c ,  Loaner_type__c == &apos;NDT&apos; )</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>发货提醒</fullName>
        <actions>
            <name>DeliverGoods</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>AND(IsDeliveryLogistics__c,NotReceivingNum__c &gt; 0, OR( ISCHANGED( Consignor_LogisticsCompany__c ) , ISCHANGED( Consignor_LogisticsNumber__c )  ),OR( Loaner_type__c == &apos;IE&apos;,Loaner_type__c == &apos;RVI&apos;,Loaner_type__c == &apos;BS&apos; ) )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>回寄邮件</fullName>
        <actions>
            <name>ReturnEmail</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>AND(NOT( IsDeliveryLogistics__c ),NotReceivingNum__c &gt; 0, OR( ISCHANGED(  Return_LogisticsCompany__c ) , ISCHANGED(  Return_LogisticsNumber__c )  ),OR( Loaner_type__c == &apos;IE&apos;,Loaner_type__c == &apos;RVI&apos;,Loaner_type__c == &apos;BS&apos;  ))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>自动收货提醒</fullName>
        <active>true</active>
        <criteriaItems>
            <field>Loaner_Express__c.Remind_Received_Date__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>Loaner_Express__c.NotReceivingNum__c</field>
            <operation>greaterThan</operation>
            <value>0</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
        <workflowTimeTriggers>
            <actions>
                <name>autoEmail</name>
                <type>Alert</type>
            </actions>
            <offsetFromField>Loaner_Express__c.Remind_Received_Date__c</offsetFromField>
            <timeLength>0</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
    <rules>
        <fullName>责任人邮箱</fullName>
        <actions>
            <name>Director_email</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>loaner_application__c.Director_email__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>