<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>OrderApprove</fullName>
|
<description>订单Win通知</description>
|
<protected>false</protected>
|
<recipients>
|
<field>SalesManager__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/order_winrebut_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Order_Rebut</fullName>
|
<description>订单驳回通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/order_rebut_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Order_Request</fullName>
|
<description>订单审批申请</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/order_approval_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Order_Warn</fullName>
|
<description>未到货订单信息警告(超过一周)</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>Olympus_OCM/Order_Warn_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>order_winrebut</fullName>
|
<description>订单配置清单查看通知</description>
|
<protected>false</protected>
|
<recipients>
|
<field>SalesManager__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/order_winrebut_HTML</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>ActionFieldUpdate</fullName>
|
<description>Consumable_order__c</description>
|
<field>Order_Indication__c</field>
|
<formula>RCCD__c &"-"& Order_period_New__c &"-"& AutoNumber__c</formula>
|
<name>更新Order_Indication</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>ApplySalsesTeam</fullName>
|
<field>ApplySalsesTeam__c</field>
|
<formula>ApplySalsesTeam_F__c</formula>
|
<name>消耗品订单申请销售课</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Order_name</fullName>
|
<field>Name</field>
|
<formula>RCCD__c &"-"& Order_period_New__c &"-"&MID(Text(Today()), 6, 2)&"-"&Order_type_mark__c& AutoNumber__c</formula>
|
<name>Order_name</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_invoice_status</fullName>
|
<field>Invoice_status__c</field>
|
<literalValue>已完成</literalValue>
|
<name>更新发票状态</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_invoice_status_back</fullName>
|
<field>Invoice_status__c</field>
|
<literalValue>提交</literalValue>
|
<name>更新发票状态_back</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_orderName</fullName>
|
<description>自动编码=>Name</description>
|
<field>Name</field>
|
<formula>IF(Name = '*',RCCD__c & MID(Text(Today()), 3, 2) & "-" & RIGHT(AutoNumber__c,5),Name)</formula>
|
<name>update_orderName</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_status_01</fullName>
|
<field>Order_status__c</field>
|
<literalValue>已提交</literalValue>
|
<name>订单状态更新-已提交</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_status_02</fullName>
|
<field>Order_status__c</field>
|
<literalValue>批准</literalValue>
|
<name>订单状态更新-批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_status_03</fullName>
|
<field>Order_status__c</field>
|
<literalValue>驳回</literalValue>
|
<name>订单状态更新-驳回</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_status_04</fullName>
|
<field>Order_status__c</field>
|
<literalValue>草案中</literalValue>
|
<name>订单状态更新-草案中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_status_1</fullName>
|
<field>Order_status__c</field>
|
<literalValue>已提交</literalValue>
|
<name>订单状态更新-已提交</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>Invoice_Status_back</fullName>
|
<actions>
|
<name>Update_invoice_status_back</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<booleanFilter>(1 OR 2) AND 3</booleanFilter>
|
<criteriaItems>
|
<field>Consumable_order__c.Invoice_attachment__c</field>
|
<operation>equals</operation>
|
<value>假</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Consumable_order__c.Invoicedet_attachment__c</field>
|
<operation>equals</operation>
|
<value>假</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Consumable_order__c.Invoice_status__c</field>
|
<operation>equals</operation>
|
<value>已完成</value>
|
</criteriaItems>
|
<description>更新发票状态 提交</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>Invoice_Status_done</fullName>
|
<actions>
|
<name>Update_invoice_status</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<booleanFilter>(1 AND 2)</booleanFilter>
|
<criteriaItems>
|
<field>Consumable_order__c.Invoice_attachment__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Consumable_order__c.Invoicedet_attachment__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<description>更新发票状态 已完成</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>Order_Indication</fullName>
|
<actions>
|
<name>Order_name</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<booleanFilter>(1 OR 2)</booleanFilter>
|
<criteriaItems>
|
<field>Consumable_order__c.Name</field>
|
<operation>equals</operation>
|
<value>*</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Consumable_order__c.Name</field>
|
<operation>equals</operation>
|
</criteriaItems>
|
<description>Consumable_order__c</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>未到货订单信息警告%EF%BC%88超过一周%EF%BC%89</fullName>
|
<active>true</active>
|
<criteriaItems>
|
<field>Consumable_order__c.RecordTypeId</field>
|
<operation>equals</operation>
|
<value>02 发货</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Consumable_order__c.Shipment_date__c</field>
|
<operation>lessOrEqual</operation>
|
<value>7 天前</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Consumable_order__c.Delivery_detail_count__c</field>
|
<operation>greaterThan</operation>
|
<value>0</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
<workflowTimeTriggers>
|
<actions>
|
<name>Order_Warn</name>
|
<type>Alert</type>
|
</actions>
|
<offsetFromField>Consumable_order__c.Shipment_date__c</offsetFromField>
|
<timeLength>7</timeLength>
|
<workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
</rules>
|
<rules>
|
<fullName>确定申请销售课</fullName>
|
<actions>
|
<name>ApplySalsesTeam</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>ISNEW() || ISCHANGED(ApplySalsesTeam_F__c)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>追溯系统驳回提醒</fullName>
|
<actions>
|
<name>Order_Rebut</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED(Order_status__c) && TEXT( Order_status__c)= '驳回'</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|