From 19f1813844c665143f64902e9259d4d8404a0cfe Mon Sep 17 00:00:00 2001 From: "MSI\\2Fi" Date: Mon, 13 May 2024 14:30:59 +0800 Subject: [PATCH] update Inovice --- .../ffii/tsms/modules/project/service/InvoiceService.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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,