Лаб_2сложн
This commit is contained in:
parent
14c5a5991c
commit
85dc0d0ddd
@ -64,13 +64,13 @@ namespace RenovationWorkBusinessLogic.BusinessLogics
|
|||||||
}
|
}
|
||||||
if (element.Status == OrderStatus.Готов)
|
if (element.Status == OrderStatus.Готов)
|
||||||
{
|
{
|
||||||
var manufacture = _repairStorage.GetElement(new RepairSearchModel() { Id = model.RepairId });
|
var repair = _repairStorage.GetElement(new RepairSearchModel() { Id = model.RepairId });
|
||||||
if (manufacture == null)
|
if (repair == null)
|
||||||
{
|
{
|
||||||
_logger.LogWarning("Status update to " + status.ToString() + " operation failed. Document not found.");
|
_logger.LogWarning("Status update to " + status.ToString() + " operation failed. Document not found.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (CheckSupply(manufacture, model.Count) == false)
|
if (CheckSupply(repair, model.Count) == false)
|
||||||
{
|
{
|
||||||
_logger.LogWarning("Status update to " + status.ToString() + " operation failed. Shop supply error.");
|
_logger.LogWarning("Status update to " + status.ToString() + " operation failed. Shop supply error.");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user