浏览代码

update budget calculation

tags/Baseline_30082024_BACKEND_UAT
MSI\2Fi 1年前
父节点
当前提交
53636dd44b
共有 1 个文件被更改,包括 4 次插入1 次删除
  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 查看文件

@@ -455,9 +455,12 @@ open class ReportService(
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)
budgetCell.apply {
cellFormula = "H${rowNum} * 80%"
setCellValue(fee.times(0.8))
cellStyle.dataFormat = accountingStyle
}



正在加载...
取消
保存