store wise orders change

This commit is contained in:
Suriya
2026-07-21 09:25:30 +05:30
parent 36f9cf86e7
commit b7af245910
6 changed files with 114 additions and 20 deletions

View File

@@ -209,6 +209,14 @@ func (ctl *DeliveriesController) GetDeliveries(c *fiber.Ctx) error {
stat := c.Query("status")
keyword := c.Query("keyword")
if pid == 0 && tid == 0 && uid == 0 && cid == 0 && aid == 0 && aud == 0 {
return c.Status(http.StatusBadRequest).JSON(fiber.Map{
"code": http.StatusBadRequest,
"message": "At least one of tenantid, partnerid, customerid, applocationid, userid or appuserid is required",
"status": false,
})
}
info := models.DeliveryQuery{
Partnerid: pid,
Tenantid: tid,