From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 19 Jan 2024 09:32:33 +0000 (+1100) Subject: Clear cargo orders on approval (#24278) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=f82fd23f2c87b7cab852bdc2563cfa30c2d2a6dd;p=space-station-14.git Clear cargo orders on approval (#24278) --- diff --git a/Content.Server/Cargo/Systems/CargoSystem.Orders.cs b/Content.Server/Cargo/Systems/CargoSystem.Orders.cs index c0d598a5d0..9a547bb578 100644 --- a/Content.Server/Cargo/Systems/CargoSystem.Orders.cs +++ b/Content.Server/Cargo/Systems/CargoSystem.Orders.cs @@ -216,6 +216,7 @@ namespace Content.Server.Cargo.Systems _adminLogger.Add(LogType.Action, LogImpact.Low, $"{ToPrettyString(player):user} approved order [orderId:{order.OrderId}, quantity:{order.OrderQuantity}, product:{order.ProductId}, requester:{order.Requester}, reason:{order.Reason}] with balance at {bank.Balance}"); + orderDatabase.Orders.Remove(order); DeductFunds(bank, cost); UpdateOrders(station.Value, orderDatabase); }