feat[BE]: add MarketingType filter to marketing reports and update related validations

This commit is contained in:
aguhh18
2026-01-13 16:10:27 +07:00
parent 3c10866208
commit 1b5b5bc847
4 changed files with 43 additions and 9 deletions
@@ -82,6 +82,7 @@ func (c *RepportController) GetMarketing(ctx *fiber.Ctx) error {
ProductId: int64(ctx.QueryInt("product_id", 0)),
WarehouseId: int64(ctx.QueryInt("warehouse_id", 0)),
SalesPersonId: int64(ctx.QueryInt("sales_person_id", 0)),
MarketingType: ctx.Query("marketing_type", ""),
FilterBy: ctx.Query("filter_by", ""),
StartDate: ctx.Query("start_date", ""),
EndDate: ctx.Query("end_date", ""),