| | |
| | | String UseProduct1, String UseProduct2, String UseProduct3, |
| | | String StageName, String oppAmount, String oppOCMPrice, String Close_Forecasted_Date, String Report_Date) |
| | | { |
| | | // Department_Cateogy = GetDepartment_Cateogy(Department_Cateogy); |
| | | |
| | | system.debug('Save Agency_Report Process'); |
| | | system.debug('Agency_Report_Header+++'+Agency_Report_Header); |
| | | Agency_Report__c agency_report = makeAgencyReport(Department_Cateogy,ConsumptionOfConsumables, |
| | | WorkMark,warlocksNumber,DealerPersonnel,ProductCcategory,productCategories,WarlockClassification,ProductClassification, WorkRecord, |
| | |
| | | agency_report_headerlist = agency_report_headerMap.values(); |
| | | if(agency_report_headerlist.size() > 0){ |
| | | LightningUtil.upsertMAgencyReportHeader(agency_report_headerlist); |
| | | } |
| | | } |
| | | List<Agency_Report__c> arList = new List<Agency_Report__c>(); |
| | | Integer hang = 1; |
| | | User UserPro = LightningUtil.loginUserId(); |