<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>Intra_Trade_Gurantee_RMB_Change</fullName>
|
<description>多年保修计提价格发生变化</description>
|
<protected>false</protected>
|
<recipients>
|
<recipient>mpdGuranteePrice</recipient>
|
<type>group</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>MaintenanceProductData/MaintenanceProductDataChange</template>
|
</alerts>
|
<alerts>
|
<fullName>MaintenanceProductDataAgree</fullName>
|
<description>维护产品主数据审批同意</description>
|
<protected>false</protected>
|
<recipients>
|
<field>ApplyPersion__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>MaintenanceProductData/MaintenanceProductDataAgree</template>
|
</alerts>
|
<alerts>
|
<fullName>MaintenanceProductDataRefuse</fullName>
|
<description>维护产品主数据审批驳回</description>
|
<protected>false</protected>
|
<recipients>
|
<field>ApplyPersion__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>MaintenanceProductData/MaintenanceProductDataRefuse</template>
|
</alerts>
|
<alerts>
|
<fullName>MaintenanceProductDataWrite</fullName>
|
<description>维护产品主数据多年保主数据服务本部填写</description>
|
<protected>false</protected>
|
<recipients>
|
<recipient>mpdGuranteeMain</recipient>
|
<type>group</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>MaintenanceProductData/MaintenanceProductDataWrite</template>
|
</alerts>
|
<alerts>
|
<fullName>NoDiscountOrTypeChange</fullName>
|
<description>NoDiscount价格/多年保修类型发生改变</description>
|
<protected>false</protected>
|
<recipients>
|
<recipient>mpdGuranteeMain1</recipient>
|
<type>group</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>MaintenanceProductData/MaintenanceProductDataChange</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>UpdatecompleteDate</fullName>
|
<field>completeDate__c</field>
|
<formula>NOW()</formula>
|
<name>完成时间</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>mpdStatus0</fullName>
|
<field>Status__c</field>
|
<literalValue>草案中</literalValue>
|
<name>更新状态-草案中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>mpdStatus2</fullName>
|
<field>Status__c</field>
|
<literalValue>审批中</literalValue>
|
<name>更新状态-审批中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>mpdStatus3</fullName>
|
<field>Status__c</field>
|
<literalValue>完成</literalValue>
|
<name>更新状态-完成</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>mpdStatus4</fullName>
|
<field>Status__c</field>
|
<literalValue>已驳回</literalValue>
|
<name>更新状态-已驳回</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>mpdStatus5</fullName>
|
<field>Status__c</field>
|
<literalValue>审批中-服务</literalValue>
|
<name>更新状态-审批中-服务</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>mpdStatus6</fullName>
|
<field>Status__c</field>
|
<literalValue>服务填写</literalValue>
|
<name>更新状态-服务填写</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>NoDiscount价格%2F多年保修类型发生改变</fullName>
|
<actions>
|
<name>NoDiscountOrTypeChange</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<booleanFilter>1 AND ( 2 OR 3)</booleanFilter>
|
<criteriaItems>
|
<field>Maintenance_Product_Data__c.Status__c</field>
|
<operation>equals</operation>
|
<value>完成</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Maintenance_Product_Data__c.GuranteeType_Sum__c</field>
|
<operation>greaterThan</operation>
|
<value>0</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Maintenance_Product_Data__c.Intra_Trade_Service_RMB_Sum__c</field>
|
<operation>greaterThan</operation>
|
<value>0</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>多年保修计提价格发生改变</fullName>
|
<actions>
|
<name>Intra_Trade_Gurantee_RMB_Change</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<booleanFilter>1 AND 2</booleanFilter>
|
<criteriaItems>
|
<field>Maintenance_Product_Data__c.Status__c</field>
|
<operation>equals</operation>
|
<value>完成</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Maintenance_Product_Data__c.Intra_Trade_Gurantee_RMB_Sum__c</field>
|
<operation>greaterThan</operation>
|
<value>0</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
</Workflow>
|