updates on the admincontroler page
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user