<?xml version="1.0" encoding="UTF-8"?>
|
<ApprovalProcess xmlns="http://soap.sforce.com/2006/04/metadata">
|
<active>true</active>
|
<allowRecall>true</allowRecall>
|
<allowedSubmitters>
|
<submitter>a5</submitter>
|
<type>group</type>
|
</allowedSubmitters>
|
<allowedSubmitters>
|
<type>owner</type>
|
</allowedSubmitters>
|
<approvalPageFields>
|
<field>Name</field>
|
<field>Opportunity_No__c</field>
|
<field>Hospital__c</field>
|
<field>Department_Class__c</field>
|
<field>Department_Name__c</field>
|
<field>Owner</field>
|
<field>Stock_apply_time__c</field>
|
</approvalPageFields>
|
<approvalStep>
|
<allowDelegate>false</allowDelegate>
|
<assignedApprover>
|
<approver>
|
<type>userHierarchyField</type>
|
</approver>
|
</assignedApprover>
|
<description>如果是D || E时,审批人为申请人的经理(销售)</description>
|
<label>备货申请审批</label>
|
<name>jingli_pass</name>
|
</approvalStep>
|
<emailTemplate>Prospect/Stock_apply_approval_template</emailTemplate>
|
<enableMobileDeviceAccess>false</enableMobileDeviceAccess>
|
<entryCriteria>
|
<criteriaItems>
|
<field>Opportunity.Stock_apply_status__c</field>
|
<operation>equals</operation>
|
<value>填写完毕</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Opportunity.Stock_apply_passtime__c</field>
|
<operation>equals</operation>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Opportunity.Last_opportunity_file_stage__c</field>
|
<operation>equals</operation>
|
<value>D.供货保证书,E.盖章的配置单</value>
|
</criteriaItems>
|
</entryCriteria>
|
<finalApprovalActions>
|
<action>
|
<name>Opportunity_stage_Closing_Bid</name>
|
<type>FieldUpdate</type>
|
</action>
|
<action>
|
<name>Stock_apply_passtime_update</name>
|
<type>FieldUpdate</type>
|
</action>
|
<action>
|
<name>Stock_apply_status_pass</name>
|
<type>FieldUpdate</type>
|
</action>
|
</finalApprovalActions>
|
<finalApprovalRecordLock>false</finalApprovalRecordLock>
|
<finalRejectionActions>
|
<action>
|
<name>Stock_apply_passtime_clear</name>
|
<type>FieldUpdate</type>
|
</action>
|
<action>
|
<name>Stock_apply_status_reject</name>
|
<type>FieldUpdate</type>
|
</action>
|
</finalRejectionActions>
|
<finalRejectionRecordLock>false</finalRejectionRecordLock>
|
<initialSubmissionActions>
|
<action>
|
<name>Stock_apply_approval_cc</name>
|
<type>Alert</type>
|
</action>
|
<action>
|
<name>Stock_apply_status_submit</name>
|
<type>FieldUpdate</type>
|
</action>
|
<action>
|
<name>Stock_apply_time_update</name>
|
<type>FieldUpdate</type>
|
</action>
|
</initialSubmissionActions>
|
<label>备货申请审批-手动</label>
|
<nextAutomatedApprover>
|
<useApproverFieldOfRecordOwner>false</useApproverFieldOfRecordOwner>
|
<userHierarchyField>SalesManager__c</userHierarchyField>
|
</nextAutomatedApprover>
|
<processOrder>2</processOrder>
|
<recallActions>
|
<action>
|
<name>Stock_apply_passtime_clear</name>
|
<type>FieldUpdate</type>
|
</action>
|
<action>
|
<name>Stock_apply_status_draft</name>
|
<type>FieldUpdate</type>
|
</action>
|
</recallActions>
|
<recordEditability>AdminOrCurrentApprover</recordEditability>
|
<showApprovalHistory>true</showApprovalHistory>
|
</ApprovalProcess>
|