fix filter purchase query param and search

This commit is contained in:
ragilap
2026-04-01 15:58:00 +07:00
parent 325825a709
commit 65409e5efa
3 changed files with 176 additions and 4 deletions
@@ -68,6 +68,10 @@ type Query struct {
LocationID uint `query:"location_id" validate:"omitempty,gt=0"`
ProductCategoryID uint `query:"product_category_id" validate:"omitempty,gt=0"`
Search string `query:"search" validate:"omitempty,max=100"`
ApprovalStatus string `query:"approval_status" validate:"omitempty,max=100"`
PoDate string `query:"po_date" validate:"omitempty,datetime=2006-01-02"`
PoDateFrom string `query:"po_date_from" validate:"omitempty,datetime=2006-01-02"`
PoDateTo string `query:"po_date_to" validate:"omitempty,datetime=2006-01-02"`
CreatedFrom string `query:"created_from" validate:"omitempty,datetime=2006-01-02"`
CreatedTo string `query:"created_to" validate:"omitempty,datetime=2006-01-02"`
}