То исправление ценою в жизнь.....
This commit is contained in:
commit
ad57580040
@ -78,6 +78,11 @@ namespace FurnitureAssemblyBusinessLogic
|
|||||||
if (modelNew == null) {
|
if (modelNew == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!_shopLogic.AddFurnituresAtShops(new FurnitureBindingModel() { Id = model.FurnitureId }, model.Count))
|
||||||
|
{
|
||||||
|
_logger.LogWarning("There are not empty places at shops. Replenishment is impossible");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
model.Status = modelNew.Status;
|
model.Status = modelNew.Status;
|
||||||
model.ImplementerId = modelNew.ImplementerId;
|
model.ImplementerId = modelNew.ImplementerId;
|
||||||
if (!ChangeStatus(model, OrderStatus.Готов))
|
if (!ChangeStatus(model, OrderStatus.Готов))
|
||||||
@ -98,11 +103,6 @@ namespace FurnitureAssemblyBusinessLogic
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_shopLogic.AddFurnituresAtShops(new FurnitureBindingModel() { Id = model.FurnitureId}, model.Count))
|
|
||||||
{
|
|
||||||
_logger.LogWarning("There are not empty places at shops. Replenishment is impossible");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
model.Status = modelNew.Status;
|
model.Status = modelNew.Status;
|
||||||
model.ImplementerId = modelNew.ImplementerId;
|
model.ImplementerId = modelNew.ImplementerId;
|
||||||
|
Loading…
Reference in New Issue
Block a user