Selaa lähdekoodia

update consumption report

tags/Baseline_30082024_BACKEND_UAT
MSI\derek 1 vuosi sitten
vanhempi
commit
1a24673c0f
2 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. +2
    -0
      src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt
  2. BIN
      src/main/resources/templates/report/AR03_Resource Overconsumption.xlsx

+ 2
- 0
src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt Näytä tiedosto

@@ -1806,6 +1806,7 @@ open class ReportService(
+ " p.name, "
+ " t.code as team, "
+ " c.code as client, "
+ " COALESCE(ss.name, 'N/A') as subsidiary, "
+ " p.expectedTotalFee * 0.8 as plannedBudget, "
+ " COALESCE(tns.totalBudget, 0) as actualConsumedBudget, "
+ " COALESCE(p.totalManhour, 0) as plannedManhour, "
@@ -1826,6 +1827,7 @@ open class ReportService(
+ " LEFT JOIN staff s ON p.teamLead = s.id "
+ " LEFT JOIN salary sa ON s.salaryId = sa.salaryPoint "
+ " LEFT JOIN customer c ON p.customerId = c.id "
+ " LEFT JOIN subsidiary ss on p.customerSubsidiaryId = ss.id "
+ " left join teamNormalConsumed tns on tns.project_id = p.id "
+ " WHERE p.deleted = false "
+ " and p.status = 'On-going' "


BIN
src/main/resources/templates/report/AR03_Resource Overconsumption.xlsx Näytä tiedosto


Ladataan…
Peruuta
Tallenna