M122 Bestelling verplaatsen
De bestelling op Tafel 1 (aan de Bar) moet worden verplaatst naar Tafel 5 (in de Dining Room).
De te verplaatsen artikelen zijn
- 1 Burger of the Chef
- 1 Dry Martini
C#
//Create the correct action according to the example
var newOrderTransferAction = new PosOrderTransferAction(
FpsFinancesModels.Company,
_myFpsPos,
FpsFinancesModels.TerminalTer1Bar,
FpsFinancesModels.EmployeeJohn)
{
SalesActionNumber = 1004,
BookingDate = DateTime.Now,
BookingPeriodId = Guid.Parse("dffcd829-a0e5-41ca-a0ae-9eb887f95637"),
From =
[
new TransactionOnCostcenter
{
Costcenter = new CostcenterAssignment { Costcenter = FpsFinancesModels.CostcenterT1 },
TransactionLines =
[
new TransferLine(TransactionLineType.SINGLE_PRODUCT, 1, FpsFinancesModels.ProdBurgerOfTheChef),
new TransferLine(TransactionLineType.SINGLE_PRODUCT, 1, FpsFinancesModels.ProdDryMartini)
]
}
],
To =
[
new TransactionOnCostcenter
{
Costcenter = new CostcenterAssignment { Costcenter = FpsFinancesModels.CostcenterT5 },
TransactionLines =
[
new SaleLine(TransactionLineType.SINGLE_PRODUCT, 1, FpsFinancesModels.ProdBurgerOfTheChef),
new SaleLine(TransactionLineType.SINGLE_PRODUCT, 1, FpsFinancesModels.ProdDryMartini)
]
}
]
};
//Sign the action
var result = await checkboxService.SignPosAction(newOrderTransferAction, false, null, cancellationToken);
//Handle the result accordingly
Console.WriteLine($"Result with Signature {result.SignResult?.DigitalSignature}");