Лаб_2сложн

This commit is contained in:
yuliya.mavrina@internet.ru 2024-04-23 15:52:38 +03:00
parent 14c5a5991c
commit 85dc0d0ddd

View File

@ -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;