Minor changes to display of cargo order manifests (#12618)
Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user