Browse Source

Update formula

tags/Baseline_30082024_BACKEND_UAT
MSI\2Fi 1 year ago
parent
commit
dafbcbb1af
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt

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

@@ -589,7 +589,7 @@ open class ReportService(


val lastCpiCell = row.createCell(13) val lastCpiCell = row.createCell(13)
lastCpiCell.apply { lastCpiCell.apply {
cellFormula = "IF(J${rowNum}=0,0,L${rowNum}/J${rowNum})"
cellFormula = "IF(J${rowNum+1}=0,0,L${rowNum+1}/J${rowNum+1})"
cellStyle = boldFontCellStyle cellStyle = boldFontCellStyle
cellStyle.dataFormat = accountingStyle cellStyle.dataFormat = accountingStyle
} }
@@ -598,7 +598,7 @@ open class ReportService(


val lastPCpiCell = row.createCell(14) val lastPCpiCell = row.createCell(14)
lastPCpiCell.apply { lastPCpiCell.apply {
cellFormula = "=IF(J${rowNum}=0,0,H${rowNum}/J${rowNum})"
cellFormula = "IF(J${rowNum+1}=0,0,H${rowNum+1}/J${rowNum+1})"
cellStyle = boldFontCellStyle cellStyle = boldFontCellStyle
cellStyle.dataFormat = accountingStyle cellStyle.dataFormat = accountingStyle
} }


Loading…
Cancel
Save