Все работает, осталась сдача

This commit is contained in:
DyCTaTOR 2024-05-04 21:37:24 +04:00
parent ea538ac02c
commit 82bf46bd2d

View File

@ -79,12 +79,11 @@ namespace PlumbingRepairBusinessLogic.BusinessLogics
{
throw new ArgumentNullException(nameof(model));
}
if (model.Status + 1 != newStatus)
if (viewModel.Status + 1 != newStatus)
{
_logger.LogWarning("Status update to " + newStatus.ToString() + " operation failed. Order status incorrect.");
return false;
}
model.Status = newStatus;
model.DateCreate = viewModel.DateCreate;
model.Sum = viewModel.Sum;