Working with the fiscal register from API V8Preview6

Tags: v8preview6 v8

In API V8Preview6, methods have been added for direct interaction with the FR.

Opening a cash register session on the FR OpenCashRegisterSession Supported only if the license includes module 21052601. For correct operation, the device must be running and the session on the device must be closed. To perform the operation, the user must have the permission CAN_EXECUTE_FISCAL_REGISTER_COMMANDS.

Closing a cash register session on the FR (printing Z report) DoZReport Supported only if the license includes module 21052601. For correct operation, the device must be running and the session on the device must be closed. To perform the operation, the user must have the permission CAN_EXECUTE_FISCAL_REGISTER_COMMANDS. If the parameter [printCashRegisterTape] is set, the daily journal will be printed along with the Z report.

Opening the cash drawer CashRegisterOpenDrawer To perform the operation, the user must have the permission CAN_EXECUTE_FISCAL_REGISTER_COMMANDS. In this version, only the opening of the cash drawer connected to the FR is supported; working with an external cash drawer is not supported.

Getting the current status of the FR GetCashRegisterStatus To perform the operation, the user must have the permission CAN_EXECUTE_FISCAL_REGISTER_COMMANDS. The method takes a list of CashRegisterStatusField and fills the properties of the returned object CashRegisterStatus corresponding to those passed in the list. When an empty list is passed, the default object CashRegisterStatus is returned.

Returns additional supported operations GetQueryInfo Returns additional supported operations QueryInfoResult.SupportedCommands that can be called using the method CashRegisterDirectIO.

Performing an additional operation CashRegisterDirectIO To perform the operation, the user must have the permission CAN_EXECUTE_FISCAL_REGISTER_COMMANDS. Allows executing an additional operation; you need to pass the name of the additional operation in the parameter CommandExecute and the parameter values Parameters. This method is used to perform operations specific to a particular model of FR that do not correspond to any method of the general interface ICashRegister.

Starting the FR CashRegisterStart

Stopping the FR CashRegisterStop Devices are started when SyrveFront starts and stopped when SyrveFront shuts down (if auto-start is enabled in the device settings). The start and stop commands for the FR are needed to stop the device and free the COM port or another port occupied by the device, and then restart the device without restarting SyrveFront.

Checking the marking code CheckFfd12Marking To perform the operation, the user must have the permission CAN_EXECUTE_FISCAL_REGISTER_COMMANDS. Checks the marking code in FFD 1.2 format for the receipt item ChequeSale. The parameter must have a non-empty property Ffd12.