API V8Preview6 cash register operating
[ ]Methods for working directly with cash register have been added to the V8Preview6 API
Opening a cash register session at cash register
OpenCashRegisterSession
Supported only if module 21052601 is included in the license. For correct operation, the device must be running and the shift on the device must be closed.
To perform the operation, the user must have the CAN_EXECUTE_FISCAL_REGISTER_COMMANDS permission.
Closing a cash register session (printing a Z report)
DoZReport
Supported only if module 21052601 is included in the license. For correct operation, the device must be running and the shift on the device must be closed.
To perform the operation, the user must have the CAN_EXECUTE_FISCAL_REGISTER_COMMANDS permission.
If the parameter [printCashRegisterTape] the daily log will be printed along with the Z report.
Opening a cash drawer
CashRegisterOpenDrawer
To perform the operation, the user must have the CAN_EXECUTE_FISCAL_REGISTER_COMMANDS permission.
This version only supports opening a cash drawer connected to the cash register; working with an external cash drawer is not supported.
Receiving the current status of the cash register
GetCashRegisterStatus
To perform the operation, the user must have the CAN_EXECUTE_FISCAL_REGISTER_COMMANDS permission.
The method accepts a list CashRegisterStatusField
and fills the properties of the returned object CashRegisterStatus corresponding to those passed in the list.
When passing an empty list, the default object CashRegisterStatus is returned.
Returns additional supported operations
GetQueryInfo
Returns additional supported operations QueryInfoResult.SupportedCommands
that can be called by the method CashRegisterDirectIO
Performing an additional operation
CashRegisterDirectIO
To perform the operation, the user must have the CAN_EXECUTE_FISCAL_REGISTER_COMMANDS permission.
Allows you to perform an additional operation, you need to pass it in the parameter CommandExecute
the name of the additional operation Name and parameter values Parameters
This method is used to perform operations specific to a particular cash register model that do not correspond to any method of the general interfaceICashRegister
Cash register start
CashRegisterStart
Cash register stop
CashRegisterStop
Devices start when SyrvePOS starts and stop when SyrvePOS shuts down (if autostart is enabled in the device settings).
The cash register start and stop commands are needed so that you can stop the device and free up a COM port or other port that the device occupies and then start the device
without restarting SyrvePOS.
Checking the marking code
CheckFfd12Marking
To perform the operation, the user must have the CAN_EXECUTE_FISCAL_REGISTER_COMMANDS permission.
Checks the marking code in FFD format 1.2 of the check item ChequeSale
The parameter must have a non-empty property Ffd12