TakeOrderInWork fix
This commit is contained in:
parent
49059764f0
commit
b2bfe09ae5
2
AutoWorkshop/MainForm.Designer.cs
generated
2
AutoWorkshop/MainForm.Designer.cs
generated
@ -71,7 +71,7 @@
|
||||
//
|
||||
RepairStripMenuItem.Name = "RepairStripMenuItem";
|
||||
RepairStripMenuItem.Size = new Size(180, 22);
|
||||
RepairStripMenuItem.Text = "Мороженное";
|
||||
RepairStripMenuItem.Text = "Ремонты";
|
||||
RepairStripMenuItem.Click += МороженноеStripMenuItem_Click;
|
||||
//
|
||||
// DataGridView
|
||||
|
@ -60,11 +60,7 @@ namespace AutoWorkshopBusinessLogic.BusinessLogics
|
||||
if (Element is null)
|
||||
throw new InvalidOperationException("Заказ с таким идентификатором не существует");
|
||||
|
||||
if (Element.Status != OrderStatus.Accepted)
|
||||
{
|
||||
_logger.LogWarning("TakeOrderInWork. Invalid status");
|
||||
return false;
|
||||
}
|
||||
Element.Status = OrderStatus.Accepted;
|
||||
|
||||
if (_orderStorage.Update(Model) is null)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user