filter by po qty and price

This commit is contained in:
gowthaman
2024-05-27 15:30:24 +05:30
parent f576d33ec9
commit 7d3af46a22
2 changed files with 4 additions and 8 deletions

View File

@@ -25,10 +25,10 @@ object PurchaseOrderCtrl {
ctx.json(po).status(HttpStatus.OK)
}
data class PF(val common: CommonFilters, val poFilters: POFilters)
data class PoFilterQuery(val common: CommonFilters, val poFilters: POFilters)
fun getAll(ctx: Context) {
val filters = ctx.bodyAsClass<PF>()
val filters = ctx.bodyAsClass<PoFilterQuery>()
val pos = searchPos(filters.common, filters.poFilters)
val excel = ctx.queryParam("excel")
if (excel != null) {