updates on the admincontroler page

This commit is contained in:
2026-09-10 15:55:40 +05:30
parent 86ae2ab41e
commit 17bd316e4d
4 changed files with 196 additions and 1 deletions

View File

@@ -82,6 +82,13 @@ type cxCreateBookingRequest struct {
Min int `json:"min"`
Max int `json:"max"`
} `json:"estimate"`
// Remarks is the free-text note the customer adds on Review ("Handle with
// care"). It is top-level in the documented payload
// (docs/customer-app-api-crisp.md) and lands in PickupBooking.Notes, which
// the admin Orders table displays and searches. Without the field here
// BodyParser drops it silently and every customer-app booking reaches the
// console with an empty note.
Remarks string `json:"remarks"`
}
// CreateCxBooking creates the pickup.
@@ -270,6 +277,8 @@ func CreateCxBooking(c *fiber.Ctx) error {
Estimatemaxrupees: estimateMax,
Routekm: quote.RouteKM,
Notes: req.Remarks,
Createdat: now,
Updatedat: now,
}