M133 Declareren van geld in lade
In Drawer 1 wordt 1000 Eur Cash gedeclareerd om mee te werken.
C#
//Create the correct action according to the example
var newMoneyTransferAction = new PosMoneyTransferAction(
FpsFinancesModels.Company,
_myFpsPos,
FpsFinancesModels.TerminalTer1Bar,
FpsFinancesModels.EmployeeJohn)
{
SalesActionNumber = 1009,
BookingDate = DateTime.Now,
BookingPeriodId = Guid.Parse("dffcd829-a0e5-41ca-a0ae-9eb887f95637"),
MoneyTransfers =
[
new MoneyTransfer
{
Id = "1",
Name = "CONTANT",
Type = PaymentType.CASH,
Amount = 1000,
InputMethod = InputMethod.MANUAL,
AmountType = MoneyInOutLineType.DRAWER_DECLARATION,
CashDrawer = FpsFinancesModels.CashDrawer1
}
]
};
//Sign the action
var result = await checkboxService.SignPosAction(newMoneyTransferAction, false, null, cancellationToken);
//Handle the result accordingly
Console.WriteLine($"Result with Signature {result.SignResult?.DigitalSignature}");