ISEbd-22 Mavrina J.E. Hard_Labwork 2 #10
@ -64,13 +64,13 @@ namespace RenovationWorkBusinessLogic.BusinessLogics
|
||||
}
|
||||
if (element.Status == OrderStatus.Готов)
|
||||
{
|
||||
var manufacture = _repairStorage.GetElement(new RepairSearchModel() { Id = model.RepairId });
|
||||
if (manufacture == null)
|
||||
var repair = _repairStorage.GetElement(new RepairSearchModel() { Id = model.RepairId });
|
||||
if (repair == null)
|
||||
{
|
||||
_logger.LogWarning("Status update to " + status.ToString() + " operation failed. Document not found.");
|
||||
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.");
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user