updates on the reverse logistics
This commit is contained in:
@@ -243,6 +243,14 @@ func nextActionForConsignment(status string) string {
|
||||
return constants.NextActionDeliver
|
||||
case constants.ConsignmentInwardedAtHub:
|
||||
return constants.NextActionHandedToHub
|
||||
case constants.ConsignmentRTOInitiated:
|
||||
// Being returned: the rider carries it back to the sender — once the
|
||||
// rider app knows this action. Until then it reads as "nothing left
|
||||
// for you" and ops close the return from the console.
|
||||
if rtoRiderFlowEnabled() {
|
||||
return constants.NextActionReturnToSender
|
||||
}
|
||||
return constants.NextActionNone
|
||||
default:
|
||||
// Tripsheet_Loaded, In_Transit, Delivered, RTO, Returned, Missing,
|
||||
// Damaged — all past this rider's leg.
|
||||
|
||||
Reference in New Issue
Block a user