M130 Geld in de lade

M130 Geld in de lade

De kassalade Drawer 1 wordt geopend en er wordt 100 Eur in geplaatst.

C#
        
        //Create the correct action according to the example
        var newMoneyTransferAction = new PosMoneyTransferAction(
            FpsFinancesModels.Company,
            _myFpsPos,
            FpsFinancesModels.TerminalTer1Bar,
            FpsFinancesModels.EmployeeJohn)
        {
            SalesActionNumber = 1006,
            BookingDate = DateTime.Now,
            BookingPeriodId = Guid.Parse("dffcd829-a0e5-41ca-a0ae-9eb887f95637"),
            MoneyTransfers =
            [
                new MoneyTransfer
                {
                    Id = "1",
                    Name = "CASH",
                    Type = PaymentType.CASH,
                    Amount = 100,
                    InputMethod = InputMethod.MANUAL,
                    AmountType = MoneyInOutLineType.MONEY_IN_OUT,
                    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}");