Add weight field to GetHubInboundToday response
Frontend inbound page needs it; every other field was already there.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user