Procházet zdrojové kódy

update budget calculation

tags/Baseline_30082024_BACKEND_UAT
MSI\2Fi před 1 rokem
rodič
revize
53636dd44b
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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 Zobrazit soubor

@@ -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
}



Načítá se…
Zrušit
Uložit