diff --git a/src/main/java/com/ffii/tsms/modules/project/service/InvoiceService.kt b/src/main/java/com/ffii/tsms/modules/project/service/InvoiceService.kt index c2c60c8..f69a6e5 100644 --- a/src/main/java/com/ffii/tsms/modules/project/service/InvoiceService.kt +++ b/src/main/java/com/ffii/tsms/modules/project/service/InvoiceService.kt @@ -228,9 +228,12 @@ open class InvoiceService( * @return true when cellValue Object exist in DB */ fun checkStringExists(list: List>, cellValue: Map): 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,