adjust sorting pembelian dan expenses

This commit is contained in:
giovanni
2026-05-13 15:34:24 +07:00
parent 490c7fc9fd
commit 04626560eb
4 changed files with 7 additions and 3 deletions
@@ -81,6 +81,6 @@ type Query struct {
Search string `query:"search" validate:"omitempty,max=100"`
CreatedFrom string `query:"created_from" validate:"omitempty,datetime=2006-01-02"`
CreatedTo string `query:"created_to" validate:"omitempty,datetime=2006-01-02"`
SortBy string `query:"sort_by" validate:"omitempty,oneof=po_expedition supplier requester_name products location po_date received_date due_date status created_at"`
SortBy string `query:"sort_by" validate:"omitempty,oneof=po_expedition supplier requester_name products location po_date received_date due_date status created_at po_number"`
SortOrder string `query:"sort_order" validate:"omitempty,oneof=asc desc ASC DESC"`
}