Blank operation service

This service is not implemented by the LS One product team

 

The purpose of this service is to give the partner the option to create more operations that can be called from a button on the POS layout where the partner can have complete control over the functionality. Any functionality that can be developed in C# can be done in these blank operations.

Another option when creating new operations to put on a button is to create a POS Plugin. The difference between the two options is that one POS plugin can be created per operations but all blank operations will need to, at least, go through the same blank operations dll.

For maintainability it is better to use the POS Plugins rather than the Blank operations as each operation is contained within one dll and can therefore be fixed separately without affecting other operations.

Configurations

These operations can be configured in the Site Manager as operations so that they can be selected when creating the POS layout or the parameters can be typed directly into the parameter fields on the buttons (see more information here).

Main functionality

There is only one function in the service which is also called BlankOperation and the function takes two parameters; OperationInfo and IPosTransaction

Name Description
OperationInfo The operation info gives the developer information about what is going on in the POS when the operation was started. For example which item line was selected in the receipt, which tender line was receipt, did the user type something into the numpad control on the POS before clicking the operation.
IPosTransaction The current transaction in the POS.

Note!!! If the first button the user clicks is a button with a Blank operation on it then the POS does not know what type of transaction it has to create so any implementation needs to check if the transaction is an InternalTransaction or a NoSaleTransaction and if so create a transaction of the correct type and then return that back to the POS

POS Operations

Only the Blank operation calls the Blank operation service.

Development pack

To find this service in the development pack go to DevPack\Source\POS\Services

See also

POS Plugin

How to implement a blank operation

How to use the Get operation info delegate