binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
force-app/main/default/workflows/Repair__c.workflow-meta.xml
@@ -12,7 +12,7 @@
            <field>PAE_email__c</field>
            <type>email</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>repair/repair1</template>
    </alerts>
@@ -28,7 +28,7 @@
            <field>OCSM_Manager_Mail__c</field>
            <type>email</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>repair/repair2</template>
    </alerts>
@@ -44,7 +44,7 @@
            <field>OCSM_Manager_Mail__c</field>
            <type>email</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>repair/AE_Allowed1</template>
    </alerts>
@@ -64,7 +64,7 @@
            <recipient>it_prectech@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>repair/AE_NonAEUpd</template>
    </alerts>
@@ -88,12 +88,13 @@
            <recipient>peiqiang_lin@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>repair/AE_NonAllowed2</template>
    </alerts>
    <alerts>
        <fullName>Cancel_Initiatioan</fullName>
        <ccEmails>hiroki_hotta@olympus.com.cn</ccEmails>
        <description>PAE_已取消或删除待Initiatioan的修理</description>
        <protected>false</protected>
        <recipients>
@@ -186,6 +187,7 @@
    </alerts>
    <alerts>
        <fullName>EtQ_Cancel</fullName>
        <ccEmails>hiroki_hotta@olympus.com.cn</ccEmails>
        <description>已EtQ Initiation的变成为删除或取消</description>
        <protected>false</protected>
        <recipients>
@@ -212,7 +214,7 @@
            <recipient>xizhi_ma@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>repair/ETQCancel</template>
    </alerts>
@@ -220,6 +222,7 @@
        <fullName>Final_PAE_PAE1</fullName>
        <ccEmails>lili_zhang@olympus.com.cn</ccEmails>
        <ccEmails>peiqiang_lin@olympus.com.cn</ccEmails>
        <ccEmails>yoichi_murata@olympus.com.cn</ccEmails>
        <description>PAE--Final时其他变成PAE/Unknown</description>
        <protected>false</protected>
        <recipients>
@@ -279,6 +282,7 @@
    <alerts>
        <fullName>Need_Report_Repair1</fullName>
        <ccEmails>lili_zhang@olympus.com.cn</ccEmails>
        <ccEmails>yoichi_murata@olympus.com.cn</ccEmails>
        <ccEmails>shuting_wang@olympus.com.cn</ccEmails>
        <description>OCSM要报告(EtQ已确认)</description>
        <protected>false</protected>
@@ -306,13 +310,14 @@
            <recipient>peiqiang_lin@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>DOJ/Need_Report_Repair1</template>
    </alerts>
    <alerts>
        <fullName>Need_Report_Repair2</fullName>
        <ccEmails>lili_zhang@olympus.com.cn</ccEmails>
        <ccEmails>yoichi_murata@olympus.com.cn</ccEmails>
        <ccEmails>shuting_wang@olympus.com.cn</ccEmails>
        <description>OCSM要报告,AWARE DATE过10天后,尚未发报告,提醒邮件</description>
        <protected>false</protected>
@@ -347,6 +352,7 @@
        <fullName>PAE_Final_AE</fullName>
        <ccEmails>ili_zhang@olympus.com.cn</ccEmails>
        <ccEmails>peiqiang_lin@olympus.com.cn</ccEmails>
        <ccEmails>yoichi_murata@olympus.com.cn</ccEmails>
        <description>PAE--Final时code变化更新</description>
        <protected>false</protected>
        <recipients>
@@ -402,7 +408,7 @@
            <recipient>URFGroupGZ_CD</recipient>
            <type>group</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate</template>
    </alerts>
@@ -414,7 +420,7 @@
        <ccEmails>Danhong_Lin@olympus.com.cn</ccEmails>
        <description>限次RC修理返送邮件(广州、成都)其他</description>
        <protected>false</protected>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate_other</template>
    </alerts>
