| | |
| | | if (rectCotac.size() == 0) { |
| | | return; |
| | | } |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効'); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効'); |
| | | insert new Product2[]{prod01,prod02}; |
| | |
| | | trigger ConsumableOrderTrigger on Consumable_order__c (before insert, before update) { |
| | | if (StaticParameter.EscapeConsumableOrderDetail2Trigger) { |
| | | return; |
| | | } |
| | | // CHAN-CBYBBF 【委托】经销商ET账号显示界面维护-广东汇晨 start |
| | | // 注释跳过 发货时要计算 SAP合同号 |
| | | // if (StaticParameter.EscapeConsumableOrderDetail2Trigger) { |
| | | // return; |
| | | // } |
| | | // CHAN-CBYBBF 【委托】经销商ET账号显示界面维护-广东汇晨 end |
| | | //add by rentx 20210618 start |
| | | if (StaticParameter.ConsumableOrderTrigger) { |
| | | return; |