M172 Training Copy verkoop afdrukken
De werknemer in opleiding wenst een kopie af te printen van het verkoopsticket N 35/73
C#
//Create the correct action according to the example
var newCopyAction = new PosCopyAction(
FpsFinancesModels.Company,
_myFpsPos,
FpsFinancesModels.TerminalTer1Bar,
FpsFinancesModels.EmployeeJohn)
{
SalesActionNumber = 1017,
BookingDate = DateTime.Now,
BookingPeriodId = Guid.Parse("dffcd829-a0e5-41ca-a0ae-9eb887f95637"),
TicketMedium = TicketMedium.NONE,
Reference = new CheckboxSignReference
{
Checkbox = FpsFinancesModels.Checkbox02,
DateTime = new DateTime(2024, 7, 3, 16, 40, 39),
Eventlabel = EventLabel.N,
EventCounter = 35,
TotalCounter = 73
}
};
//Sign the action
var result = await checkboxService.SignPosAction(newCopyAction, true, null, cancellationToken);
//Handle the result accordingly
Console.WriteLine($"Result with Signature {result.SignResult?.DigitalSignature}");