Clear cargo orders on approval (#24278)

This commit is contained in:
metalgearsloth
2024-01-19 20:32:33 +11:00
committed by GitHub
parent caed22bebe
commit f82fd23f2c

View File

@@ -216,6 +216,7 @@ namespace Content.Server.Cargo.Systems
_adminLogger.Add(LogType.Action, LogImpact.Low, _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}"); $"{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); DeductFunds(bank, cost);
UpdateOrders(station.Value, orderDatabase); UpdateOrders(station.Value, orderDatabase);
} }