|
@@ -3096,7 +3096,7 @@ open class ReportService( |
|
|
val budget = (item["budget"] as? Double)?.times(0.8) ?: 0.0 |
|
|
val budget = (item["budget"] as? Double)?.times(0.8) ?: 0.0 |
|
|
val totalCumulativeExpenditure = (item["totalCumulativeExpenditure"] as? BigDecimal ?: 0.0).toDouble() |
|
|
val totalCumulativeExpenditure = (item["totalCumulativeExpenditure"] as? BigDecimal ?: 0.0).toDouble() |
|
|
val budgetRemain = budget.minus(totalCumulativeExpenditure) |
|
|
val budgetRemain = budget.minus(totalCumulativeExpenditure) |
|
|
// val remainingPercent = (budgetRemain).div(budget) |
|
|
|
|
|
|
|
|
val remainingPercent = (budgetRemain).div(budget) |
|
|
// println("-----------------------------------${item["code"]}-------------------------------") |
|
|
// println("-----------------------------------${item["code"]}-------------------------------") |
|
|
// println("budget: $budget") |
|
|
// println("budget: $budget") |
|
|
// println("totalCumulativeExpenditure: $totalCumulativeExpenditure") |
|
|
// println("totalCumulativeExpenditure: $totalCumulativeExpenditure") |
|
|