Profile : Current Transaction(currentTxn)
The currentTxn profile returns the details of a transaction. We generally use this profile to write rules on transactions, basket size, custom fields, and so on. Refer to the table below for all the supported attributes of customerTxn.
The below grouping of attributes is based on the key Performance Indicator of transactions/basket.
Attributes | Description | Link |
---|
basketSum() | The sum of value of the items matching the inventory attribute. | Learn More |
basketSumRegex() | The sum of the value of the items matching the inventory attribute RegEx. | Learn More |
basketQty() | The total quantity of items in the bill matches the inventory. | Learn More |
basketQtyRegex() | The quantity of items in the bill matches the regular expression. | Learn More |
basketcount() | Number of products in the transaction of the given inventory type, irrespective of quantity. | Learn More |
basketcountRegex() | Number of products whose item attribute matches the given regular expression. | |
basketIncludes() | Products contained in the transaction. | Learn More |
basketExcludes() | Products not contained in the transaction. | Learn More |
basketSumIf | Returns the sum of the amount of line items that satisfies a specific condition. | Learn More |
basketCountIf | Returns the count of line items of the basket that satisfies a specific condition. | Learn More |
basketQtyIf | Return the sum of quantities of qualifying line items in the basket. | Learn More |
basketSize | Total number of items in the bill - irrespective of quantity of each item. | Learn More |
basketSumGross | The sum of the gross amount of each line item in a basket with a specific attribute. | Learn More |
basketSumRegexGross | The sum of the gross amount of each line item in the basket
whose product attribute values match the given regular expression. | Learn More |
Attributes | Definition | Link |
---|
number | Transaction number or ID. | Learn More |
Attribute | Definition | Link |
---|
date | date of the Transaction | Learn More |
The below grouping of attributes is based on custom fields created at the transaction level.
Attributes | Definition | Link |
---|
customFieldValueIncludes | Returns True if input custom field value matches with bill's custom fields. | Learn More |
customFieldValueExcludes | Returns False if input custom field value matches with bill's custom fields. | Learn More |
Attributes | Definition | Link |
---|
value | Total value of the transaction | Learn More |
Attributes | Definition | Link |
---|
discount | Discounted value on the transaction | Learn More |
Attributes | Definition | Link |
---|
note | Transaction level notes specified by the cashier during the transaction | Learn More |