Browse Source

update

tags/Baseline_30082024_BACKEND_UAT
cyril.tsui 1 year ago
parent
commit
6663955e81
2 changed files with 10 additions and 2 deletions
  1. +2
    -2
      src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt
  2. +8
    -0
      src/main/resources/db/changelog/changes/20240529_01_cyril/01_insert_authority.sql

+ 2
- 2
src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt View File

@@ -684,12 +684,12 @@ open class ReportService(
rowIndex = 9
sheet.getRow(rowIndex).apply {
createCell(1).apply {
setCellValue(project.expectedTotalFee!!)
setCellValue(project.expectedTotalFee!! * 0.8)
cellStyle.dataFormat = accountingStyle
}

createCell(2).apply {
setCellValue(project.expectedTotalFee!! / 0.8)
setCellValue(project.expectedTotalFee!!)
cellStyle.dataFormat = accountingStyle
}
}


+ 8
- 0
src/main/resources/db/changelog/changes/20240529_01_cyril/01_insert_authority.sql View File

@@ -0,0 +1,8 @@
-- liquibase formatted sql
-- changeset cyril:authority, user_authority

INSERT INTO authority (authority,name)
VALUES ('DELETE_PROJECT','delete project');

INSERT INTO user_authority (userId,authId)
VALUES (1,19);

Loading…
Cancel
Save