feat: implement new order methods, transport enums, and conveyor telegram overrides
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
public void UpdateResources(TransportOrderStatus resourceListStatus, List<ResourceList> occupiedBySameLeButDifferentOrder)
|
||||
{
|
||||
//If a OrdersHost is Finished or Cancelled all ResourceList for this OH are affected, for other status only entries with same Destination
|
||||
Resources
|
||||
.Where(r => !TransportOrderStatusGroups.Complete.Contains(r.Status) && (r.Name == Destination || resourceListStatus == TransportOrderStatus.Finished || resourceListStatus == TransportOrderStatus.Cancelled))
|
||||
.ToList()
|
||||
.ForEach(r => r.Status = resourceListStatus);
|
||||
occupiedBySameLeButDifferentOrder?.ForEach(r => r.Status = TransportOrderStatus.Cancelled);
|
||||
}
|
||||
Reference in New Issue
Block a user