<?xml version="1.0" encoding="UTF-8"?>
|
<ApprovalProcess xmlns="http://soap.sforce.com/2006/04/metadata">
|
<active>false</active>
|
<allowRecall>true</allowRecall>
|
<allowedSubmitters>
|
<type>creator</type>
|
</allowedSubmitters>
|
<allowedSubmitters>
|
<submitter>DealerGroup</submitter>
|
<type>group</type>
|
</allowedSubmitters>
|
<approvalPageFields>
|
<field>OrderNumber</field>
|
<field>Owner</field>
|
<field>CancelReason__c</field>
|
<field>ContractLink__c</field>
|
</approvalPageFields>
|
<approvalStep>
|
<allowDelegate>true</allowDelegate>
|
<assignedApprover>
|
<approver>
|
<name>SalesManager_BS__c</name>
|
<type>relatedUserField</type>
|
</approver>
|
<whenMultipleApprovers>FirstResponse</whenMultipleApprovers>
|
</assignedApprover>
|
<description>行业销售课经理</description>
|
<label>行业销售课经理</label>
|
<name>X1</name>
|
</approvalStep>
|
<approvalStep>
|
<allowDelegate>true</allowDelegate>
|
<assignedApprover>
|
<approver>
|
<name>BusinessDepOwnerTax_BS__c</name>
|
<type>relatedUserField</type>
|
</approver>
|
<whenMultipleApprovers>FirstResponse</whenMultipleApprovers>
|
</assignedApprover>
|
<description>业务部担当(完税)</description>
|
<entryCriteria>
|
<criteriaItems>
|
<field>Order.Is_TAX__c</field>
|
<operation>equals</operation>
|
<value>True</value>
|
</criteriaItems>
|
</entryCriteria>
|
<ifCriteriaNotMet>ApproveRecord</ifCriteriaNotMet>
|
<label>业务部担当(完税)</label>
|
<name>X2</name>
|
<rejectBehavior>
|
<type>RejectRequest</type>
|
</rejectBehavior>
|
</approvalStep>
|
<approvalStep>
|
<allowDelegate>true</allowDelegate>
|
<assignedApprover>
|
<approver>
|
<name>BusinessDepOwnerWithoutTax_BS__c</name>
|
<type>relatedUserField</type>
|
</approver>
|
<whenMultipleApprovers>FirstResponse</whenMultipleApprovers>
|
</assignedApprover>
|
<description>业务部担当(免税)</description>
|
<entryCriteria>
|
<criteriaItems>
|
<field>Order.Is_TAX__c</field>
|
<operation>equals</operation>
|
<value>False</value>
|
</criteriaItems>
|
</entryCriteria>
|
<ifCriteriaNotMet>ApproveRecord</ifCriteriaNotMet>
|
<label>业务部担当(免税)</label>
|
<name>X3</name>
|
<rejectBehavior>
|
<type>RejectRequest</type>
|
</rejectBehavior>
|
</approvalStep>
|
<approvalStep>
|
<allowDelegate>true</allowDelegate>
|
<assignedApprover>
|
<approver>
|
<name>wei_liu@ssbg.com</name>
|
<type>user</type>
|
</approver>
|
<whenMultipleApprovers>FirstResponse</whenMultipleApprovers>
|
</assignedApprover>
|
<description>业务部部长</description>
|
<label>业务部部长</label>
|
<name>X4</name>
|
<rejectBehavior>
|
<type>RejectRequest</type>
|
</rejectBehavior>
|
</approvalStep>
|
<emailTemplate>SSBG_Contract/SSBGContractCancelReq</emailTemplate>
|
<enableMobileDeviceAccess>false</enableMobileDeviceAccess>
|
<entryCriteria>
|
<criteriaItems>
|
<field>Order.RecordType</field>
|
<operation>equals</operation>
|
<value>ANISalesContract,ANISalesContract Approval</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Order.ApproveStatus__c</field>
|
<operation>equals</operation>
|
<value>CompletedC</value>
|
</criteriaItems>
|
</entryCriteria>
|
<finalApprovalActions>
|
<action>
|
<name>CancelPass</name>
|
<type>FieldUpdate</type>
|
</action>
|
<action>
|
<name>ContractCancelPassEmail</name>
|
<type>Alert</type>
|
</action>
|
<action>
|
<name>ContractCancelPassEmail_ANI_CC</name>
|
<type>Alert</type>
|
</action>
|
<action>
|
<name>ContractToInactive</name>
|
<type>FieldUpdate</type>
|
</action>
|
<action>
|
<name>Is_Copy_Update</name>
|
<type>FieldUpdate</type>
|
</action>
|
<action>
|
<name>RecordTypeReturn_ANI</name>
|
<type>FieldUpdate</type>
|
</action>
|
<action>
|
<name>StatusChangeToCancel</name>
|
<type>FieldUpdate</type>
|
</action>
|
</finalApprovalActions>
|
<finalApprovalRecordLock>false</finalApprovalRecordLock>
|
<finalRejectionActions>
|
<action>
|
<name>BackToPreStatus</name>
|
<type>FieldUpdate</type>
|
</action>
|
<action>
|
<name>ContractCancelRejectEmail</name>
|
<type>Alert</type>
|
</action>
|
</finalRejectionActions>
|
<finalRejectionRecordLock>false</finalRejectionRecordLock>
|
<initialSubmissionActions>
|
<action>
|
<name>CancelSubmit</name>
|
<type>FieldUpdate</type>
|
</action>
|
<action>
|
<name>ContractCancelReqEmail</name>
|
<type>Alert</type>
|
</action>
|
<action>
|
<name>RecordTypeUpdate_ANI</name>
|
<type>FieldUpdate</type>
|
</action>
|
</initialSubmissionActions>
|
<label>合同取消批准过程(ANI)_new</label>
|
<recallActions>
|
<action>
|
<name>BackToPreStatus</name>
|
<type>FieldUpdate</type>
|
</action>
|
</recallActions>
|
<recordEditability>AdminOnly</recordEditability>
|
<showApprovalHistory>true</showApprovalHistory>
|
</ApprovalProcess>
|