|
@@ -228,9 +228,12 @@ open class InvoiceService( |
|
|
* @return true when cellValue Object exist in DB |
|
|
* @return true when cellValue Object exist in DB |
|
|
*/ |
|
|
*/ |
|
|
fun checkStringExists(list: List<Map<String, Any>>, cellValue: Map<String, Any>): Boolean { |
|
|
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( |
|
|
open fun checkMilestonePayment( |
|
|
sheet: Sheet, |
|
|
sheet: Sheet, |
|
|