Исправление может обойтись ценою в жизнь...
This commit is contained in:
parent
0ff31eeb2a
commit
1425accad0
@ -77,6 +77,11 @@ namespace FurnitureAssemblyBusinessLogic
|
|||||||
if (model == null) {
|
if (model == 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;
|
||||||
|
}
|
||||||
if (!ChangeStatus(model, OrderStatus.Готов))
|
if (!ChangeStatus(model, OrderStatus.Готов))
|
||||||
{
|
{
|
||||||
_logger.LogWarning("Order's status is wrong");
|
_logger.LogWarning("Order's status is wrong");
|
||||||
@ -94,12 +99,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;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!ChangeStatus(model, OrderStatus.Выдан))
|
if (!ChangeStatus(model, OrderStatus.Выдан))
|
||||||
{
|
{
|
||||||
_logger.LogWarning("Order's status is wrong");
|
_logger.LogWarning("Order's status is wrong");
|
||||||
|
Loading…
Reference in New Issue
Block a user