Add job order number to notifications. Add cancel reason to notifications if JO is cancelled. #484
This commit is contained in:
parent
5185043934
commit
171fa14e40
1 changed files with 2 additions and 2 deletions
|
|
@ -1086,7 +1086,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
|||
|
||||
// notification
|
||||
$notif_url = $this->router->generate('jo_onestep_edit_form', ['id' => $jo->getID()]);
|
||||
$this->nm->sendNotification(0, 'Job order has been cancelled by rider.', $notif_url);
|
||||
$this->nm->sendNotification(0, 'Job order #' . $jo->getID() . ' has been cancelled by rider. Reason: ' . $jo->getCancelReason() . '.', $notif_url);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
@ -1174,7 +1174,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
|||
$this->mclient->publish($channel, $rider_status);
|
||||
|
||||
$notif_url = $this->router->generate('jo_onestep_edit_form', ['id' => $jo->getID()]);
|
||||
$this->nm->sendNotification(0, 'Job order has been rejected by rider.', $notif_url);
|
||||
$this->nm->sendNotification(0, 'Job order #' . $jo->getID() . ' has been rejected by rider.', $notif_url);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue