|
@@ -468,7 +468,7 @@ public class OrderController : BaseController
|
|
|
var orderVisit = await _orderVisitRepository.Queryable()
|
|
|
.Includes(x => x.Order)
|
|
|
.Includes(x => x.Employee)
|
|
|
- .Includes(x => x.OrderVisitDetails)
|
|
|
+ .Includes(x => x.OrderVisitDetails.OrderBy(d=>d.VisitTarget).ToList())
|
|
|
.FirstAsync(x => x.Id == id, HttpContext.RequestAborted);
|
|
|
|
|
|
if (orderVisit is null)
|