Browse Source

update budget calculation

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

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

@@ -455,9 +455,12 @@ open class ReportService(
cellStyle.dataFormat = accountingStyle cellStyle.dataFormat = accountingStyle
} }


val fee = (item["expectedTotalFee"]?.let { it as Double } ?: 0.0) - (item["subContractFee"]?.let { it as Double }
?: 0.0)

val budgetCell = row.createCell(8) val budgetCell = row.createCell(8)
budgetCell.apply { budgetCell.apply {
cellFormula = "H${rowNum} * 80%"
setCellValue(fee.times(0.8))
cellStyle.dataFormat = accountingStyle cellStyle.dataFormat = accountingStyle
} }




Loading…
Cancel
Save