updates on the reverse logistics

This commit is contained in:
2026-10-06 11:05:03 +05:30
parent cb3108ffdb
commit 220e934045
10 changed files with 1541 additions and 8 deletions

View File

@@ -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.