:Sale Primitives
Primary Commands
Possible values of X are
X | Description | Examples |
A number | Uses the exact sale number given. This sale number must exist, this command cannot create specific numbered sales | :sale id 818282 |
new | Create a new sale | :sale id new |
active | Selects the active sale, being the one you most recently worked with and did not close using the phase command. If no active sale exists and one is required and new sale will be automatically created. | :sale id active |
A Physkey | Uses the sale identified by the physkey given. Physkey are globally unique and not repeated | :sale id KAPQJJK82NBKPAZAZYYAZ |
If you do not supply a sale id, the POS will default to "id active"
Possible values of X are
X | Description | Examples |
void | Marks the sale as void. Any open sale can be voided at any time. | :sale phase void |
park | Parks the sale into a holding state, from which it can be recalled at a later time. | :sale phase park |
pick | Send the sale onto the picking list, which is used to process sales for later pick and dispatch. Often used for eCommerce sales | :sale phase pick |
Example
:sale add line pid 614 quantity 2
Example
:sale delete line sequence 6
Example
:sale alter line sequence 3 serial ABC37289J
"Field" may be followed by an encoding qualifer relating to the "value"
Example - setting the cutomers order number
:sale set orderno(12344)
Possible fields are
Field Name | Description | Examples |
OrderNo | Stores the customer purchase order number against the complete sale. It is also possible to store the order number against individual sale lines to handle multiple order numbers in a single sale | |
Comments | Records internal use comments against this sale | |
ReceiptWillPrint | Toggles an internal indicator as to whether this sale should generate a receipt or not. This command may be overridden and receipts forced to print if other components on the sale require a printed receipt. | receiptwillprint=1 |
ReceiptFormatName | Name of the receipt format to be used |
Key Values
Possible values of N are
N | Description | Examples |
Integer | Locates the Saleline with the explicit sequence number | sequence=8 |
-1 | Reserved to indicate explicit "don't know". Developers can use this value as an initialisation placeholder. | sequence(-1) |
active | Uses the saleline most recently used. This is often used when additional primitives are sent directly after adding an item to a sale | sequence active |