Browse Source

update Inovice

tags/Baseline_30082024_BACKEND_UAT
MSI\2Fi 1 year ago
parent
commit
19f1813844
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      src/main/java/com/ffii/tsms/modules/project/service/InvoiceService.kt

+ 6
- 3
src/main/java/com/ffii/tsms/modules/project/service/InvoiceService.kt View File

@@ -228,9 +228,12 @@ open class InvoiceService(
* @return true when cellValue Object exist in DB
*/
fun checkStringExists(list: List<Map<String, Any>>, cellValue: Map<String, Any>): Boolean {
println("LIST-------------: $list")
println("CELL VALUE-------------: $cellValue")
return list.contains(cellValue)
// println("LIST-------------: $list")
// println("CELL VALUE-------------: $cellValue")
// println(list.contains(cellValue))
// println(list.any { it["code"] == cellValue["code"] && it["description"] == cellValue["description"] })
// return list.contains(cellValue)
return list.any { it["code"] == cellValue["code"] && it["description"] == cellValue["description"] }
}
open fun checkMilestonePayment(
sheet: Sheet,


Loading…
Cancel
Save