From a30713c6337476851dc05815b811ff1f5c364cb6 Mon Sep 17 00:00:00 2001 From: Suriya Date: Tue, 7 Jul 2026 16:42:40 +0530 Subject: [PATCH] Add weight field to GetHubInboundToday response Frontend inbound page needs it; every other field was already there. --- controllers/hubController.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/hubController.go b/controllers/hubController.go index a795a07..0069eb3 100644 --- a/controllers/hubController.go +++ b/controllers/hubController.go @@ -302,6 +302,7 @@ func GetHubInboundToday(c *fiber.Ctx) error { // destinationname: consignments store no free-text delivery // address, only deliverypincode — used as the best available label. "destinationname": cs.Deliverypincode, + "weight": fmt.Sprintf("%.1f kg", cs.Chargeableweight), "condition": cs.Condition, "shelf": cs.Shelf, // temperature: no column exists anywhere yet for this.