@@ -432,7 +438,7 @@
            <recipient>URFGroupGZ_CD</recipient>
            <type>group</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate</template>
    </alerts>
@@ -443,7 +449,7 @@
        <ccEmails>jing_zhang@olympus.com.cn</ccEmails>
        <description>限次RC修理返送邮件(广州)其他</description>
        <protected>false</protected>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate_other</template>
    </alerts>
@@ -462,7 +468,7 @@
            <recipient>URFGroupSH_HZ</recipient>
            <type>group</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate</template>
    </alerts>
@@ -474,7 +480,7 @@
        <ccEmails>shuijing.hu@olympus.com</ccEmails>
        <description>限次RC修理返送邮件(上海、杭州)其他</description>
        <protected>false</protected>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate_other</template>
    </alerts>
@@ -492,7 +498,7 @@
            <recipient>URFGroupSH_HZ</recipient>
            <type>group</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate</template>
    </alerts>
@@ -504,7 +510,7 @@
        <ccEmails>shuijing.hu@olympus.com</ccEmails>
        <description>限次RC修理返送邮件(上海)其他</description>
        <protected>false</protected>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate_other</template>
    </alerts>
@@ -522,7 +528,7 @@
            <recipient>URFGroupSY</recipient>
            <type>group</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate</template>
    </alerts>
@@ -533,7 +539,7 @@
        <ccEmails>jing_zhang@olympus.com.cn</ccEmails>
        <description>限次RC修理返送邮件(沈阳)其他</description>
        <protected>false</protected>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate_other</template>
    </alerts>
@@ -545,7 +551,7 @@
            <recipient>URFGroup</recipient>
            <type>group</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_Repair_EmailTemplate</template>
    </alerts>
@@ -564,7 +570,7 @@
            <recipient>URFGroupBJ_SY_XA</recipient>
            <type>group</type>
        </recipients>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate</template>
    </alerts>
@@ -576,7 +582,7 @@
        <ccEmails>shuijing.hu@olympus.com</ccEmails>
        <description>限次RC修理返送邮件(全国)</description>
        <protected>false</protected>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate_other</template>
    </alerts>
@@ -587,7 +593,7 @@
        <ccEmails>Zhixin_Hou@olympus.com.cn</ccEmails>
        <description>限次RC修理返送邮件(北京、沈阳、西安)其他</description>
        <protected>false</protected>
        <senderAddress>18523460502@163.com</senderAddress>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/RC_return_Repair_EmailTemplate_other</template>
    </alerts>
@@ -1241,14 +1247,14 @@
        <description>修正前:Hospital__r.FSE_Main__r.Salesdepartment__c</description>
        <field>FSE_owner_Salesdepartment__c</field>
        <formula>CASE(Account__r.Parent.RecordTypeId, 
&apos;012C600000003HN&apos;,Hospital__r.FSE_GI_Main_Leader__r.Salesdepartment__c,
&apos;012C600000003HK&apos;,Hospital__r.FSE_GI_Main_Leader__r.Salesdepartment__c,
&apos;012C600000003HM&apos;,Hospital__r.FSE_GI_Main_Leader__r.Salesdepartment__c,
&apos;012C600000003HO&apos;,Hospital__r.FSE_SP_Main_Leader__r.Salesdepartment__c,
&apos;012C600000003HR&apos;,Hospital__r.FSE_SP_Main_Leader__r.Salesdepartment__c,
&apos;012C600000003HL&apos;,Hospital__r.FSE_SP_Main_Leader__r.Salesdepartment__c,
&apos;012C600000003HP&apos;,Hospital__r.FSE_SP_Main_Leader__r.Salesdepartment__c,
&apos;012C600000003HQ&apos;,Hospital__r.FSE_SP_Main_Leader__r.Salesdepartment__c,
&apos;01210000000QemL&apos;,Hospital__r.FSE_GI_Main_Leader__r.Salesdepartment__c,
&apos;01210000000QezZ&apos;,Hospital__r.FSE_GI_Main_Leader__r.Salesdepartment__c,
&apos;01210000000QemQ&apos;,Hospital__r.FSE_GI_Main_Leader__r.Salesdepartment__c,
&apos;01210000000Qeze&apos;,Hospital__r.FSE_SP_Main_Leader__r.Salesdepartment__c,
&apos;01210000000Qezj&apos;,Hospital__r.FSE_SP_Main_Leader__r.Salesdepartment__c,
&apos;01210000000Qezt&apos;,Hospital__r.FSE_SP_Main_Leader__r.Salesdepartment__c,
&apos;01210000000Qezo&apos;,Hospital__r.FSE_SP_Main_Leader__r.Salesdepartment__c,
&apos;01210000000Qezy&apos;,Hospital__r.FSE_SP_Main_Leader__r.Salesdepartment__c,
&apos;&apos;
)</formula>
        <name>设定修理主负责人销售本部</name>
