Quellcode durchsuchen

Add function to calculate cumulative expediture

Modify PNL Report, Financial Status Report and Cost and Expense Report
tags/Baseline_30082024_BACKEND_UAT
MSI\2Fi vor 1 Jahr
Ursprung
Commit
d68c8fa7c2
1 geänderte Dateien mit 25 neuen und 0 gelöschten Zeilen
  1. +25
    -0
      src/main/java/com/ffii/tsms/modules/report/web/ReportController.kt

+ 25
- 0
src/main/java/com/ffii/tsms/modules/report/web/ReportController.kt Datei anzeigen

@@ -38,6 +38,7 @@ import org.apache.commons.logging.Log
import org.apache.commons.logging.LogFactory
import org.springframework.data.domain.Example
import org.springframework.data.domain.ExampleMatcher
import java.math.BigDecimal
import java.time.YearMonth
import java.util.*

@@ -346,4 +347,28 @@ class ReportController(
// return ResponseEntity.noContent().build()
// }
}

// API for testing data of total cumulative expenditure
// @GetMapping("/test")
// fun testApi(@RequestParam teamLeadId: Long): Map<String, BigDecimal>{
// val manhoursSpent = excelReportService.getManHoursSpentByTeam(teamLeadId)
// val salaryEffectiveMap = excelReportService.getSalaryEffectiveByTeamLead(teamLeadId)
// val updatedTimesheetData = excelReportService.updateTimesheetDataWithEffectiveSalary(manhoursSpent, salaryEffectiveMap)
// val projectStaffExpenditures = excelReportService.sumTimesheetDataByMonth(updatedTimesheetData)
// val projectExpenditure = excelReportService.calculateProjectExpenditures(updatedTimesheetData)
//
// return projectExpenditure
// }
// @GetMapping("/test2")
//
// fun testApi2(@RequestParam teamLeadId: Long): Map<String, ReportService.ProjectSummary>{
// val manhoursSpent = excelReportService.getManHoursSpentByTeam(teamLeadId)
// val salaryEffectiveMap = excelReportService.getSalaryEffectiveByTeamLead(teamLeadId)
// val updatedTimesheetData = excelReportService.updateTimesheetDataWithEffectiveSalary(manhoursSpent, salaryEffectiveMap)
// val projectStaffExpenditures = excelReportService.sumTimesheetDataByMonth(updatedTimesheetData)
// val projectExpenditure = excelReportService.calculateProjectExpenditures(updatedTimesheetData)
//
// return projectStaffExpenditures
// }

}

Laden…
Abbrechen
Speichern