소스 검색

update

tags/Baseline_30082024_BACKEND_UAT
MSI\derek 1 년 전
부모
커밋
4e55342d28
3개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. +6
    -3
      src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt
  2. BIN
      src/main/resources/templates/report/AR05_Project Completion Report.xlsx
  3. BIN
      src/main/resources/templates/report/AR06_Project Completion Report with Outstanding Accounts Receivable v02.xlsx

+ 6
- 3
src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt 파일 보기

@@ -1733,9 +1733,10 @@ open class ReportService(
+ " result.code, "
+ " result.name, "
+ " result.teamCode, "
+ " result.custCode, " )
+ " result.custCode, "
+ " result.subCode, " )
if (args.get("outstanding") as Boolean) {
sql.append(" result.projectFee - (result.totalBudget - COALESCE(i.issueAmount , 0) + COALESCE(i.issueAmount, 0) - COALESCE(i.paidAmount, 0)) as `Receivable Remained`, ")
sql.append(" result.projectFee - COALESCE(i.paidAmount, 0) as `Receivable Remained`, ")
}
sql.append(
" DATE_FORMAT(result.actualEnd, '%d/%m/%Y') as actualEnd "
@@ -1746,6 +1747,7 @@ open class ReportService(
+ " min(p.name) as name, "
+ " min(t.code) as teamCode, "
+ " min(c.code) as custCode, "
+ " COALESCE(concat(min(ss.code),' - ',min(ss.name)), 'N/A') as subCode, "
+ " min(p.actualEnd) as actualEnd, "
+ " min(p.expectedTotalFee) as projectFee, "
+ " sum(COALESCE(tns.totalConsumed*sal.hourlyRate, 0)) as totalBudget "
@@ -1766,6 +1768,7 @@ open class ReportService(
+ " left join salary sal on s.salaryId = sal.salaryPoint "
+ " left JOIN team t ON s.teamId = t.id "
+ " left join customer c on c.id = p.customerId "
+ " LEFT JOIN subsidiary ss on p.customerSubsidiaryId = ss.id "
+ " where p.deleted = false "
+ " and p.status = 'Completed' "
+ " and p.actualEnd BETWEEN :startDate and :endDate "
@@ -1806,7 +1809,7 @@ open class ReportService(
+ " p.name, "
+ " t.code as team, "
+ " c.code as client, "
+ " COALESCE(ss.name, 'N/A') as subsidiary, "
+ " COALESCE(ss.code, 'N/A') as subsidiary, "
+ " p.expectedTotalFee * 0.8 as plannedBudget, "
+ " COALESCE(tns.totalBudget, 0) as actualConsumedBudget, "
+ " COALESCE(p.totalManhour, 0) as plannedManhour, "


BIN
src/main/resources/templates/report/AR05_Project Completion Report.xlsx 파일 보기


BIN
src/main/resources/templates/report/AR06_Project Completion Report with Outstanding Accounts Receivable v02.xlsx 파일 보기


불러오는 중...
취소
저장