Minor changes to display of cargo order manifests (#12618)

Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
This commit is contained in:
eoineoineoin
2023-01-15 01:49:00 +00:00
committed by GitHub
parent 5990393e31
commit cd10d6fb5e
8 changed files with 29 additions and 28 deletions

View File

@@ -6,7 +6,9 @@ namespace Content.Shared.Cargo
[NetSerializable, Serializable]
public sealed class CargoOrderData
{
public int OrderNumber;
public int OrderIndex;
/// The human-readable number, when displaying this order
public int PrintableOrderNumber { get { return OrderIndex + 1; } }
public string ProductId;
public int Amount;
public string Requester;
@@ -16,9 +18,9 @@ namespace Content.Shared.Cargo
public bool Approved => Approver is not null;
public string? Approver;
public CargoOrderData(int orderNumber, string productId, int amount, string requester, string reason)
public CargoOrderData(int orderIndex, string productId, int amount, string requester, string reason)
{
OrderNumber = orderNumber;
OrderIndex = orderIndex;
ProductId = productId;
Amount = amount;
Requester = requester;