@@ -1476,7 +1482,7 @@
        <criteriaItems>
            <field>Repair__c.ifDeadHurtChange__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
@@ -1560,28 +1566,6 @@
            <timeLength>10</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
    <rules>
        <fullName>FSE现场修理完毕条件</fullName>
        <actions>
            <name>On_site_repair_Input_time_incharge</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <criteriaItems>
            <field>Repair__c.Repair_Ordered_Date__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>Repair__c.Repair_Returned_To_HP_Date__c</field>
            <operation>equals</operation>
        </criteriaItems>
        <criteriaItems>
            <field>Repair__c.Billing_Amount__c</field>
            <operation>equals</operation>
            <value>CNY 0</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>OCSM行政报告_已报告</fullName>
@@ -1825,8 +1809,10 @@
            <name>Repair_List_PriceText</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>ISNEW()|| ISCHANGED(Repair_List_Price__c)|| ISCHANGED(Repair_Quotation_Price__c)</formula>
        <active>true</active>
        <formula>ISNEW()||
ISCHANGED(Repair_List_Price__c)||
ISCHANGED(Repair_Quotation_Price__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1835,11 +1821,11 @@
            <name>Repair_order_Delete_requests</name>
            <type>Alert</type>
        </actions>
        <active>false</active>
        <active>true</active>
        <criteriaItems>
            <field>Repair__c.Request_repair__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
@@ -1869,10 +1855,15 @@
            <name>Update_address_ZipCode_Data</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <active>true</active>
        <description>保有设备新建修理单时,办设备上的直返收货地址带到修理单上,并保存
保有设备上所有的收货地址相关的字段都为空,那么此工作流不工作,那么会去触发器里面查找对应的办事处直返地址,并赋值到新建的修理上</description>
        <formula>ISBLANK( AWS_Data_Id__c ) &amp;&amp; (OR(NOT( ISBLANK(Delivered_Product__r.address_Contacts__c )), NOT(ISBLANK(Delivered_Product__r.address_Telephone__c)), NOT(ISBLANK(Delivered_Product__r.address_Contacts_Name__c)), NOT(ISBLANK(Delivered_Product__r.address_City__c )), NOT(ISBLANK(Delivered_Product__r.Detailed_Address__c)), NOT(ISBLANK(Delivered_Product__r.address_ZipCode__c))))</formula>
        <formula>ISBLANK( AWS_Data_Id__c ) &amp;&amp; (OR(NOT( ISBLANK(Delivered_Product__r.address_Contacts__c )),
NOT(ISBLANK(Delivered_Product__r.address_Telephone__c)),
NOT(ISBLANK(Delivered_Product__r.address_Contacts_Name__c)),
NOT(ISBLANK(Delivered_Product__r.address_City__c )),
NOT(ISBLANK(Delivered_Product__r.Detailed_Address__c)),
NOT(ISBLANK(Delivered_Product__r.address_ZipCode__c))))</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
@@ -1907,7 +1898,7 @@
            <name>SetRepairFirstEstimatedDate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <active>true</active>
        <formula>ISBLANK(  Repair_Firstestimated_Date__c )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
@@ -1917,7 +1908,7 @@
            <name>Repair_Final_completed_day</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <active>true</active>
        <criteriaItems>
            <field>Repair__c.Status__c</field>
            <operation>contains</operation>
@@ -1932,7 +1923,7 @@
            <name>X0_2_4_RC_RC</name>
            <type>Alert</type>
        </actions>
        <active>false</active>
        <active>true</active>
        <formula>ISCHANGED(Repair_Ordered_Date__c)&amp;&amp;Remaining_Amount__c&lt;=20000&amp;&amp;0&lt;=Remaining_Amount__c</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
@@ -1942,7 +1933,7 @@
            <name>Cancel_Return_Without_Repair_Notice</name>
            <type>Alert</type>
        </actions>
        <active>false</active>
        <active>true</active>
        <formula>AND( ISCHANGED(Return_Without_Repair__c) , Return_Without_Repair__c = false)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
@@ -2055,7 +2046,7 @@
        <criteriaItems>
            <field>Repair__c.Invalid_check__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
@@ -2089,7 +2080,7 @@
        <criteriaItems>
            <field>Repair__c.Return_Without_Repair__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Repair__c.Return_Without_Repair_Reason__c</field>
@@ -2123,7 +2114,7 @@
                <name>X2_01_14_30</name>
                <type>Alert</type>
            </actions>
            <timeLength>14</timeLength>
            <timeLength>30</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
        <workflowTimeTriggers>
@@ -2131,7 +2122,7 @@
                <name>X2_01_14_30</name>
                <type>Alert</type>
            </actions>
            <timeLength>30</timeLength>
            <timeLength>14</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
@@ -2153,7 +2144,7 @@
        <criteriaItems>
            <field>Repair__c.DevApply__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
@@ -2167,7 +2158,7 @@
        <criteriaItems>
            <field>Repair__c.Confirmed_Collect_money__c</field>
            <operation>equals</operation>
            <value>False</value>
            <value>假</value>
        </criteriaItems>
        <criteriaItems>
            <field>Repair__c.Collect_money_check1__c</field>
@@ -2189,7 +2180,7 @@
        <criteriaItems>
            <field>Repair__c.Confirmed_received_document__c</field>
            <operation>equals</operation>
            <value>False</value>
            <value>假</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
@@ -2271,7 +2262,7 @@
        <criteriaItems>
            <field>Repair__c.Return_Without_Repair_IF__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Repair__c.Return_Without_Repair_Date__c</field>
@@ -2289,7 +2280,7 @@
        <criteriaItems>
            <field>Repair__c.Return_Without_Repair__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Repair__c.Return_Without_Repair_Request_Date__c</field>
@@ -2321,7 +2312,7 @@
        <criteriaItems>
            <field>Repair__c.Confirmed_Collect_money__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
@@ -2339,7 +2330,7 @@
        <criteriaItems>
            <field>Repair__c.Confirmed_received_document__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
@@ -2353,7 +2344,7 @@
        <criteriaItems>
            <field>Repair__c.URF_Reapir__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Repair__c.Repair_Ordered_Date__c</field>
@@ -2380,7 +2371,7 @@
        <criteriaItems>
            <field>Repair__c.URF_Reapir__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Repair__c.Repair_Shipped_Date__c</field>
@@ -2421,7 +2412,7 @@
        <criteriaItems>
            <field>Repair__c.URF_Reapir__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Repair__c.Repair_Shipped_Date__c</field>
@@ -2458,7 +2449,7 @@
        <criteriaItems>
            <field>Repair__c.URF_Reapir__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Repair__c.Repair_Shipped_Date__c</field>
@@ -2494,7 +2485,7 @@
        <criteriaItems>
            <field>Repair__c.URF_Reapir__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Repair__c.Repair_Shipped_Date__c</field>