Add weight field to GetHubInboundToday response

Frontend inbound page needs it; every other field was already there.
This commit is contained in:
2026-07-07 16:42:40 +05:30
parent 808ac953a1
commit a30713c633

View File

@@ -302,6 +302,7 @@ func GetHubInboundToday(c *fiber.Ctx) error {
// destinationname: consignments store no free-text delivery // destinationname: consignments store no free-text delivery
// address, only deliverypincode — used as the best available label. // address, only deliverypincode — used as the best available label.
"destinationname": cs.Deliverypincode, "destinationname": cs.Deliverypincode,
"weight": fmt.Sprintf("%.1f kg", cs.Chargeableweight),
"condition": cs.Condition, "condition": cs.Condition,
"shelf": cs.Shelf, "shelf": cs.Shelf,
// temperature: no column exists anywhere yet for this. // temperature: no column exists anywhere yet for this.