M123 Pre Bill (proforma) ticket afprinten
Er wordt een Pre Bill afgeprint van Tafel 1 in de bar. Het order bedraagt
- 2 Dry Martini
- 4 Tapas Variation
C#
//Create the correct action according to the example
var newPreBillAction = new PosPreBillAction(
FpsFinancesModels.Company,
_myFpsPos,
FpsFinancesModels.TerminalTer1Bar,
FpsFinancesModels.EmployeeJohn)
{
SalesActionNumber = 1005,
BookingDate = DateTime.Now,
BookingPeriodId = Guid.Parse("dffcd829-a0e5-41ca-a0ae-9eb887f95637"),
TransactionLines =
[
new SaleLine(TransactionLineType.SINGLE_PRODUCT, 2, FpsFinancesModels.ProdDryMartini),
new SaleLine(TransactionLineType.SINGLE_PRODUCT, 4, FpsFinancesModels.ProdTapasVariation)
],
Costcenter = new CostcenterAssignment
{
Costcenter = FpsFinancesModels.CostcenterT1
}
};
//Sign the action
var result = await checkboxService.SignPosAction(newPreBillAction, false, null, cancellationToken);
//Handle the result accordingly
Console.WriteLine($"Result with Signature {result.SignResult?.DigitalSignature}");