Make departmental orders consoles print slips (#36944)
* Make departmental orders consoles print slips * feed back cycle
This commit is contained in:
committed by
GitHub
parent
f73f6d4467
commit
cfba56c2b4
@@ -1,3 +1,5 @@
|
||||
using Content.Shared.Cargo.Prototypes;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization;
|
||||
using System.Text;
|
||||
namespace Content.Shared.Cargo
|
||||
@@ -52,7 +54,13 @@ namespace Content.Shared.Cargo
|
||||
[DataField]
|
||||
public string? Approver;
|
||||
|
||||
public CargoOrderData(int orderId, string productId, string productName, int price, int amount, string requester, string reason)
|
||||
/// <summary>
|
||||
/// Which account to deduct funds from when ordering
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public ProtoId<CargoAccountPrototype> Account;
|
||||
|
||||
public CargoOrderData(int orderId, string productId, string productName, int price, int amount, string requester, string reason, ProtoId<CargoAccountPrototype> account)
|
||||
{
|
||||
OrderId = orderId;
|
||||
ProductId = productId;
|
||||
@@ -61,6 +69,7 @@ namespace Content.Shared.Cargo
|
||||
OrderQuantity = amount;
|
||||
Requester = requester;
|
||||
Reason = reason;
|
||||
Account = account;
|
||||
}
|
||||
|
||||
public void SetApproverData(string? approver)
|
||||
|
||||
Reference in New Issue
Block a user