initial stock configuration

This commit is contained in:
gowthaman 2024-06-15 17:54:59 +05:30
parent 9aafe5a95c
commit 954c9088e3

View File

@ -172,8 +172,9 @@ object Entities {
where entity_name = :e
and created_at between :from and :to
and data @> cast(:search as jsonb)
and deleted = false
$createdFilter
order by sysPk
order by sysPk desc
""".trimIndent()
).create()
)
@ -205,7 +206,7 @@ object Entities {
.eq("entityName", entity.lowercase())
.setFirstRow((pageNo - 1) * perPage)
.setMaxRows(perPage)
.orderBy("sysPk")
.orderBy("sysPk desc")
.findPagedList()
ctx.json(cnt)