From e3c02c03dd2de442bbced87236f60a13a1cd154e Mon Sep 17 00:00:00 2001 From: 高章伟 <gaozhangwei@prec-tech.com> Date: 星期四, 02 三月 2023 17:51:57 +0800 Subject: [PATCH] gzw 正式环境最新代码更新 --- force-app/main/default/classes/PCLLostReportController.cls | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/force-app/main/default/classes/PCLLostReportController.cls b/force-app/main/default/classes/PCLLostReportController.cls index bebafa5..eb40a5d 100644 --- a/force-app/main/default/classes/PCLLostReportController.cls +++ b/force-app/main/default/classes/PCLLostReportController.cls @@ -97,6 +97,7 @@ Lost_reason_main__c, Lost_Reason_Sub__c,Lost_By_Company__c, LostTotalAmount__c,LostType__c, + TotalAmountLost__c, //20230215 lt DB202302247719 Report_Status__c,Sales_assistant__c, Opportunity__c, Opportunity__r.Sales_assistant_ID__c, Opportunity__r.Sales_manager_departmentID__c, @@ -128,6 +129,7 @@ list<PCLLostBrand__c> selectlostBrandList = [ select id, LostPrice__c, Lost_By_Company__c, + LostPrices_ThousandY__c, //20230215 lt DB202302247719 Lost_reason_main__c,Lost_Reason_Sub__c,Name,Agency__c, AgencyMannual__c, // ProductCategory__c,ProductClass__c, Lost_cancel_report__c,Lost_By_Company_Mannual__c, @@ -374,6 +376,7 @@ // 璁剧疆璁板綍绫诲瀷 LostReport.lostReport.recordTypeID = LostReport.lostReport.LostType__c== '澶卞崟'?Schema.SObjectType.Lost_cancel_report__c.getRecordTypeInfosByDeveloperName().get('PCL_Lost_report').getRecordTypeId() : Schema.SObjectType.Lost_cancel_report__c.getRecordTypeInfosByDeveloperName().get('PCL_PartLost_report').getRecordTypeId(); LostReport.lostReport.LostTotalAmount__c = 0; + LostReport.lostReport.TotalAmountLost__c = 0; //20230215 lt DB202302247719 LostReport.lostReport.of_lost_system_processor__c = 0; LostReport.lostReport.Lost_reason_main__c = null; LostReport.lostReport.Lost_Reason_Sub__c = null; @@ -381,6 +384,16 @@ for(LostBrand tempLostBrand : LostReport.LostBrands) { if(string.isNotBlank(tempLostBrand.lostBrand.Lost_By_Company__c)) { LostReport.lostReport.LostTotalAmount__c += tempLostBrand.lostBrand.LostPrice__c; + //20230215 lt DB202302247719 start + Decimal med = tempLostBrand.lostBrand.LostPrice__c/1.13/1000; + Decimal med1 = med.setScale(2); + System.debug('---lt123涓嶅惈绋庢暟鍊�(浜哄伐)Decimal---'+med); + System.debug('---lt123涓嶅惈绋庢暟鍊�(浜哄伐)Decimal涓や綅灏忔暟---'+med1); + LostReport.lostReport.TotalAmountLost__c += med1; + //LostReport.lostReport.TotalAmountLost__c += tempLostBrand.lostBrand.LostPrices_ThousandY__c; //20230215 lt DB202302247719 + // LostReport.lostReport.TotalAmountLost__c += tempLostBrand.lostBrand.LostPrice__c/1.13/1000; //20230215 lt DB202302247719 + //20230215 lt DB202302247719 en + LostReport.lostReport.Lost_reason_main__c = LostReport.lostReport.Lost_reason_main__c == null ? tempLostBrand.lostBrand.Lost_reason_main__c @@ -489,6 +502,7 @@ LostReport.lostReport = templostReport; LostReport.LostBrands = tempBrands; // 杩欓噷闇�瑕佸啓涓�浜涙姤閿欎俊鎭� + System.debug('---lt123---'+ex.getLineNumber()); ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error,ex.getMessage())); return false; } -- Gitblit v1.9.1