last fix
This commit is contained in:
parent
0851de65f5
commit
6c5c4607cf
@ -80,7 +80,7 @@ namespace SushiBarBusinessLogic.BusinessLogics
|
||||
}
|
||||
model.Status = status;
|
||||
model.DateImplement = order?.DateImplement;
|
||||
if (model.Status == OrderStatus.Issued)
|
||||
if (model.Status == OrderStatus.Ready)
|
||||
{
|
||||
model.DateImplement = DateTime.Now;
|
||||
}
|
||||
@ -104,7 +104,8 @@ namespace SushiBarBusinessLogic.BusinessLogics
|
||||
return;
|
||||
}
|
||||
_logger.LogInformation("Order. OrderId:{Id} .Count:{Count} .Sum:{Sum} .Status{Status} .DateCreate{DateCreate}", model.Id, model.Count, model.Sum, model.Status.ToString(), model.DateCreate.ToString());
|
||||
var element = _orderStorage.GetElement(new OrderSearchModel {
|
||||
var element = _orderStorage.GetElement(new OrderSearchModel
|
||||
{
|
||||
Id = model.Id
|
||||
});
|
||||
if (element != null && element.Id != model.Id)
|
||||
@ -113,4 +114,4 @@ namespace SushiBarBusinessLogic.BusinessLogics
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user