Retail POS Technical Reference

Microsoft Dynamics® AX 2012 Feature Pack
March 2012

Microsoft Dynamics is a line of integrated, adaptable business management solutions that enables you and your people to make business decisions with greater confidence. Microsoft Dynamics works like and with familiar Microsoft software, automating and streamlining financial, customer relationship and supply chain processes in a way that helps you drive business success. U.S. and Canada Toll Free 1-888-477-7989 Worldwide +1-701-281-6500 www.microsoft.com/dynamics

This document is provided "as-is". Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. Some examples depicted herein are provided for illustration only and are fictitious. No real association or connection is intended or should be inferred.

This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. Copyright © 2012 Microsoft. All rights reserved. Microsoft, Microsoft Dynamics, the Microsoft Dynamics logo, Microsoft SQL Server, and Windows are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners.

Retail POS Technical Reference

1

Microsoft Dynamics AX

Contents
Introduction .................................................................................................................................... 3 Bar code system ............................................................................................................................. 4 Customer operations..................................................................................................................... 7 Rounding ........................................................................................................................................ 9 Product dimensions..................................................................................................................... 12 Item prices .................................................................................................................................... 15 Item discounts .............................................................................................................................. 19 End-of-day procedure................................................................................................................. 23 Infocodes ...................................................................................................................................... 27 Log on and log off ....................................................................................................................... 35 Printing.......................................................................................................................................... 37 Staff permissions.......................................................................................................................... 44 Table definitions .......................................................................................................................... 51

2

Retail POS Technical Reference

Introduction
This document provides detailed technical information about the Retail Point of Sale (Retail POS) component of Microsoft Dynamics® AX 2012 Feature Pack and its associated database. IT departments, partners, and ISVs can use this information to configure Retail POS, extend the program’s features and capabilities, and create custom solutions for the specific needs of individual retail businesses. The technical information in this document covers aspects of configuration, operations, rounding, dimensions, discounts, end-of-day procedures, infocodes, staff permissions, tax calculation, electronic funds transfer (EFT), and loyalty programs, as well as a comprehensive list of database table definitions.

Microsoft Dynamics AX

Bar code system
This section provides an example of how to configure bar codes in Retail POS. Use the tables and other information in this section as a reference when creating your own bar codes for items, for example. For additional information about the tables mentioned in this section, see Table definitions later in this document. Suppose we have three items for sale, each with entries in the following item tables. RETAILINVENTTABLE
ITEMID CANDY001 CANDY002 Shirt01 ITEMGROUP CANDY CANDY Clothes ZEROPRICEVALID 0 0 0

INVENTTABLE
ITEMGROUPID Candy Candy Clothes ITEMID CANDY001 CANDY002 Shirt01 ITEMNAME Chewing gum Chocolate Polo shirt

INVENTTABLEMODULE
ITEMID CANDY001 CANDY002 Shirt01 MODULETYPE 2 2 2 PRICE .50 1.00 22.00

If we have bar codes for the items, the following bar code tables are used. INVENTITEMBARCODE
ITEMBARCODE 2212345000005 2900123451216 ITEMID CANDY001 Shirt01 QTY 1 2

4

Retail POS Technical Reference

INVENTTABLE
ITEMGROUPID Candy Candy Clothes ITEMID CANDY001 CANDY002 Shirt01 ITEMNAME Chewing gum Chocolate Polo shirt

RETAILBARCODEMASKTABLE
MASKID Price0 Dimension1 MASK 22IIIIIPPPPPM 29IIIIIIISCZM TYPE 1 1 SYMBOLOGY 7 7

RETAILBARCODEMASKSEGMENT
MASKID Price0 Price0 Price0 Dimension1 Dimension1 Dimension1 Dimension1 SEGMENTNUM 0 1 2 0 1 2 3 TYPE 0 7 2 0 3 4 5 LENGTH 5 5 1 5 1 1 1 CHAR I P M I S C Y 2 DECIMALS

For the dimensions used in this example, the following dimension tables are used. INVENTDIMCOMBINATION
ITEMID Shirt01 Shirt01 Shirt01 Shirt01 INVENTSIZEID 1 1 2 2 INVENTCOLORID 1 1 2 2 INVENTSTYLEID 1 2 1 2

ECORESSIZE
SIZE 1 2 NAME 16 18 DESCRIPTION Sixteen Eighteen

Retail POS Technical Reference

5

Microsoft Dynamics AX

ECORESCOLOR
COLOR 1 2 NAME Red Blue DESCRIPTION Summer red Sky blue

ECORESSTYLE
STYLE 1 2 NAME Dots Stripes DESCRIPTION Tiny dots Vertical stripes

The following enumerated data types (enums) are used.
RETAILBARCODEMASKTABLE. TYPE None = 0, Item = 1, Customer = 2, Employee = 3, Coupon = 4, DataEntry = 5, NoBarcode = 0, EAN128 = 1, Code39 = 2, Interleved2of5 = 3, Code128 = 4, UPCA = 5, UPCE = 6, EAN13 = 7, EAN8 = 8, PDF417 = 101, MaxiCode = 102, RETAILBARCODEMASKSEGMENT. TYPE Item = 0, AnyNumber = 1, CheckDigit = 2, SizeDigit = 3, ColorDigit = 4, StyleDigit = 5, EANLicenseCode = 6, Price = 7, Quantity = 8, Employee = 9, Customer = 10, DataEntry = 11, RETAILBARCODEMASKTABLE. SYMBOLOGY

6

Retail POS Technical Reference

Customer operations
Customer operations are handled by the customer service interface, which enables partners to extend features for the needs of specific retailers. For details, see Customer service interface later in this section. The following customer operations are supported by Retail POS. Customer (600) Prompts for a customer ID, which is used to find and add the customer to the transaction. Customer search (602) Displays a list of customers. To add a customer to the transaction, select that customer in the list. Customer clear (603) Clears the customer’s information from the transaction. Customer add (612) Displays a form where information for a new customer is entered. Customer transactions (609) Displays a list of transactions for the selected customer. Customer transactions print (610) Used to print transactions for:      The last month The last three months The last six months The last year All transactions Note By default, this operation is hidden when Retail POS is used with the demo data provided by Microsoft Dynamics AX for Retail. When Retail POS is used without Microsoft Dynamics AX, this operation is not available. Customer account deposit (1100) Used to make a payment to a customer account.

Retail POS Technical Reference

7

Microsoft Dynamics AX

Customer service interface
The customer service interface extends all the customer operations. A typical workflow is as follows.

CORE Operation Customer Search

ICustomer CustomerSearch

frmCustomerSearch

Get Data

DataAccess GetCustomers

Figure 1. Customer service interface workflow.

The interface has the following methods:         PosTransaction Search(PosTransaction posTransaction); RetailTransaction Status(RetailTransaction retailTransaction); //Run from the operation CustomerSearch (602) PosTransaction Search(PosTransaction posTransaction); //Run from the operation CustomerAdd(612) bool CustomerAdd(); bool Update(string customerId); bool Delete(string customerId); //Run from the operation CustomerTransactions(609) void Transactions(string customerId); //Run from the operation CustomerTransactionsPrint(610) void TransactionsReport(string customerId); Note This method is not available when Retail POS is used with Microsoft Dynamics AX.

8

Retail POS Technical Reference

Rounding
The rounding settings are divided into three configurations:    Item prices and balances Payment methods Taxes

Each rounding configuration can be set with a rounding parameter. For example, if the parameter is set to 0.01, all amounts are rounded to two decimal places. The following sections discuss each configuration and how it is applied. Note: The rounding module is loaded into memory the first time that it is used. If you change rounding settings, you must exit Retail POS and restart it.

Item prices and balances
Item prices
When items and their prices are displayed in the receipt pane on the Retail POS screen, the active currency settings ROUNDOFFSALES and ROUNDOFFTYPESALES are used:         CURRENCY.ROUNDOFFSALES – The number of decimal places that the price is rounded to: 0.1 – The price is rounded and displayed to one decimal place. 0.01 – The price is rounded and displayed to two decimal places. And so on CURRENCY.ROUNDOFFTYPESALES – How the price is rounded: 0 – Round to nearest. 1 – Round down. 2 – Round up.

Retail POS Technical Reference

9

Microsoft Dynamics AX

Balances
Balances and total numbers displayed on the Retail POS screen are rounded using the settings from the active currency settings ROUNDOFFAMOUNT and ROUNDOFFTYPEAMOUNT: CURRENCY.ROUNDOFFAMOUNT – The number of decimal places that the amount is rounded to:       0.1 – The amount is rounded and displayed to one decimal place. 0.01 – The amount is rounded and displayed to two decimal places. And so on 0 – Round to nearest. 1 – Round down. 2 – Round up.

CURRENCY.ROUNDOFFTYPEAMOUNT – How the amount is rounded:

Tender types
Payment amounts are rounded using settings from the RETAILSTORETENDERTYPETABLE table, which are set on each tender type for each store. This way, cash payments and card payments do not need to be rounded with the same value. The fields ROUNDING and ROUNDINGMETHOD hold the configuration and determine the display of the Amount due box on the Retail POS screen: RETAILSTORETENDERTYPETABLE.ROUNDING        0.1 – The number is rounded and displayed to one decimal place. 0.01 – The number is rounded and displayed to two decimal places. And so on 0 – None. (The default, Round to nearest, is used.) 1 – Round to nearest. 2 – Round up. 3 – Round down.

RETAILSTORETENDERTYPETABLE.ROUNDINGMETHOD

10

Retail POS Technical Reference

Taxes
Tax rounding is always set to the nearest + 0.01.

Examples of rounding item prices, balances, and tenders
Example 1
Rounding fields CURRENCY.ROUNDOFFSALES and CURRENCY.ROUNDOFFTYPESALES CURRENCY.ROUNDOFFAMOUNT and CURRENCY.ROUNDOFFTYPEAMOUNT RETAILSTORETENDERTYPETABLE.ROUNDING and RETAILSTORETENDERTYPETABLE.ROUNDINGMETHOD 0.5 + Round to nearest Tender window = 0.00 ($7.00) 0.1 + Round to nearest Value 0.01 + Round to nearest Retail POS screen Transaction pane, item price = 0.00 ($6.88) Total panes = 0.0 ($6.9)

Example 2
Rounding fields CURRENCY.ROUNDOFFSALES and CURRENCY.ROUNDOFFTYPESALES CURRENCY.ROUNDOFFAMOUNT and CURRENCY.ROUNDOFFTYPEAMOUNT RETAILSTORETENDERTYPETABLE.ROUNDING and RETAILSTORETENDERTYPETABLE.ROUNDINGMETHOD 1 + Round up Tender window = 0.0 ($7.0) 0.5 + Round down Value 0.1 + Round up Retail POS screen Transaction pane, item price = 0.0 ($6.9) Total panes = 0.0 ($6.5)

Retail POS Technical Reference

11

Microsoft Dynamics AX

Product dimensions
Items may come in different colors, sizes, or styles while sharing the same item ID. Information about these additional product dimensions can be captured when the items are sold. Three tables are devoted to the product dimensions color, size, and style, while a fourth table combines an item’s color, size, and style.

Tables
The following tables are used to prompt for color, size, and style:     ECORESCOLOR – All the possible colors that the products might have. ECORESSIZE – All the possible sizes that the products might have. ECORESSTYLE – All the possible styles that the products might have. INVENTDIMCOMBINATION – The combinations of colors, sizes, and styles that each item can have.

Example
ECORESCOLOR
COLOR BLU GRE RED NAME Blue Green Red

ECORESSIZE
SIZE 32 34 36 NAME 32 34 36

ECORESSTYLE
STYLE FIN SOL STR NAME Fine Solid Stripes

12

Retail POS Technical Reference

INVENTDIMCOMBINATION
ITEMID 1234 1234 1234 1234 1234 1234 2345 2345 RETAILVARIANTID 1 2 3 4 5 6 1 2 INVENTCOLORID BLU BLU RED RED GRE GRE BLU BLU INVENTSIZEID 32 34 32 36 32 36 32 34 INVENTSTYLEID FIN FIN SOL SOL FIN FIN STR STR

This example shows that, if item 1234 is sold, six variations of products are available: two of them are blue with fine texture, but they only come in two sizes, 32 and 34; two of them are red with solid texture, also only available in sizes 32 and 34; and two of them are green with fine texture, in sizes 32 and 36. It is obvious that, when this item is sold, some further definition must be carried out to fully identify the product. If size 36 is chosen, the choice is limited to either red or green, which then completes the item identification.

Microsoft® SQL Server® query
For a list of all the different combinations of color, size, and style for each item, the following SQL query can be run. If any rows are returned from this query, further selection is possible.

SELECT
      I.InventSizeId SizeId I.InventColorId ColorId I.InventStyleId StyleId C.Name Color S.Name Size T.Name Style

FROM
 InventDimCombination I,

Retail POS Technical Reference

13

Microsoft Dynamics AX

  

EcoResColor C EcoResSize S EcoResStyle T

WHERE
        I.RBOVariantId = @RBOVariantId AND C.Color = I.InventColorId AND S.Size_ = I.InventSizeId AND T.Style = I.InventStyleId AND I.DataAreaId=@DataAreaId AND S.DataAreaId = I.DataAreaId AND C.DataAreaId = I.DataAreaId AND T.DataAreaId = I.DataAreaId

14

Retail POS Technical Reference

Item prices
Retail POS supports the price tables in Microsoft Dynamics AX. This section describes these tables, their fields, and their logic. These tables are also used for discounts, but Retail POS divides the logic into two components: one for prices, and one for discounts. Retail POS registers belong to a store, and the store belongs to a price group. Prices are set for different items in these price groups. If a price for an item is not found in the price group, Retail POS searches for the price in an item table. A specific price can also be set for a specific customer for a specific item. The tables used for price-related information include the following:  PRICEDISCTABLE – Stores information about price and discounts.
Table field ITEMCODE    RELATION ITEMRELATION ACCOUNTCODE Item = 0 Group = 1 All = 2 Integer Varchar[20] Integer X X X C C C Description The ITEMCODE can have three values: Field type Boolean Required X Index C

For a price lookup this is always 0. The RELATION sales price is always 4. Other values are used for discounts. Stores the item number. The field can have three values:    ACCOUNTRELATION Customer = 0 PriceGroup = 1 All customers = 2 Varchar[10] X C

The value depends on the ACCOUNTCODE. If the ACCOUNTCODE is 0, this field stores the CUSTOMERID. If the ACCOUNTCODE is 1, this field stores the price group name.

SEARCHAGAIN

Specifies whether the search for different combinations of ITEMCODE and ACCOUNTCODE should continue. The logic starts to search prices for a customer, then price group, and then all customers. If the SEARCHAGAIN field is set to false and a price is found in a price group, the search stops there. The search logic is also controlled by the PRICEPARAMETERS table.

Boolean

X

CURRENCY

Stores the currency code that is valid for the price agreement.

Varchar[3]

X

C

Retail POS Technical Reference

15

Microsoft Dynamics AX

FROMDATE TODATE QUANTITYAMOUNT

Defines the start date for the price agreement. Defines the end date for the price agreement. Defines the quantity that should be reached before the agreement becomes valid. By using this, prices can vary, depending on the quantity.

DateTime DateTime Decimal

X X X

C C

AMOUNT PRICEUNIT UNITID MARKUP

The sales price. Defines the price unit for the item. If 24pcs are in a box, the price is valid for 24pcs. The unit ID as text Here a markup defined that will be added to the price, unrelated to the quantity. For example, if the price for a unit is 2.00 for less than 100 pieces and 1.50 for 100 or more, a markup value of x is added to the price whether the quantity is 100, 50, or 5, that is, markup is not dependent on unit quantity.

Decimal Decimal Varchar[10] Decimal

X X X X C

ALLOCATEMARKUP

Specifies whether the markup is active.   No = 0 Yes = 1

Boolean

X

Example 1: Price for a customer To define a price for an item for a customer, the following fields are set as follows:
Field RELATION ITEMCODE ITEMRELATION ACCOUNTCODE ACCOUNTRELATION CURRENCY FROMDATE TODATE PRICEUNIT QUANTITYAMOUT AMOUNT MARKUP ALLOCATEMARKUP SEARCHAGAIN 4 0 The item number 0 The account number of the customer The currency of the store 1.1.1900 (Equals an empty date.) 1.1.1900 (Equals an empty date.) 1 1 The price of the item 0 0 0 Value

16

Retail POS Technical Reference

Example 2: Price belonging to a price group To define a price for an item for a price group, the following fields are set as follows:
Field RELATION ITEMCODE ITEMRELATION ACCOUNTCODE ACCOUNTRELATION CURRENCY FROMDATE TODATE PRICEUNIT QUANTITYAMOUNT AMOUNT MARKUP ALLOCATEMARKUP SEARCHAGAIN 4 0 The item number 1 The price group that the store belongs to. The currency of the store 1.1.1900 (Equals an empty date.) 1.1.1900 (Equals an empty date.) 1 1 The price of the item 0 0 0 Value

PRICEPARAMETERS – Stores configuration settings for price and discount search. This table controls search logic. If prices are only found in a price group, the fields SALESPRICEACCOUNTITEM and SALESPRICEALLITEM can be set to false. If no price is found, the fallback is the price in the INVENTTABLEMODULE table. The price found in the INVENTTABLEMODULE is in the price field where: o o MODULETYPE = 2 ITEMID = The item number
Table field KEY SALESPRICEACCOUNTITEM Description This can be any integer because the table has only one row. This can be either: No = 0 or Yes = 1 If set to 1, the logic searches for items prices based on customer ID. SALESPRICEGROUPITEM This can be either: No = 0 or Yes = 1 If set to 1, the logic searches for items Boolean X Boolean X Field type Integer X C Required Index

Retail POS Technical Reference

17

Microsoft Dynamics AX

prices based on price groups. SALESPRICEALLITEM This can be either: No = 0 or Yes = 1 If set to 1, the logic searches for items prices set for all customers. Boolean X

 

RETAILCHANNELPRICEGROUP – Contains the link between a store and a price group. INVENTTABLEMODULE – If no price is found in PRICEDISCTABLE, the price is found here.

18

Retail POS Technical Reference

Item discounts
Microsoft Dynamics AX 2012 for Retail POS has two kinds of discounts:   Customer discounts, which include line discounts, multiline discounts, and total discounts. Periodic discounts, which include mix and match discounts, quantity discounts, and discount offers.

Customer discounts
Customer discounts use the following tables.
Table name PRICEDISCTABLE PRICEPARAMETERS CUSTTABLE INVENTTABLEMODULE about this table. Stores the configuration for price and discount searches. See MSDN for documentation about this table. Stores information about the customer and the discount groups. See MSDN for documentation about this table. Stores information about the item and the discount groups. See MSDN for documentation about this table. Comment Stores information about price and discounts for customers. See MSDN for documentation

Customer discounts include the following three types.

Line discount
Line discounts can be applied to one line item of a transaction at a time, and only if certain conditions are met: o o o The search for line discounts must be active, as set in the PRICEPARAMETERS table. The date must be within the time limit, as set in the PRICEDISCTABLE table. The minimum quantity must be met, as set in the PRICEDISCTABLE table.

POS will only apply these discounts that are defined for customers. The discount is calculated as a combination of two fields storing percent1 and percent2, and also an amount field.
Example 1

o o o o

Item’s price = $0.75 Percent1 = 10.0 Percent2 = 0.0 Discount amount = 0.0

Retail POS Technical Reference

19

Microsoft Dynamics AX

o o

Items purchased = 20 Minimum quantity = 10

The calculation is: 0.75 × (1 – ((100–10)/100) × 20) = 13.50
Example 2

o o o o o o

Item’s price = $0.75 Percent1 = 10.0 Percent2 = 5.0 Discount amount = 0.25 Items purchased = 20 Minimum quantity = 10

The calculation is: (0.75–0.25) × (1 – ((100–10)/100)) × (1 – ((100–5)/100) × 20) = 8.55

Multiline discount
The calculation method is the same as for line discounts, except that multiline discounts do not apply to one line item but include multiple line items. If both a line discount and a multiline discount are specified for a line item, the item uses the “find next” functionality as in a Microsoft Dynamics AX sales order. Each combination of customers and items will be searched in the described order and the search will only stop when 1. (with next flag disabled) a valid trade agreement has been found, or 2. (with the next flag enabled) all combinations have been investigated for valid trade agreements . Use the Accounts receivable parameters form (Accounts receivable > Setup > Accounts receivable parameters) to specify how the actual discount on a line should be calculated as a combination of the discovered line and multiline discounts. POS will only apply these discounts that are defined for customers.

Total discount
A total discount applies to all the items in the transaction according to the quantities of items. This discount is always calculated after the other two. Customers can be grouped into total discount groups, and the items are flagged to indicate that they can be used in a total discount calculation.

20

Retail POS Technical Reference

Periodic discounts
Periodic discounts are discounts with a start date and an end date. Within that period, the discounts can be active or inactive, depending on the time of day or the day of the week. For example, a discount might be active from November 7, 2012 to December 24, 2012, on Saturdays only, between 8:00 and 10:00 A.M. More than one discount can be associated with an item. Concurrency rules determine how multiple discounts are applied to an item. One of the following rules applies:  Exclusive —If one of the applicable discounts is set to exclusive, it will override other discounts. If multiple exclusive discounts apply, the one with the best price for the customer wins.   Best price — If multiple discounts are set to best price, the one with the best price for the customer wins. Compounded — If all applicable discounts are set to compounded, those discounts will be applied in the order of the discount ID. There are three types of periodic discounts:    Discount Quantity Mix and match

These discounts are defined using the following group of tables.

Discount and price adjustment tables
Table name RETAILPERIODICDISCOUNT RETAILDISCOUNTOFFER RETAILPERIODICDISCOUNTLINE RETAILDISCOUNTLINEOFFER RETAILGROUPMEMBERLINE          Comment Stores the general header information for periodic discounts. Stores the header information specific to discount offers. Joined by RECID with RETAILPERIODICDISCOUNT. Stores the general line information for periodic discount lines. Joined by OFFERID with RETAILPERIODICDISCOUNT. Store the line information specific to discount offers. Joined by RECID with RETAILPERIODICDISCOUNTLINE. Stores the selected category, product, or variant for the discount line by RECID. Joined by RETAILPERIODICDISCOUNTLINE.RETAILGROUPMEMBERLINE on RETAILGROUPMEMBERLINE.RECID.

Retail POS Technical Reference

21

Microsoft Dynamics AX

Quantity discount tables
Table name RETAILPERIODICDISCOUNT RETAILDISCOUNTMULTIBUY RETAILPERIODICDISCOUNTLINE RETAILDISCOUNTLINEMULTIBUY RETAILGROUPMEMBERLINE          RETAILMULTIBUYDISCOUNTLINE   Comment Stores the general header information for periodic discounts. Stores the header information specific to quantity discounts. Joined by RECID with RETAILPERIODICDISCOUNT. Stores the general line information for periodic discount lines. Joined by OFFERID with RETAILPERIODICDISCOUNT. Stores the line information specific to quantity discounts Joined by RECID with RETAILPERIODICDISCOUNTLINE Stores the selected category, product, or variant for the discount line by RECID. Joined by RETAILPERIODICDISCOUNTLINE.RETAILGROUPMEMBERLINE on RETAILGROUPMEMBERLINE.RECID. Stores the quantity thresholds and values for quantity discount. Joined by OFFERID with RETAILPERIODICDISCOUNT.

Mix-and-match tables
Table name RETAILPERIODICDISCOUNT RETAILDISCOUNTMIXANDMATCH         RETAILGROUPMEMBERLINE   Comment Stores the general header information for periodic discounts. Stores the header information specific to mix-and-match discounts. Joined by RECID with RETAILPERIODICDISCOUNT. Stores the general line information for periodic discount lines. Joined by OFFERID with RETAILPERIODICDISCOUNT. Store the line information specific to mix-and-match discounts. Joined by RECID with RETAILPERIODICDISCOUNTLINE. Joined by LINEGROUP with RETAILMIXANDMATCHLINEGROUPSETUP. Stores the selected category, product, or variant for the discount line by RECID. Joined by RETAILPERIODICDISCOUNTLINE.RETAILGROUPMEMBERLINE on RETAILGROUPMEMBERLINE.RECID. Stores basic definition of line groups which can be used by mixand-match discounts. Stores relation between mix-and-match discount and line groups along with number of items needed for each line group. Joined with RETAILPERIODICDISCOUNT by OFFERID or MIXANDMATCHID. Joined with RETAILMIXANDMATCHLINEGROUPSETUP by MIXANDMATCHGROUPID

RETAILPERIODICDISCOUNTLINE RETAILDISCOUNTLINEMIXANDMATCH

RETAILMIXANDMATCHLINEGROUPSETUP RETAILMIXANDMATCHLINEGROUPS

   

22

Retail POS Technical Reference

End-of-day procedure
To divide the store’s sales into measurable units for accounting and reporting, an end-of-day or end-of-shift procedure must be performed. Also, cashiers must account for every transaction they perform. End-of-day and end-of-shift procedures do the same thing in relation to the transaction tables.

Data tables
Three tables are used in the end-of-day procedure:  RETAILTRANSACTIONTABLE – Stores header information about each transaction, such as: o o o o o  Transaction ID Terminal ID Store ID Date Time

RETAILTRANSACTIONSALESTRANS – Stores one line of information about each item purchased in each transaction: o o o o o o Transaction ID Item ID Item name Price VAT info Line discount / total discount ratio Transaction ID Payment ID Payment amount

RETAILTRANSACTIONPAYMENTTRANS – Stores payment information: o o o

Each register in the store processes transactions using its own terminal ID. Completed transactions are then automatically transferred from each register to identical data tables in the store database.

Retail POS Technical Reference

23

Microsoft Dynamics AX

Transaction data
The store’s transactions tables are shown in Figure 2. Transactions from terminal 1 and terminal 2 are joined together in the store database. This is possible because of the joined primary key STOREID,TERMINALID,TRANSACTIONID,LINEID.
Terminal 1 database
RetailTransaction Table RetailTransaction SalesTrans TransID=001 TransID=001 TransID=001 TransID=001 TransID=001 Ter=1 Ter=1 Ter=1 Ter=1 Ter=1 Date=X ItemID=123 ItemID=234 PaymentID=1 PaymentID=2 TransID=001 TransID=001 TransID=001 TransID=001 Ter=1 Ter=2 Ter=1 Ter=1 Ter=2 Ter=1 Ter=1 Ter=2 Ter=2 Date=X Date=Y ItemID=123 ItemID=234 ItemID=123 PaymentID=1 PaymentID=2 PaymentID=1 PaymentID=1 St.m.ID=111 St.m.ID=111 St.m.ID=111 St.m.ID=111 St.m.ID=111 St.m.ID=111 St.m.ID=111 St.m.ID=111 St.m.ID=111 RetailTransaction PaymentTrans RetailTransaction SalesTrans RetailTransaction Table

Backroom server’s database

RetailTransaction PaymentTrans

Terminal 2 database
RetailTransaction Table RetailTransaction SalesTrans RetailTransaction PaymentTrans TransID=001 TransID=001 TransID=001 TransID=001 Ter=2 Ter=2 Ter=2 Ter=2 Date=Y ItemID=123 PaymentID=1 PaymentID=1

TransID=001 TransID=001 TransID=001 TransID=001 TransID=001

Figure 2. Collection and consolidation of store transaction data.

End-of-day data
Figure 3 shows an example of a status at the end of the day in a store. Both registers have performed three transactions, which have been replicated to a central database. Because the end-of-day procedure has not been performed, there is no statement ID. Note: The figures in this section have been simplified. Each transaction is shown as just one line.

24

Retail POS Technical Reference

Terminal 1
TransactionID 1 2 3 Terminal 1 1 1

Central database
TransactionID 1 1 2 Terminal 1 2 1 2 1 2 Statement ID

Terminal 2
TransactionID 1 2 3 Terminal 2 2 2

2 3 3

Figure 3. Replication of data to the central database at the end of the day prior to an end-of-day procedure.

Now, assume that the end-of-day procedure is performed. By default, every transaction without a statement ID is given an identical number, as shown in Figure 4.

Terminal 1
TransactionID 1 2 3 Terminal 1 1 1

Central database
TransactionID 1 1 2 Terminal 1 2 1 2 1 2 Statement ID 1 1 1 1 1 1

Terminal 2
TransactionID 1 2 3 Terminal 2 2 2

2 3 3

Figure 4. Data after an end-of-day procedure has been performed.

Retail POS Technical Reference

25

Microsoft Dynamics AX

The next day, transactions continue to be replicated to the central database, as shown in Figure 5.

Terminal 1
TransactionID 1 2 3 4 5 Terminal 1 1 1 1 1 TransactionID 1 1 2 2 3 Terminal 1 2 1 2 1 2 1 2 1 2 Statement ID 1 1 1 1 1 1

Central database

Terminal 2
TransactionID 1 2 3 4 5 Terminal 2 2 2 2 2

3 4 4 5 5

Figure 5. Status at the end of the next period.

At the end of that day, the end-of-day procedure is performed again. Retail POS finds the last row in the central database that has a statement ID. It then marks all the lines without a statement ID with an incremented number – in this case, 2, as shown in Figure 6.

26

Retail POS Technical Reference

Terminal 1
TransactionID 1 2 3 4 5 Terminal 1 1 1 1 1 TransactionID 1 1 2 2 3 Terminal 1 2 1 2 1 2 1 2 1 2 Statement ID 1 1 1 1 1 1 2 2 2 2

Central database

Terminal 2
TransactionID 1 2 3 4 5 Terminal 2 2 2 2 2

3 4 4 5 5

Figure 6. Status after the next end-of-day procedure is performed.

Infocodes
When items are sold, it might be necessary or useful to gather information about the customer or the transaction. Sometimes, the cashier must be prompted when specific items are sold to certain customers. For example, when alcoholic beverages are sold, Retail POS can prompt the cashier to ask for identification. Or, the cashier might need the name of the customer for the customer’s account. Infocodes can do these things and more. Infocodes can be activated by:     Items Customers Tender types Specific Retail POS operations (configured on a functionality profile)

Retail POS includes several types of infocodes.
Infocode type Text input Number input text. Displays a number pad for entering numbers.  Comment Displays a keyboard for entering  entered. The minimum and maximum characters that can be entered. Specific configuration The minimum and maximum characters that can be

Retail POS Technical Reference

27

Microsoft Dynamics AX

Infocode type Date input Item selection Customer selection Subcode list dates.

Comment Displays a number pad for entering Displays the item search dialog box. Displays the customer search dialog box. Displays a list of subcodes similar to the item search dialog box.    

Specific configuration

Subcodes to be displayed must be in the RETAILINFORMATIONSUBCODETABLE table. Subcode selection can trigger an item sale. Subcodes to be displayed must be in the RETAILINFORMATIONSUBCODETABLE table. Subcode selection can trigger an item sale. The minimum number is used as the minimum age required.

Subcode buttons

Displays a form with buttons for each of the subcodes.

Age limit

Displays a message that the customer must have a birth date before a certain date.

Tables
The following tables are used for prompts for infocodes:    RETAILINFOCODETABLE – Stores detailed information about all the registered infocodes. RETAILINFOCODETABLESPECIFIC – Stores information about connections between infocodes and items, customers, and payment types. RETAILINFORMATIONSUBCODETABLE – Stores the subcodes applicable to infocodes of type Subcode List and Subcode Buttons. RETAILINFOCODETABLE
Field name INFOCODEID DESCRIPTION PROMPT ONCEPERTRANSACTION Field type Nvarchar(10) Nvarchar(60) Nvarchar(30) Integer Primary key X Comment The unique ID for the infocode. The description of the infocode. The prompt displayed in the dialog box when the infocode is activated. 0 1 = Always activated = Only activated once

An example of this is when an infocode is linked to some item that is sold more than once in a single transaction. VALUEISAMOUNTORQUANTITY PRINTPROMPTONRECEIPT Integer Integer Not used. The prompt text is printed on the receipt.

28

Retail POS Technical Reference

Field name PRINTINPUTONRECEIPT PRINTINPUTNAMEONRECEIPT INPUTTYPE

Field type Integer Integer Integer

Primary key the receipt.

Comment The input selected with subcode is printed on The input description selected with subcode is printed on the receipt. 0 1 2 3 4 5 6 7 8 9 = General (same as Text) = Subcode List = Date = Numeric = Item = Customer = Operator (Staff) = CreateDataEntry (not used) = ApplyToEntry (not used) = Text

10 = Subcode Buttons 11 = Age Limit MINIMUMVALUE Decimal The minimum numeric value that is accepted. If set to 0, all values are accepted. Only applies to the Numeric and Age Limit input types. MAXIMUMVALUE Decimal The maximum numeric value that is accepted. Does not apply when the input type is Text. If set to 0, all values are accepted. Only applies to the Numeric and Age Limit input types. MINIMUMLENGTH Integer The minimum input text length that is accepted. Only applies to the Text and General input types. If set to 0, all values are accepted. MAXIMUMLENGTH Integer The maximum input text length that is accepted. Only applies to the Text and General input types. If set to 0, all values are accepted. INPUTREQUIRED Integer 0 = The user does not have to enter input. 1 = Input is required. The user cannot press Cancel. STD1INVALUE LINKEDINFOCODEID Integer Nvarchar(10) Not used A second infocode to be activated after this one has finished.

Retail POS Technical Reference

29

Microsoft Dynamics AX

Field name RANDOMFACTOR

Field type Decimal

Primary key

Comment The percentage random factor that determines when the infocode is activated. Values from 1 to 99 generate a percentage rate, but for values 0 and 100, the infocode is always activated.

RANDOMCOUNTER DATATYPEID MODIFIED FIELDS DATAAREAID RECID ADDITIONALCHECK

Decimal Nvarchar(20) Nvarchar(3) Integer Integer X

Not used Not used Not used The company ID Not used Not used

RETAILINFOCODETABLESPECIFIC
Field name INFOCODEID REFRELATION REFRELATION2 REFRELATION3 REFTABLEID Field type NVChar[10] NVChar[20] NVChar[20] NVChar[20] Integer Primary key X X X X X Comment The ID that links to the infocode in the RETAILINFOCODETABLE table. The first field in the primary key in the table referenced in REFTABLEID. The second field in the primary key in the table referenced in REFTABLEID. The third field in the primary key in the table referenced in REFTABLEID. A numeric value specifying what table is connected to the infocode. The values are: 0 1 2 3 4 5 6 7 WHENREQUIRED Integer = None = Item (INVENTTABLE) = Customer (CUSTTABLE) = Tender (RETAILSTORETENDERTYPETABLE) = Credit Card (RETAILSTORETENDERTYPECARDTABLE) = Income/Expense (not yet implemented) = Department (not yet implemented) = Item Group (INVENTITEMGROUP) X X X X Required X

The general conditions in which the infocode is triggered. The values are: 0 = Always 1 = PositiveAndNegative 2 = Positive 3 = Negative

30

Retail POS Technical Reference

Field name INPUTREQUIRED

Field type Integer

Primary key are:

Comment Specifies whether an input is required. The values 0 = Input is not required. 1 = Input is required. Overrides the value in the RETAILINFCODETABLE table for the same infocode.

Required

DATAAREAID RECID

NVChar[3] Integer

X Not used.

X

RETAILINFORMATIONSUBCODETABLE
Field name INFOCODEID SUBCODEID DESCRIPTION TRIGGERFUNCTION TRIGGERCODE NEWSALESLINE PRICETYPE Field type Nvarchar(10) Nvarchar(10) Nvarchar(60) Integer Nvarchar(20) Integer Integer Primary key X X Comment The unique ID for the infocode. The unique ID for the subcode. The subcode description that is displayed in a list or on a button. 0 = None – No action is taken. 1 = Item – An item is sold when the subcode is selected. The item ID to be sold upon subcode selection. Not used. 0 1 2 3 AMOUNTPERCENT DATAAREAID RECVERSION RECID Decimal Nvarchar(3) Integer Integer X Not used. Not used. None From item (the normal price calculated for the item) Price (A price is set in the AMOUNTPERCENT field.) Percent (A discount percentage is set in the AMOUNTPERCENT field.) The price or discount percentage to be set on the item sold upon subcode selection.

Retail POS Technical Reference

31

Microsoft Dynamics AX

Connections between infocode tables
The colors in the following tables indicate the connections. RETAILINFOCODETABLE
INFOCODEID 1234 1235 2222 PROMPT What is your name? What is your age? Do you want to buy batteries?

INVENTTABLE
ITEMID 1001 1002 1003

RETAILINFOCODETABLESPECIFIC
REFRELATION 1001 1002 1003 INFOCODEID 1234 1235 2222 REFTABLEID 1 1 1

RETAILINFORMATIONSUBCODETABLE
INFOCODEID 2222 2222 SUBCODEID 1 2 DESCRIPTION Yes. No thanks.

Infocode examples
The following RETAILINFOCODETABLE table lists all available infocodes in Retail POS. Each infocode can be used more than once in different configurations in RETAILINFOCODETABLESPECIFIC. The INPUTREQUIRED value can be overwritten in the RETAILINFOCODETABLESPECIFIC configuration.

Available infocodes (RETAILINFOCODETABLE)
INFOCOD EID BATTERIES DATE 1 0 ONCEPERTRANSAC TION 10 2 INPUTTY PE 0 0 MINIMUMVA LUE 0 0 MAXIMUMV ALUE 100 50 RANDOMFAC TOR 1 0 INPUTREQUI RED

32

Retail POS Technical Reference

INFOCOD EID ID-CARD AGELIMIT

ONCEPERTRANSAC TION 1 1

INPUTTY PE 9 11

MINIMUMVA LUE 0 18

MAXIMUMV ALUE 0 0

RANDOMFAC TOR 100 100

INPUTREQUI RED 1 1

As shown in the following table, the subcodes for each INFOCODEID value are displayed in Retail POS sorted by SUBCODEID value. The first subcode sells an item with item ID B-R14 and gives the customer a 10-percent discount off that item. The item sold has the property SALELINEITEM.ISINFOCODEITEM = true.

Subcodes (RETAILINFORMATIONSUBCODETABLE)
INFOCODEID BATTERIES BATTERIES SUBCODEID 1 2 DESCRIPTION Yes. No thanks. TRIGGERFUNCTION 1 0 TRIGGERCODE B-R14 PRICE TYPE 3 0 AMOUNT PERCENT 10 0

In the following table, REFRELATION1, REFRELATION2, and REFRELATION3 are the three primary key fields (DATAAREAID is never included) in the table referenced in REFTABLEID.

Activate infocodes (RETAILINFOCODETABLESPECIFIC)
INFOCODE ID Batteries Agelimit Agelimit ID-Card Date INPUT REQUIRED 1 1 1 0 1 WHEN REQUIRED 1 0 1 0 1 FL-Standard 110 111 S0001 4000 4 1 1 1 3 2 REFRELATION1 REFRELATION2 REFRELATION3 REFTABLEID

INFOCODEID comments
Batteries The Batteries infocode is activated when an FL-Standard item is sold. REFTABLEID is 1 (INVENTTABLE), and the primary keys in that table are ITEMID and DATAAREAID. Therefore, only REFRELATION1 must be filled in with the ITEMID value.

Retail POS Technical Reference

33

Microsoft Dynamics AX

Agelimit Both Agelimit infocodes are attached to an item. REFTABLEID is 1 (INVENTTABLE), and the primary keys in that table are ITEMID and DATAAREAID. Therefore, only REFRELATION1 must be filled in with the ITEMID value. ID-Card The ID-Card infocode is attached to a tender type. REFTABLEID is 3 (RETAILSTORETENDERTYPETABLE), and the primary key in that table is STOREID + TENDERTYPEID + DATAAREAID. Therefore, REFRELATION1 must be filled in with the STOREID value, and REFRELATION2 must be filled in with the TENDERTYPEID value. Date The Date infocode is attached to customer number 4000. REFTABLEID is CUSTTABLE, and the primary keys in that table are ACCOUNTNR and DATAAREAID. Therefore, only REFRELATION1 must be filled in with the ACCOUNTNR value.

34

Retail POS Technical Reference

Log on and log off
This section describes the logon and logoff procedures in Microsoft Dynamics AX for Retail POS. Retail POS can be set up so that you can log on and log off manually by scanning a bar code, by swiping a card, or by a combination of these methods. Retail POS always starts with the logon dialog box.

Methods of logging on and off
Manual It is always possible to log on and off manually with an ID and password. A button to log off should always be displayed on the Retail POS screen. After you log off, Retail POS displays the logon dialog box. Bar code Retail POS can be set up so that you can scan a bar code logon. An ID and password are not used with this method. A logon transaction is saved when this is done. During a transaction in progress, you can scan the bar code to switch users. A new user ID is then registered with the transaction. Note This operation is not yet implemented. It is untested and will require customization to be usable. Card A card with a magnetic stripe can be used to log on. Logging on with a card is similar to logging on with a bar code, as described in the preceding section. Note This operation is not yet implemented. It is untested and will require customization to be usable. Automatic logoff  After each transaction You can set up Retail POS to automatically log you off after each transaction. In the table RETAILTERMINALTABLE, change the field EXITAFTEREACHTRANSACTION from 0 to 1.

Microsoft Dynamics AX

After a certain period of time You can set up Retail POS to automatically log you off after a certain period of time. In the table RETAILTERMINALTABLE, change the field AUTOLOGOFFTIMEOUT from 0 to the number of minutes Retail POS is idle before automatically logging you off. If Retail POS is in a lengthy process or in design mode, or if a dialog box is displayed, Retail POS delays the logoff countdown until the process ends or the dialog closes, and it then starts the countdown from that time.

36

Retail POS Technical Reference

Printing
Connection methods
Printers can be connected to Retail POS in two ways. One way is directly to the computer via its serial or USB port. For example, in this method, Retail POS communicates with an OPOS (OLE Retail POS) driver for a receipt printer. The other way is to print to a network printer. In this method, Retail POS sends print jobs to the print spooler in the same way that a word processor does. Therefore, Retail POS does not receive any confirmation that the printing was successful. For example, if the printer is out of paper, the print jobs wait in the printer queue. Figure 7 shows a typical setup where two printers are connected – a directly connected OPOS receipt printer for the point of sale and a networked Windows-based printer used for printing on letter-size paper.

Figure 7. Possible printer connection methods.

Printing software
When communicating with an OPOS driver, the computer with Retail POS must have two kinds of software installed:  The OPOS driver provided by the printer manufacturer.

Microsoft Dynamics AX

Common control objects from Monroe Consulting Services to ensure functional compatibility. It is often necessary to install the common control objects after the OPOS driver is installed.

Figure 8. Printing with OPOS software.

When the OPOS driver is installed, registry entries are typically created for all devices that the manufacturer supports. Even though the OPOS driver is installed, the printer must be configured. The most common communication settings are:     Baud rate – Common values for this are 4800, 9600, 19200, 38400, 57600, or 115200. Byte size – Can be either 7 or 8 bits. Parity – Can be Even, Odd, Mark, Space, or None. Port number – The number of the port where the OPOS driver can find the printer.

The printer manufacturer usually provides software to modify the OPOS driver’s settings. Typically, you create a name for the device (such as Epson1) and specify settings that are saved in the registry. Note that these settings can also be modified directly in the registry. (The standard path in the registry is HKEY_LOCAL_MACHINE\SOFTWARE\OLEforRetail.) For example, a receipt printer (Epson1) might have the following settings:     Port number = com1 Baud rate = 19200 Parity = None Byte size = 8

38

Retail POS Technical Reference

Troubleshooting the printing connection
If a directly connected OPOS printer does not work, the first thing to check is the communication port. The OPOS driver must be directed to the port where the printer is connected. No other software (including Windows) can use this port for any other purpose. Another issue can be the installation of the common control objects. Be sure to reinstall the common control objects after the OPOS driver is installed. Also, check the communication parameters. Do they match? The printer uses certain settings, and the OPOS driver’s settings must be the same. If the printer has no software that can print a test page, you can use the following procedure to print a test page using a Windows-based printer.

Print a test page with a Windows-based printer
1. Connect the printer, and add it using Windows printer configuration. 2. Right-click the newly added printer, and then click Properties. 3. Click the Ports tab, and then click Configure ports. 4. Set the communication parameters. 5. Click the General tab, and then click Print Test Page. 6. Remove the printer when the test is finished. Figure 9 shows a configuration where the OPOS driver is communicating at a much higher speed than the printer. Either the OPOS driver must lower its speed to 9600, or the printer must be set to 19200, as in Figure 10.

Microsoft Dynamics AX

Figure 9. Incorrect configuration – baud settings do not match.

Figure 10. Correct configuration – baud settings match.

For a network printer, try to print a test page using standard Windows printing.

Print a test page using standard Windows printing
1. Add a network printer using Windows printer configuration. 2. Right-click the newly added printer, and then click Properties. 3. On the General tab, click Print Test Page. 4. Remove the printer when the test is finished.

Table structure for printing
The basic tables
To print, Retail POS must be aware of the printer’s name and whether it is allowed to print. The table RETAILHARDWAREPROFILE stores this information.

40

Retail POS Technical Reference

Pos.exe. config

TerminalId=0001 StoreID=S0001 DataAreaID=dat

RETAILTERMINALTABLE TERMINALID 0001 HARDWAREPROFILE Epson

RETAILHARDWAREPROFILE PROFILEID Epson PRINTER 1 PRINTERDEVICENAME Epson1

Figure 11. Basic table structure for printing.

Figure 11 shows the basic table structure, but these settings apply only to print forms that are not user-created, such as the customer balance. The setting Printer=1 in the RETAILHARDWAREPROFILE table indicates that the printer is considered to be connected; however, PRINTERDEVICENAME is, in this case, set to the OPOS driver name (for example, Epson1). If the printer is a network printer, Printer should be set to 2. Then PRINTERDEVICENAME is set to the network path of the printer – for example, \\ServerName\PrinterName.

The form layout table
The form layout table, RETAILFORMLAYOUT, contains information about the different print layouts. Each form can print either to the OPOS printer defined in the RETAILHARDWAREPROFILE table or to the Windows-based printer specified at the layout level. The RETAILFORMLAYOUT table has the following fields.
Field name ID TITLE DESCRIPTION UPPERCASE HEADERXML LINESXML FOOTERXML A string that identifies the layout. The title of the layout. The description of the layout. Specifies whether all the characters will be converted to uppercase before they are printed. The XML layout of the header. The XML layout of the lines. The XML layout of the footer. Description

Microsoft Dynamics AX

Field name PRINTASSLIP USEWINDOWSPRINTING WINDOWSPRINTERNAME FORMLAYOUTID LAYOUTTYPE

Description Specifies whether the layout will be printed to the slip printer. Specifies whether the layout will be printed to a Windows-based printer. The \\ServerName\PrinterName path of the Windows-based printer. The ID of the form layout in the table. The type of layout that the form will print as.

Receipt types
Retail POS provides several different receipt types, as listed in the Receipt format menu of the Receipt format form:                   Receipt Store’s credit card receipt Customer’s credit card receipt Store’s credit card receipt – returns Customer’s credit card receipt – returns EFT message Store’s customer account receipt Customer’s customer account receipt Store’s customer account receipt – return Customer’s customer account receipt - return Invoice Customer account deposit Credit memo Sales order receipt Sales invoice receipt Quotation receipt Packing slip Pickup receipt

The following diagram shows how supported receipt types are made available to a POS terminal..

42

Retail POS Technical Reference

POS terminal

Hardware profile

Receipt profile

Receipt format a Receipt type A

Receipt format b Receipt type B

Receipt format n Receipt type N

Figure 12. One-to-one and one-to-many relationships among receipt entities.

The terminal is assigned a single hardware profile in the POS terminals form, and the hardware profile is assigned a single receipt profile in the POS hardware profile form. Each receipt format defines an association between a receipt type and a design. A receipt profile can contain only a single mapping of a particular receipt type; you must create multiple receipt profiles if you wish to support more than one design format for a single receipt type. It is possible to create new formats (hence designs) without adding them to any profile, but they must be included in a profile to be used. When creating a receipt profile, include a receipt format for each type of receipt that you will need to print. The format of the receipt is called automatically by POS when it calls the printing service. Finer control of this behavior is available through the Print behavior field of the Receipt format form. Available values for this field are Always print, Do not print, and Prompt user.

Microsoft Dynamics AX

Staff permissions
Every time an operation starts, Retail POS checks various settings to determine whether the operation can be performed by whoever is logged on. Retail POS first determines whether an operation needs permission. If the field CHECKUSERSACCESS in the table RETAILOPERATIONS is set to true, permission is required. For general operations such as logon and logoff, this value is set to false, because everyone must be able to perform these operations. Retail POS then checks the fields PERMISSIONID and PERMISONID2 in the table RETAILOPERATIONS. If they are not set, the operation is available to everyone. Next, Retail POS checks for manager privileges for the worker. It first checks in the RETAILPOSITIONPOSPERMISSION table for all the active (date-effective) positions assigned to the worker. If any active position has manager privileges associated with it, the worker can perform any operation. Otherwise, POS checks the job associated with the position and the POS permission group associated with the job, if one has been assigned. If a POS permission group has been assigned, and it has manager privileges, the worker can perform any operation. If the person does not have manager privileges, Retail POS finds the name of the permissions to check by looking up the name in the table RETAILPERMISSIONS by using the IDs found in the fields PERMISSION and PERMISSIONID2. Retail POS then looks up the value of the column name (found in RETAILPERMISSIONS), first in the RETAILPOSITIONPOSPERMISSION table, and then in the RETAILPOSPERMISSIONGROUP table. That value determines whether the person has permission to perform the operation. The following is a visual representation of the order of permission checking.

44

Retail POS Technical Reference

Figure 13. Logical structure used for verifying POS permissions.

The POS logon and permission verification logic is as follows: 1. Verify the user ID and password. 2. Verify the store assignment through the address book. 3. Verify a current position (date effective). 4. Check for POS permissions override on the position. 5. Check for POS permissions on the job.

Tables
RETAILSTAFFTABLE
Field name RECID STAFFID RETAILHCMWORKER The unique record ID. The unique number of the employee. This is also used as the login ID for POS. The foreign key to the HCMWORKER table. Bigint X Description Field type Bigint nVarchar[25] Required X X Index

Microsoft Dynamics AX

RETAILOPERATIONS
Field name OPERATIONID OPERATIONNAME PERMISSIONID The name of the card. If permissions are not defined, there are no restrictions; but if permissions are defined, Retail POS looks them up in the POSISPERMISSIONS table. PERMISSIONID2 If permissions are not defined, there are no restrictions; but if permissions are defined, Retail POS looks them up in the POSISPERMISSIONS table. USEROPERATION Specifies whether Retail POS is supposed to check access. Integer Integer Description The unique card type ID. Field type Integer varchar(50) Integer Required X X Index C

RETAILPERMISSIONS
Field name PERMISSIONID PERMISSIONNAME Description The unique ID of the permission. The name of the permission, corresponding to a field in the RETAILSTAFFTABLE table. Field type Integer Varchar[100] Required X X Index C

RETAILPOSPERMISSIONGROUP
Field name RECID POSPERMISSIONGROUPID MANAGERPRIVILEGES NAME Description The unique record ID. The unique ID of the POS permission group. Specifies whether the POS permission group has manager privileges. A descriptive name of the POS permission group. Nvarchar(60) Field type Bigint Nvarchar(10) Int Required X X Index

RETAILPOSITIONPOSPERMISSION
Field name RECID POSITION POSPERMISSIONGROUP MANAGERPRIVILEGES The unique record ID. The foreign key to the HCMPOSITION table. The foreign key to the POS permission group. Specifies whether the POS permission group has manager privileges. Description Field type Bigint Bigint Bigint Int X X Required Index

RETAILJOBPOSPERMISSIONGROUP
Field name RECID Description The unique record ID. Field type Bigint X Required Index

46

Retail POS Technical Reference

Field name JOB RETAILPOSPERMISSIONGROUP

Description The foreign key to the HCMJOB table. The foreign key to the RETAILPOSPERMISSIONGROUP table.

Field type Bigint Bigint

Required X X

Index

Example data
RETAILSTAFFTABLE
STAFFID 101 102 RETAILHCMWORKER 5637000001 5637000002

HCMWORKER
RECID 5637000001 5637000002 PERSONNELNUMBER 101 102

HCMPOSITIONWORKERASSIGNMENT
RECID 999991 999992 WORKER 5637000001 5637000002 POSITION 5637000003 5637000004 VALIDFROM 1/1/2001 1/1/2001 VALIDTO 12/30/2154 12/30/2154

HCMPOSITIONDETAIL
RECID 5637000003 5637000004 JOB 5637000005 5637000006

RETAILJOBPOSPERMISSIONGROUP
RECID 5637000007 5637000008 JOB 5637000005 5637000006 RETAILPOSPERMISSIONGROUP 5637000009 5637000010

Microsoft Dynamics AX

RETAILPOSPERMISSIONGROUP
RECID 5637000009 5637000010 POSPERMISSIONGROUP Cashier Manager MANAGERPRIVILEGES 0 1 ALLOWXREPORT PRINTING 1 0 0 1 ALLOWFLOATING DECLARATION

RETAILOPERATIONS
OPERATIONID 100 115 910 OPERATIONNAME ItemSale ShowJournal RestartComputer PERMISSIONID NULL 1002 1002 PERMISSIONID2 NULL 1002 NULL CHECKUSERACCESS True True True

RETAILPERMISSIONS
PERMISSIONID 1001 1002 1003 PERMISSIONNAME AllowTransactionVoiding ManagerPrivileges AllowXReportPrinting

Example
Assume that only four operations are available:     Logon Logoff VoidTransaction ApplicationExit

Your store has two types of employees: cashiers and managers. You want the ability to control which employee can do what, as shown in the following table.
Employee type Manager Cashier Logon X X Logoff X X Void transaction X Exit program X X

48

Retail POS Technical Reference

The first thing to do is set up the operation table for these four operations.

RETAILOPERATIONS
OPERATIONID 1 2 3 4 OPERATIONNAME Logon Logoff VoidTransaction ApplicationExit PERMISSIONID NULL NULL 1002 NULL

Note that three of the operations have permission IDs that are NULL, which means that all employees can perform these operations. The permission ID 1002 for the operation VoidTransaction points to the following row in the permission table.

RETAILPERMISSIONS
PERMISSIONID 1002 PERMISSIONNAME ManagerPrivileges

This indicates that whoever wants to void a transaction must have the ManagerPrivileges permission. Next, we create two POS permission groups.

RETAILPOSPERMISSIONGROUP
RECID 56370000 09 56370000 10 Manager 1 1 1 POSPERMISSION GROUP Cashier MANAGER PRIVILEGES 0 1 ALLOWXREPORT PRINTING 0 ALLOWFLOATING DECLARATION

Next, we should create two jobs, one for cashiers and one for managers

HCMJOB
RECID 5637000005 5637000006 DESCRIPTION Cashier job Manager job

Microsoft Dynamics AX

When we create each job, we assign a POS permission groups to it.

RETAILJOBPOSPERMISSIONGROUP
RECID 5637000007 5637000008 JOB 5637000005 5637000006 RETAILPOSPERMISSIONGROUP 5637000009 5637000010

Next, we create a position for each of the jobs.

HCMPOSITIONDETAIL
RECID 5637000003 5637000004 JOB 5637000005 5637000006 DESCRIPTION Cashier #1 Manager #2

Finally, we hire a new worker for each position. If you set any property on the Retail tab in the Worker details form, the record is also created in the RETAILSTAFFTABLE table.

HCMWORKER
RECID 5637000001 5637000002 PERSONNELNUMBER 1 2

RETAILSTAFFTABLE
STAFFID 1 2 NAME Nancy Anderson Lucia Ceckova

Now we have two employees, one who can perform all four operations, and one who cannot void transactions.

50

Retail POS Technical Reference

Table definitions
This section describes the database tables used by Microsoft Dynamics AX for Retail POS. All the decimal values, amounts, and quantities are positive values unless stated otherwise.

Table: CURRENCY
Column CURRENCYCODE RECID ROUNDOFFPRICE ROUNDOFFSALES ROUNDOFFTYPESALES SYMBOL DATAAREAID Data type Nvarchar(3) Bigint Numeric(32,16) Numeric(32,16) Int Nvarchar(5) Nvarchar(4) X Primary key X

Table: CUSTGROUP
Column CUSTGROUP NAME RECID DATAAREAID Data type Nvarchar(10) Nvarchar(60) Bigint Nvarchar(4) X Primary key X

Table: CUSTTABLE
Column ACCOUNTNUM BLOCKED CASHDISC CURRENCY CUSTGROUP ENDDISC DENTIFICATIONNUMBER INCLTAX INVOICEACCOUNT LINEDISC MULTILINEDISC Data type Nvarchar(20) Int Nvarchar(10) Nvarchar(3) Nvarchar(10) Nvarchar(10) Nvarchar(50) Int Nvarchar(20) Nvarchar(10) Nvarchar(10) Primary key X

Retail POS Technical Reference

51

Microsoft Dynamics AX

Column PARTY PAYMTERMID PRICEGROUP RECID TAXGROUP DATAAREAID

Data type Bigint Nvarchar(10) Nvarchar(10) Bigint Nvarchar(10) Nvarchar(4)

Primary key

X

Table: DIRADDRESSBOOK
Column DESCRIPTION NAME RECID Data type Nvarchar(60) Nvarchar(10) Bigint X Primary key

Table: DIRADDRESSBOOK
Column ADDRESSBOOK PARTY RECID VALIDFROM VALIDTO Data type Bigint Bigint Bigint Datetime Datetime X Primary key

Table: DIRPARTYLOCATION
Column ATTENTIONTOADDRESSLINE ISLOCATIONOWNER ISPOSTALADDRESS ISPRIMARY ISPRIVATE LOCATION PARTY RECID VALIDFROM Data type Nvarchar(255) Int Int Int Int Bigint Bigint Bigint Datetime X Primary key

52

Retail POS Technical Reference

Column VALIDTO

Data type Datetime

Primary key

Table: DIRPARTYLOCATIONROLE
Column LOCATIONROLE PARTYLOCATION RECID Data type Bigint Bigint Bigint X Primary key

Table: DIRPARTYTABLE
Column INSTANCERELATIONTYPE KNOWNAS LANGUAGEID MEMO NAME NAMEALIAS PARTYNUMBER RECID Data type Bigint Nvarchar(100) Nvarchar(7) Nvarchar(0) Nvarchar(100) Nvarchar(20) Nvarchar(40) Bigint X Primary key

Table: DLVMODE
Column CODE RECID HIPCARRIERACCOUNTCODE SHIPCARRIERDLVTYPE SHIPCARRIERID SHIPCARRIERNAME TXT DATAAREAID Data type Nvarchar(10) Bigint Nvarchar(20) Int Nvarchar(10) Nvarchar(20) Nvarchar(60) Nvarchar(4) X Primary key X

Retail POS Technical Reference

53

Microsoft Dynamics AX

Table: ECORESCATEGORY
Column CATEGORYHIERARCHY CHANGESTATUS CODE CREATEDBY CREATEDDATETIME EFAULTPROJECTGLOBALCATEGORY INSTANCERELATIONTYPE ISACTIVE ISCATEGORYATTRIBUTESINHERITED ISTANGIBLE MODIFIEDBY MODIFIEDDATETIME NAME NESTEDSETLEFT NESTEDSETRIGHT PARENTCATEGORY RECID RECVERSION RELATIONTYPE Data type Bigint Int Nvarchar(20) Nvarchar(8) Datetime Bigint Bigint Int Int Int Nvarchar(8) Datetime Nvarchar(254) Bigint Bigint Bigint Bigint Int Bigint X Primary key

Table: ECORESCOLOR
Column NAME RECID Data type Nvarchar(10) Bigint X Primary key

Table: ECORESCONFIGURATION
Column NAME RECID Data type Nvarchar(10) Bigint X Primary key

54

Retail POS Technical Reference

Table: ECORESPRODUCT
Column DISPLAYPRODUCTNUMBER INSTANCERELATIONTYPE PRODUCTTYPE RECID RECVERSION RELATIONTYPE SEARCHNAME Data type Nvarchar(70) Bigint Int Bigint Int Bigint Nvarchar(20) X Primary key

Table: ECORESPRODUCTCATEGORY
Column CATEGORY CATEGORYHIERARCHY MODIFIEDDATETIME PRODUCT RECID RECVERSION Data type Bigint Bigint Datetime Bigint Bigint Int X Primary key

Table: ECORESPRODUCTMASTERCOLOR
Column COLOR OLORPRODUCTDIMENSIONATTRIBUTE COLORPRODUCTMASTER RECID Data type Bigint Bigint Bigint Bigint X Primary key

Table: ECORESPRODUCTMASTERCONFIGURATION
Column CONFIGPRODUCTDIMENSIONATTRIBUTE CONFIGPRODUCTMASTER CONFIGURATION RECID Data type Bigint Bigint Bigint Bigint X Primary key

Retail POS Technical Reference

55

Microsoft Dynamics AX

Table: ECORESPRODUCTMASTERDIMENSIONVALUE
Column ADDITIONALDESCRIPTION DESCRIPTION INSTANCERELATIONTYPE RECID RETAILWEIGHT Data type Nvarchar(1000) Nvarchar(60) Bigint Bigint Int X Primary key

Table: ECORESPRODUCTMASTERSIZE
Column RECID SIZE_ SIZEPRODUCTDIMENSIONATTRIBUTE SIZEPRODUCTMASTER Data type Bigint Bigint Bigint Bigint Primary key X

Table: ECORESPRODUCTMASTERSTYLE
Column RECID STYLE STYLEPRODUCTDIMENSIONATTRIBUTE STYLEPRODUCTMASTER Data type Bigint Bigint Bigint Bigint Primary key X

Table: ECORESPRODUCTTRANSLATION
Column DESCRIPTION LANGUAGEID NAME PRODUCT RECID RECVERSION Data type Nvarchar(1000) Nvarchar(7) Nvarchar(60) Bigint Bigint Int X Primary key

56

Retail POS Technical Reference

Table: ECORESSIZE
Column NAME RECID Data type Nvarchar(10) Bigint X Primary key

Table: ECORESSTYLE
Column NAME RECID Data type Nvarchar(10) Bigint X Primary key

Table: ECORESTRACKINGDIMENSIONGROUPFLDSETUP
Column ISALLOWBLANKISSUEENABLED RECID TRACKINGDIMENSIONGROUP Data type Int Bigint Bigint X Primary key

Table: ECORESTRACKINGDIMENSIONGROUPITEM
Column ITEMDATAAREAID ITEMID RECID RACKINGDIMENSIONGROUP Data type Nvarchar(4) Nvarchar(20) Bigint Bigint X Primary key

Table: ECORESTRACKINGDIMENSIONGROUPPRODUCT
Column PRODUCT RECID RACKINGDIMENSIONGROUP Data type Bigint Bigint Bigint X Primary key

Table: EXCHANGERATE
Column EXCHANGERATE Data type Numeric(32,16) Primary key

Retail POS Technical Reference

57

Microsoft Dynamics AX

Column EXCHANGERATECURRENCYPAIR MODIFIEDDATETIME RECID RECVERSION VALIDFROM VALIDTO

Data type Bigint Datetime Bigint Int Datetime Datetime X

Primary key

Table: EXCHANGERATECURRENCYPAIR
Column EXCHANGERATEDISPLAYFACTOR EXCHANGERATETYPE FROMCURRENCYCODE MODIFIEDDATETIME RECID RECVERSION TOCURRENCYCODE Data type Int Bigint Nvarchar(3) Datetime Bigint Int Nvarchar(3) X Primary key

Table: EXCHANGERATETYPE
Column DESCRIPTION NAME RECID RECVERSION Data type Nvarchar(60) Nvarchar(20) Bigint Int X Primary key

Table: HCMJOB
Column JOBID MAXIMUMPOSITIONS RECID Data type Nvarchar(25) Int Bigint X Primary key

58

Retail POS Technical Reference

Table: HCMPOSITION
Column POSITIONID RECID Data type Nvarchar(25) Bigint X Primary key

Table: HCMPOSITIONDETAIL
Column COMPLOCATION DEPARTMENT DESCRIPTION ULLTIMEEQUIVALENCY JOB POSITION POSITIONTYPE RECID TITLE VALIDFROM VALIDTO Data type Bigint Bigint Nvarchar(60) Numeric(32,16) Bigint Bigint Bigint Bigint Bigint Datetime Datetime X Primary key

Table: HCMPOSITIONWORKERASSIGNMENT
Column ASSIGNMENTREASONCODE POSITION RECID VALIDFROM VALIDTO WORKER Data type Bigint Bigint Bigint Datetime Datetime Bigint X Primary key

Table: HCMWORKER
Column PERSON PERSONNELNUMBER RECID Data type Bigint Nvarchar(25) Bigint X Primary key

Retail POS Technical Reference

59

Microsoft Dynamics AX

Table: INVENTDIM
Column CONFIGID INVENTBATCHID INVENTCOLORID INVENTDIMID INVENTLOCATIONID INVENTSERIALID INVENTSIZEID INVENTSTYLEID RECID WMSLOCATIONID DATAAREAID Data type Nvarchar(10) Nvarchar(20) Nvarchar(10) Nvarchar(20) Nvarchar(10) Nvarchar(20) Nvarchar(10) Nvarchar(10) Bigint Nvarchar(10) Nvarchar(4) X X Primary key

Table: INVENTDIMCOMBINATION
Column DISTINCTPRODUCTVARIANT INVENTDIMID ITEMID RECID RETAILVARIANTID DATAAREAID Data type Bigint Nvarchar(20) Nvarchar(20) Bigint Nvarchar(10) Nvarchar(4) X X X Primary key

Table: INVENTITEMBARCODE
Column BLOCKED DESCRIPTION INVENTDIMID ITEMBARCODE ITEMID MODIFIEDDATE QTY RBOVARIANTID RECID UNITID Data type Int Nvarchar(60) Nvarchar(20) Nvarchar(80) Nvarchar(20) Datetime Numeric(32,16) Nvarchar(10) Bigint Nvarchar(10) X Primary key

60

Retail POS Technical Reference

Column DATAAREAID

Data type Nvarchar(4)

Primary key X

Table: INVENTITEMGROUP
Column ITEMGROUPID NAME RECID DATAAREAID Data type Nvarchar(10) Nvarchar(60) Bigint Nvarchar(4) X Primary key X

Table: INVENTITEMGROUPITEM
Column ITEMDATAAREAID ITEMGROUPDATAAREAID ITEMGROUPID ITEMID RECID Data type Nvarchar(4) Nvarchar(4) Nvarchar(10) Nvarchar(20) Bigint X Primary key

Table: INVENTSERIAL
Column DESCRIPTION INVENTSERIALID ITEMID PRODDATE RECID RFIDTAGID DATAAREAID Data type Nvarchar(0) Nvarchar(20) Nvarchar(20) Datetime Bigint Nvarchar(24) Nvarchar(4) X X X Primary key

Table: INVENTTABLE
Column ITEMID PRODUCT RECID Data type Nvarchar(20) Bigint Bigint Primary key X

Retail POS Technical Reference

61

Microsoft Dynamics AX

Column DATAAREAID

Data type Nvarchar(4)

Primary key X

Table: INVENTTABLEMODULE
Column ENDDISC ITEMID LINEDISC MODULETYPE MULTILINEDISC PRICE RECID TAXITEMGROUPID UNITID DATAAREAID Data type Int Nvarchar(20) Nvarchar(10) Int Nvarchar(10) Numeric(32,16) Bigint Nvarchar(10) Nvarchar(10) Nvarchar(4) X X X Primary key

Table: LEDGER
Column ACCOUNTINGCURRENCY BUDGETEXCHANGERATETYPE CHARTOFACCOUNTS DEFAULTEXCHANGERATETYPE DESCRIPTION FISCALCALENDAR ISBUDGETCONTROLENABLED NAME PRIMARYFORLEGALENTITY RECID RECVERSION REPORTINGCURRENCY Data type Nvarchar(3) Bigint Bigint Bigint Nvarchar(60) Bigint Int Nvarchar(20) Bigint Bigint Int Nvarchar(3) X Primary key

Table: LOGISTICSADDRESSCOUNTRYREGION
Column ADDRESSUSEZIPPLUS4 ADDRFORMAT Data type Int Nvarchar(10) Primary key

62

Retail POS Technical Reference

Column COUNTRYREGIONID CURRENCYCODE ISIMMUTABLE ISOCODE RECID RECVERSION TIMEZONE

Data type Nvarchar(10) Nvarchar(3) Int Nvarchar(2) Bigint Int Int

Primary key X

Table: LOGISTICSADDRESSCOUNTRYREGIONTRANSLATION
Column COUNTRYREGIONID LANGUAGEID LONGNAME RECID SHORTNAME Data type Nvarchar(10) Nvarchar(7) Nvarchar(255) Bigint Nvarchar(255) X Primary key

Table: LOGISTICSADDRESSCOUNTY
Column COUNTRYREGIONID COUNTYCODE_SP COUNTYID NAME RECID STATEID Data type Nvarchar(10) Nvarchar(2) Nvarchar(10) Nvarchar(60) Bigint Nvarchar(10) X X Primary key X

Table: LOGISTICSADDRESSDISTRICT
Column CITY DESCRIPTION NAME RECID Data type Bigint Nvarchar(60) Nvarchar(60) Bigint X Primary key

Retail POS Technical Reference

63

Microsoft Dynamics AX

Table: LOGISTICSADDRESSSCITY
Column COUNTRYREGIONID COUNTYID DESCRIPTION NAME RECID STATEID Data type Nvarchar(10) Nvarchar(10) Nvarchar(60) Nvarchar(60) Bigint Nvarchar(10) X Primary key

Table: LOGISTICSADDRESSSTATE
Column COUNTRYREGIONID INTRASTATCODE NAME RECID RECVERSION STATEID TIMEZONE Data type Nvarchar(10) Nvarchar(10) Nvarchar(60) Bigint Int Nvarchar(10) Int X Primary key X

Table: LOGISTICSADDRESSZIPCODE
Column CITY CITYALIAS CITYRECID COUNTRYREGIONID COUNTY DISTRICT DISTRICTNAME EVENODD FROMNUM RECID RECVERSION STATE STREETNAME TIMEZONE Data type Nvarchar(60) Nvarchar(30) Bigint Nvarchar(10) Nvarchar(10) Bigint Nvarchar(60) Int Int Bigint Int Nvarchar(10) Nvarchar(60) Int X Primary key

64

Retail POS Technical Reference

Column TONUM ZIPCODE

Data type Int Nvarchar(10)

Primary key

Table: LOGISTICSELECTRONICADDRESS
Column COUNTRYREGIONCODE LOCATION LOCATOR LOCATOREXTENSION RECID TYPE VALIDFROM VALIDTO Data type Nvarchar(5) Bigint Nvarchar(255) Nvarchar(10) Bigint Int Datetime Datetime X Primary key

Table: LOGISTICSLOCATION
Column DESCRIPTION DUNSNUMBERRECID ISPOSTALADDRESS LOCATIONID PARENTLOCATION RECID Data type Nvarchar(60) Bigint Int Nvarchar(30) Bigint Bigint X Primary key

Table: LOGISTICSLOCATIONEXT
Column LOCATION RECID SALESCALENDARID TAXGROUP DATAAREAID Data type Bigint Bigint Nvarchar(10) Nvarchar(10) Nvarchar(4) X Primary key

Retail POS Technical Reference

65

Microsoft Dynamics AX

Table: LOGISTICSLOCATIONROLE
Column ISCONTACTINFO ISPOSTALADDRESS NAME RECID TYPE Data type Int Int Nvarchar(40) Bigint Int X Primary key

Table: LOGISTICSLOCATIONROLETRANSLATION
Column DESCRIPTION LANGUAGEID LOCATIONROLE RECID Data type Nvarchar(255) Nvarchar(7) Bigint Bigint X Primary key

Table: LOGISTICSPOSTALADDRESS
Column ADDRESS BUILDINGCOMPLIMENT CITY CITYRECID COUNTRYREGIONID COUNTY DISTRICT DISTRICTNAME LATITUDE LOCATION LONGITUDE MODIFIEDDATETIME POSTBOX RECID RECVERSION STATE STREET STREETNUMBER Data type Nvarchar(250) Nvarchar(60) Nvarchar(60) Bigint Nvarchar(10) Nvarchar(10) Bigint Nvarchar(60) Numeric(32,16) Bigint Numeric(32,16) Datetime Nvarchar(20) Bigint Int Nvarchar(10) Nvarchar(250) Nvarchar(20) X Primary key

66

Retail POS Technical Reference

Column TIMEZONE VALIDFROM VALIDTO ZIPCODE ZIPCODERECID

Data type Int Datetime Datetime Nvarchar(10) Bigint

Primary key

Table: MARKUPTABLE
Column CUSTOMERLEDGERDIMENSION CUSTPOSTING CUSTTYPE INTRASTAT_FI ISLETTEROFCREDIT_SA MARKUPCODE MAXAMOUNT MODULETYPE RECID RETAILCONCESSIONFEE TAXITEMGROUP TXT USEINMATCHING VENDORLEDGERDIMENSION VENDPOSTING VENDTYPE DATAAREAID Data type Bigint Int Int Int Int Nvarchar(10) Numeric(32,16) Int Bigint Int Nvarchar(10) Nvarchar(60) Int Bigint Int Int Nvarchar(4) X X X Primary key

Table: OMOPERATINGUNIT
Column HCMWORKER OMOPERATINGUNITNUMBER OMOPERATINGUNITTYPE RECID Data type Bigint Nvarchar(8) Int Bigint X Primary key

Retail POS Technical Reference

67

Microsoft Dynamics AX

Table: POSDISCVALIDATIONPERIOD
Column DESCRIPTION ENDINGTIME ENDTIMEAFTERMID FRIAFTERMIDNIGHT FRIENDINGTIME FRISTARTINGTIME FRIWITHINBOUNDS ID MONAFTERMIDNIGHT MONENDINGTIME MONSTARTINGTIME MONWITHINBOUNDS RECID SATAFTERMIDNIGHT SATENDINGTIME SATSTARTINGTIME SATWITHINBOUNDS STARTINGTIME SUNAFTERMIDNIGHT SUNENDINGTIME SUNSTARTINGTIME SUNWITHINBOUNDS THUAFTERMIDNIGHT THUENDINGTIME THUSTARTINGTIME THUWITHINBOUNDS TIMEWITHINBOUNDS TUEAFTERMIDNIGHT TUEENDINGTIME TUESTARTINGTIME TUEWITHINBOUNDS VALIDFROM VALIDTO WEDAFTERMIDNIGHT WEDENDINGTIME Data type Nvarchar(60) Int Int Int Int Int Int Nvarchar(10) Int Int Int Int Bigint Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Datetime Datetime Int Int X Primary key

68

Retail POS Technical Reference

Column WEDSTARTINGTIME WEDWITHINBOUNDS DATAAREAID

Data type Int Int Nvarchar(4)

Primary key

X

Table: POSMULTIBUYDISCOUNTLINE
Column MINQUANTITY OFFERID RECID UNITPRICEORDISCPCT DATAAREAID Data type Decimal(32,16) Nvarchar(40) Bigint Decimal(32,16) Nvarchar(4) X X Primary key

Table: POSSEEDVALUES
Column STOREID TERMINALID TYPEID VALUE DATAAREAID Data type Nvarchar(10) Nvarchar(10) Int Bigint Nvarchar(4) X Primary key X X X

Table: PRICEDISCGROUP
Column GROUPID MODULE NAME RECID TYPE DATAAREAID Data type Nvarchar(10) Int Nvarchar(60) Bigint Int Nvarchar(4) X X Primary key X X

Table: PRICEDISCTABLE
Column ACCOUNTCODE Data type Int Primary key

Retail POS Technical Reference

69

Microsoft Dynamics AX

Column ACCOUNTRELATION ALLOCATEMARKUP AMOUNT CURRENCY FROMDATE GENERICCURRENCY INVENTDIMID ITEMCODE ITEMRELATION MARKUP MODULE PERCENT1 PERCENT2 PRICEINCLVAT PRICEUNIT QUANTITYAMOUNTFROM QUANTITYAMOUNTTO RECID RELATION SEARCHAGAIN TODATE UNITID DATAAREAID

Data type Nvarchar(20) Int Numeric(32,16) Nvarchar(3) Datetime Int Nvarchar(20) Int Nvarchar(20) Numeric(32,16) Int Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Bigint Int Int Datetime Nvarchar(10) Nvarchar(4)

Primary key

X

Table: PRICEPARAMETERS
Column KEY_ RECID SALESENDACCOUNTALL SALESENDALLALL SALESENDGROUPALL SALESLINEACCOUNTALL SALESLINEACCOUNTGROUP SALESLINEACCOUNTITEM SALESLINEALLALL SALESLINEALLGROUP Data type Int Bigint Int Int Int Int Int Int Int Int Primary key X

70

Retail POS Technical Reference

Column SALESLINEALLITEM SALESLINEGROUPALL SALESLINEGROUPGROUP SALESLINEGROUPITEM SALESMULTILNACCOUNTALL SALESMULTILNACCOUNTGROUP SALESMULTILNALLALL SALESMULTILNALLGROUP SALESMULTILNGROUPALL SALESMULTILNGROUPGROUP SALESPRICEACCOUNTITEM SALESPRICEALLITEM SALESPRICEGROUPITEM DATAAREAID

Data type Int Int Int Int Int Int Int Int Int Int Int Int Int Nvarchar(4)

Primary key

X

Table: RETAILASSORTMENTEXPLODED
Column ASSORTMENTRECID CREATEDDATETIME INVENTDIMID ITEMID MODIFIEDDATETIME OMOPERATINGUNITID RECID VALIDFROM VALIDTO Data type Bigint Datetime Nvarchar(20) Nvarchar(20) Datetime Bigint Bigint Datetime Datetime X Primary key

Table: RETAILBARCODEMASKCHARACTER
Column CHARACTER CHARACTERTYPE COMMENT_ RECID DATAAREAID Data type Nvarchar(1) Int Nvarchar(50) Bigint Nvarchar(4) X X Primary key

Retail POS Technical Reference

71

Microsoft Dynamics AX

Table: RETAILBARCODEMASKSEGMENT
Column DECIMALS LENGTH MASKID RECID SEGMENTNUM TYPE DATAAREAID Data type Int Numeric(32,16) Nvarchar(10) Bigint Int Int Nvarchar(4) X X X Primary key

Table: RETAILBARCODEMASKTABLE
Column DESCRIPTION MASK MASKID PREFIX RECID SYMBOLOGY TYPE DATAAREAID Data type Nvarchar(50) Nvarchar(22) Nvarchar(10) Nvarchar(22) Bigint Int Int Nvarchar(4) X X Primary key

Table: RETAILBUTTONGRID
Column BUTTONGRIDID DEFAULTCOLOR DEFAULTFONTSIZE DEFAULTFONTSTYLE FONT KEYBOARDUSED NAME RECID SPACEBETWEENBUTTONS Data type Nvarchar(10) Int Int Int Nvarchar(32) Nvarchar(10) Nvarchar(50) Bigint Int Primary key X

72

Retail POS Technical Reference

Table: RETAILBUTTONGRIDBUTTONS
Column ACTION ACTIONPROPERTY BUTTONGRIDID COL COLOUR COLSPAN DISPLAYTEXT FONTSIZE FONTSTYLE ID IMAGEALIGNMENT PICTUREID RECID ROWNUM ROWSPAN Data type Int Nvarchar(1000) Nvarchar(10) Int Int Int Nvarchar(50) Int Int Int Int Int Bigint Int Int X X Primary key

Table: RETAILCATEGORYCONTAINMENTLOOKUP
Column CATEGORY CONTAINEDCATEGORY RECID Data type Bigint Bigint Bigint X Primary key

Table: RETAILCHANNELPRICEGROUP
Column PRICEGROUP RECID RETAILCHANNEL Data type Bigint Bigint Bigint X Primary key

Table: RETAILCHANNELTABLE
Column CHANNELTYPE INSTANCERELATIONTYPE Data type Int Bigint Primary key

Retail POS Technical Reference

73

Microsoft Dynamics AX

Column OMOPERATINGUNITID PRICEINCLUDESSALESTAX RECID

Data type Bigint Int Bigint

Primary key

X

Table: RETAILCUSTTABLE
Column ACCOUNTNUM RECEIPTEMAIL RECEIPTOPTION RECID DATAAREAID Data type Nvarchar(20) Nvarchar(80) Int Bigint Nvarchar(4) X Primary key X

Table: RETAILDISCOUNTCODE
Column BARCODE DISCOUNTCODE DISCOUNTOFFERID RECID DATAAREAID Data type Nvarchar(80) Nvarchar(15) Nvarchar(20) Bigint Nvarchar(4) X Primary key

Table: RETAILDISCOUNTLINEMIXANDMATCH
Column BLOCKED DISCOUNTTYPE LINEGROUP MANDATORY NUMBEROFITEMSNEEDED RECID RELATIONTYPE DATAAREAID Data type Int Int Nvarchar(10) Int Int Bigint Bigint Nvarchar(4) X Primary key

74

Retail POS Technical Reference

Table: RETAILDISCOUNTLINEMULTIBUY
Column RECID RELATIONTYPE DATAAREAID Data type Bigint Bigint Nvarchar(4) Primary key X

Table: RETAILDISCOUNTLINEOFFER
Column DISCAMOUNT DISCAMOUNTINCLTAX DISCOUNTMETHOD DISCOUNTVALUE DISCPCT OFFERPRICE OFFERPRICEINCLTAX QTYONHAND RECID RELATIONTYPE DATAAREAID Data type Numeric(32,16) Numeric(32,16) Int Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Bigint Bigint Nvarchar(4) X Primary key

Table: RETAILDISCOUNTMIXANDMATCH
Column DEALPRICEVALUE DIFFERENTSAMEMANDMLINES DISCOUNTAMOUNTVALUE MIXANDMATCHDISCOUNTTYPE NOOFLEASTEXPENSIVELINES NUMBEROFTIMESAPPLICABLE RECID RELATIONTYPE DATAAREAID Data type Numeric(32,16) Int Numeric(32,16) Int Int Int Bigint Bigint Nvarchar(4) X Primary key

Retail POS Technical Reference

75

Microsoft Dynamics AX

Table: RETAILDISCOUNTMULTIBUY
Column MULTIBUYDISCOUNTTYPE RECID RELATIONTYPE DATAAREAID Data type Int Bigint Bigint Nvarchar(4) X Primary key

Table: RETAILDISCOUNTOFFER
Column DISCONPOS RECID RELATIONTYPE DATAAREAID Data type Int Bigint Bigint Nvarchar(4) X Primary key

Table: RETAILERRORS
Column ACTIVE CODEUNIT DATECREATED DATEUPDATED DESCRIPTION ERRORID ERRORMESSAGEID FIRSTINVERSION RECID Data type Int Nvarchar(100) Datetime Datetime Nvarchar(255) Int Int Nvarchar(20) Bigint X X Primary key

Table: RETAILFORMLAYOUT
Column DESCRIPTION FOOTERXML FORMLAYOUTID HEADERXML LAYOUTTYPE LINESXML Data type Nvarchar(255) Nvarchar(0) Nvarchar(10) Nvarchar(0) Int Nvarchar(0) X Primary key

76

Retail POS Technical Reference

Column PRINTASSLIP PRINTBEHAVIOUR PROMPTQUESTION RECID TITLE UPPERCASE USEWINDOWSPRINTER WINDOWSPRINTERNAME

Data type Int Int Int Bigint Nvarchar(30) Int Int Nvarchar(512)

Primary key

Table: RETAILFUNCTIONALITYPROFILE
Column ADDTAXONPRICES AGGREGATEITEMS AGGREGATEITEMSFORPRINTING AGGREGATEPAYMENTS AMOUNTDECIMALPLACES AMOUNTROUNDINGTO BACKUPTRAININGTRANSACTIONS BLOCKEDCLOSEDACCOUNT CENTRALTABLESERVER CENTRALTABLESERVERPORT CURRENCYSYMBOL CUSTOMER CUSTOMER2 DATAENTRIES DAYSTRANSACTIONSEXISTS DISCOUNTATTOTAL DISPLAYSECONDARYTOTALCURRENCY ENDOFTRANSACTION FLOATINGCASHIER INVENTORYLOOKUP ITEMNOTONFILE LIMITSTAFFLISTTOSTORE LINEITEMTAXCHANGE LOGLEVEL MARKDOWN Data type Int Int Int Int Nvarchar(10) Numeric(32,16) Int Int Nvarchar(20) Nvarchar(10) Nvarchar(10) Nvarchar(50) Nvarchar(50) Nvarchar(50) Int Nvarchar(10) Int Nvarchar(10) Nvarchar(50) Nvarchar(50) Nvarchar(10) Int Nvarchar(10) Int Nvarchar(10) Primary key

Retail POS Technical Reference

77

Microsoft Dynamics AX

Column MARKUP MAXIMUMPRICE MAXIMUMQTY MAXIMUMSTORETRANSLOG MINIMUMPASSWORDLENGTH MODIFIEDBY MODIFIEDDATE MULTIBLEITEMSYMBOL MUSTKEYINPRICEIFZERO NAME NEGATIVEADJUSTMENT NEGATIVESALESLINE NOTAXUSED OVERRIDEPRICE PRICEDECIMALPLACES PRICEROUNDINGTO PRINTXREPORTONTERMINAL PROFILEID RECID REFUNDSALE REQUIREAMOUNTDECLARATION SALESPERSON SALESPERSONMODE SECONDARYTOTALCURRENCY SENDTRANSACTION SERIALNUMBER SHOWSTAFFLISTATLOGON SKIPTAXONRECEIPT STAFFBARCODELOGON STAFFCARDLOGON STAFFVALIDATION STARTOFTRANSACTION SUPPORTEDCOUNTRYREGIONISOCODE SUSPENDRETRIEVETRANSACTION TAXREGISTRATIONNUMBERONRECEIPT TENDERDECLARATION TRANSACTIONDELETEREMINDER

Data type Nvarchar(10) Numeric(32,16) Numeric(32,16) Int Int Nvarchar(8) Datetime Nvarchar(10) Int Nvarchar(60) Nvarchar(10) Nvarchar(10) Int Nvarchar(10) Nvarchar(10) Numeric(32,16) Int Nvarchar(10) Bigint Nvarchar(10) Int Nvarchar(10) Int Nvarchar(3) Nvarchar(50) Nvarchar(10) Int Int Int Int Nvarchar(50) Nvarchar(10) Nvarchar(2) Nvarchar(50) Int Nvarchar(10) Int

Primary key

X

78

Retail POS Technical Reference

Column TRANSACTIONTAXCHANGE TSCENTRALTABLESERVER TSCUSTOMER TSDATAENTRIES TSFLOATINGCASHIER TSINVENTORYLOOKUP TSRESENDDELAY TSSENDTRANSACTIONS TSSENDVOIDTRANSACTIONS TSSTAFF TSSUSPENDRETRIEVETRANSACTIONS TSTRANSACTIONRESENDLIMIT TSUPDATEREPLICATIONCOUNTER VOIDISPRESSED VOIDPAYMENT VOIDPOSTEDTRANSACTION VOIDTRANSACTION

Data type Nvarchar(10) Int Int Int Int Int Int Int Int Int Int Int Int Nvarchar(10) Nvarchar(10) Nvarchar(50) Nvarchar(10)

Primary key

Table: RETAILGROUPMEMBERLINE
Column CATEGORY PRODUCT RECID VARIANT Data type Bigint Bigint Bigint Bigint X Primary key

Table: RETAILHARDWAREPROFILE
Column CAPTUREEXTRADATA CASHCHANGER CASHCHANGERINITSETTINGS CASHCHANGERPORTSETTINGS CCTV CCTVCAMERA CCTVHOSTNAME CCTVPORT Data type Int Int Nvarchar(100) Nvarchar(50) Int Nvarchar(60) Nvarchar(60) Int Primary key

Retail POS Technical Reference

79

Microsoft Dynamics AX

Column DELAYFORLINKEDITEMS DISPLAYBALANCETEXT DISPLAYBINCONVERSION DISPLAYCHARACTERSET DISPLAYCLOSEDLINE1 DISPLAYCLOSEDLINE2 DISPLAYDESCRIPTION DISPLAYDEVICE DISPLAYDEVICENAME DISPLAYLINKEDITEM DISPLAYTERMINALCLOSED DISPLAYTOTALTEXT DOCINSERTREMOVALTIMEOUT DRAWER DRAWERDESCRIPTION DRAWERDEVICENAME DUALDISPLAY DUALDISPLAYBROWSERURL DUALDISPLAYIMAGEINTERVAL DUALDISPLAYIMAGEPATH DUALDISPLAYRECEIPTPERCENTAGE DUALDISPLAYTYPE EFT EFTCOMPANYID EFTCONFIGURATION EFTDATA EFTDESCRIPTION EFTMERCHANTID EFTPASSWORD EFTSERVERNAME EFTSERVERPORT EFTUSERID ENDTRACK1 ENDTRACK2 FORMXPOS FORMYPOS HARDTOTAL

Data type Int Nvarchar(60) Int Int Nvarchar(60) Nvarchar(60) Nvarchar(60) Int Nvarchar(60) Int Int Nvarchar(60) Int Int Nvarchar(60) Nvarchar(512) Int Nvarchar(255) Int Nvarchar(259) Numeric(32,16) Int Int Nvarchar(50) Int Nvarchar(128) Nvarchar(60) Nvarchar(25) Nvarchar(16) Nvarchar(80) Nvarchar(10) Nvarchar(60) Nvarchar(5) Nvarchar(1) Int Int Int

Primary key

80

Retail POS Technical Reference

Column HARDTOTALDESCRIPTION HARDTOTALDEVICENAME KEYBOARDMAPPINGID KEYLOCK KEYLOCKDESCRIPTION KEYLOCKDEVICENAME LOGO LOGOALIGNMENT MANUALINPUTALLOWED MAXINVOICELINES MICR MICRDESCRIPTION MICRDRIVERNAME MODIFIEDBY MODIFIEDDATE MSR MSRDESCRIPTION MSRDEVICENAME NAME PINPAD PINPADDESCRIPTION PINPADDEVICENAME PRINTBINARYCONVERSION PRINTER PRINTERCHARACTERSET PRINTERDESCRIPTION PRINTERDEVICENAME PRINTERRECEIPTPROFILEID PROFILEID RECID RFIDDESCRIPTION RFIDDEVICENAME RFIDSCANNERTYPE SCALE SCALEDESCRIPTION SCALEDEVICENAME SCANNER

Data type Nvarchar(60) Nvarchar(512) Nvarchar(10) Int Nvarchar(60) Nvarchar(512) Int Int Int Int Int Nvarchar(60) Nvarchar(30) Nvarchar(8) Datetime Int Nvarchar(60) Nvarchar(512) Nvarchar(60) Int Nvarchar(60) Nvarchar(512) Int Int Int Nvarchar(60) Nvarchar(512) Nvarchar(10) Nvarchar(10) Bigint Nvarchar(60) Nvarchar(512) Int Int Nvarchar(60) Nvarchar(512) Int

Primary key

X

Retail POS Technical Reference

81

Microsoft Dynamics AX

Column SCANNERDESCRIPTION SCANNERDEVICENAME SCREENKEYBOARD SEPARATOR1 SHOWPICTURE STARTTRACK1 STARTTRACK2AFTER TIMEOUTINSEC

Data type Nvarchar(60) Nvarchar(512) Int Nvarchar(1) Int Nvarchar(5) Int Int

Primary key

Table: RETAILIMAGES
Column PICTURE PICTUREID RECID Data type Varbinary Int Bigint X Primary key

Table: RETAILINCOMEEXPENSEACCOUNTTABLE
Column ACCOUNTNUM ACCOUNTTYPE MESSAGELINE1 MESSAGELINE2 NAME NAMEALIAS RECID SLIPTEXT1 SLIPTEXT2 STOREID DATAAREAID Data type Nvarchar(10) Int Nvarchar(30) Nvarchar(30) Nvarchar(60) Nvarchar(20) Bigint Nvarchar(30) Nvarchar(30) Nvarchar(10) Nvarchar(4) X X Primary key X

Table: RETAILINFOCODETABLE
Column DESCRIPTION INFOCODEID INPUTREQUIRED Data type Nvarchar(60) Nvarchar(10) Int X Primary key

82

Retail POS Technical Reference

Column INPUTTYPE LINKEDINFOCODEID MAXIMUMLENGTH MAXIMUMVALUE MINIMUMLENGTH MINIMUMVALUE MODIFIEDBY MODIFIEDDATE ONCEPERTRANSACTION PRINTINPUTNAMEONRECEIPT PRINTINPUTONRECEIPT PRINTPROMPTONRECEIPT PROMPT RANDOMCOUNTER RANDOMFACTOR RECID DATAAREAID

Data type Int Nvarchar(10) Int Numeric(32,16) Int Numeric(32,16) Nvarchar(8) Datetime Int Int Int Int Nvarchar(60) Numeric(32,16) Numeric(32,16) Bigint Nvarchar(4)

Primary key

X

Table: RETAILINFOCODETABLESPECIFIC
Column INFOCODEID INPUTREQUIRED RECID REFRELATION REFRELATION2 REFRELATION3 REFTABLEID SEQUENCE WHENREQUIRED DATAAREAID Data type Nvarchar(10) Int Bigint Nvarchar(20) Nvarchar(20) Nvarchar(20) Int Int Int Nvarchar(4) X X X X X Primary key X

Table: RETAILINFORMATIONSUBCODETABLE
Column AMOUNTPERCENT DESCRIPTION Data type Numeric(32,16) Nvarchar(60) Primary key

Retail POS Technical Reference

83

Microsoft Dynamics AX

Column INFOCODEID NEWSALESLINE PRICETYPE RECID SUBCODEID TRIGGERCODE TRIGGERFUNCTION DATAAREAID

Data type Nvarchar(10) Int Int Bigint Nvarchar(10) Nvarchar(20) Int Nvarchar(4)

Primary key X

X

X

Table: RETAILINVENTLINKEDITEM
Column BLOCKED ITEMID LINKEDITEMID QTY RECID UNIT DATAAREAID Data type Int Nvarchar(20) Nvarchar(20) Numeric(32,16) Bigint Nvarchar(10) Nvarchar(4) X X X X Primary key

Table: RETAILINVENTTABLE
Column BLOCKEDONPOS DATEBLOCKED DATETOACTIVATEITEM DATETOBEBLOCKED ITEMID KEYINGINPRICE KEYINGINQTY MUSTKEYINCOMMENT NODISCOUNTALLOWED QTYBECOMESNEGATIVE RECID SCALEITEM UNITPRICEINCLUDINGTAX ZEROPRICEVALID Data type Int Datetime Datetime Datetime Nvarchar(20) Int Int Int Int Int Bigint Int Numeric(32,16) Int X Primary key

84

Retail POS Technical Reference

Column DATAAREAID

Data type Nvarchar(4)

Primary key X

Table: RETAILJOBPOSPERMISSIONGROUP
Column JOB RECID RETAILPOSPERMISSIONGROUP Data type Bigint Bigint Bigint X Primary key

Table: RETAILKEYBOARDBUTTONCONTROL
Column BUTTONCONTROLID DEFAULTCOLOR DEFAULTFONT DEFAULTFONTSIZE DEFAULTFONTSTYLE NAME RECID DATAAREAID Data type Int Nvarchar(10) Nvarchar(32) Int Int Nvarchar(50) Bigint Nvarchar(4) X Primary key X

Table: RETAILKEYBOARDBUTTONCONTROLB
Column ACTION ACTIONPROPERTY BUTTONCONTROLID COLOUR DISPLAYTEXT FONTSIZE FONTSTYLE ID PICTURE RECID ROWNUM DATAAREAID Data type Int Nvarchar(1000) Int Nvarchar(20) Nvarchar(50) Int Int Int Nvarchar(0) Bigint Int Nvarchar(4) X X Primary key

Retail POS Technical Reference

85

Microsoft Dynamics AX

Table: RETAILKEYBOARDMAPPINGTABLE
Column DESCRIPTION KEYBOARDMAPPINGID RECID ACTION ACTIONPROPERTY ASCIIVALUE KEYBOARDMAPPINGID KEYCHAR RECID Data type Nvarchar(60) Nvarchar(10) Bigint Int Nvarchar(1000) Int Nvarchar(10) Nvarchar(1) Bigint X X X Primary key

Table: RETAILKEYBOARDMAPPINGTRANS
Column DESCRIPTION KEYBOARDMAPPINGID RECID ACTION ACTIONPROPERTY ASCIIVALUE KEYBOARDMAPPINGID KEYCHAR RECID Data type Nvarchar(60) Nvarchar(10) Bigint Int Nvarchar(1000) Int Nvarchar(10) Nvarchar(1) Bigint X X X Primary key

Table: RETAILLANGUAGETEXT
Column ACTIVE DATECREATED DATEUPDATED ERRORTEXT FIRSTINVERSION LANGUAGEID MODULEID RECID TEXT Data type Int Datetime Datetime Int Nvarchar(20) Nvarchar(7) Int Bigint Nvarchar(250) X Primary key

86

Retail POS Technical Reference

Column TEXTID

Data type Int

Primary key X

Table: RETAILLOG
Column CODEUNIT DURATIONINMILLISEC ID LOGDATE LOGLEVEL LOGSTRING STOREID TERMINALID Data type Nvarchar(100) Int Int Datetime Int Nvarchar(0) Nvarchar(10) Nvarchar(10) X Primary key

Table: RETAILLOYALTYCUSTTABLE
Column ACCOUNTNUM CREATEDBY CREATEDDATE CUSTNAME LOYALTYCUSTID MODIFIEDBY MODIFIEDDATE RECID DATAAREAID Data type Nvarchar(20) Nvarchar(8) Datetime Nvarchar(60) Nvarchar(10) Nvarchar(8) Datetime Bigint Nvarchar(4) X X Primary key

Table: RETAILLOYALTYMSRCARDTABLE
Column CARDNUMBER CREATEDBY CREATEDDATE EXPIREDPOINTS ISSUEDPOINTS LINKID LINKTYPE Data type Nvarchar(30) Nvarchar(8) Datetime Numeric(32,16) Numeric(32,16) Nvarchar(10) Int Primary key X

Retail POS Technical Reference

87

Microsoft Dynamics AX

Column LOYALTYCUSTID LOYALTYSCHEMEID LOYALTYTENDER MODIFIEDBY MODIFIEDDATE POINTSTATUS RECID USEDPOINTS DATAAREAID

Data type Nvarchar(10) Nvarchar(10) Int Nvarchar(8) Datetime Numeric(32,16) Bigint Numeric(32,16) Nvarchar(4)

Primary key

X

Table: RETAILLOYALTYMSRCARDTRANS
Column CARDNUMBER CREATEDBY CREATEDDATE DATEOFISSUE ENTRYTYPE EXPIRATIONDATE LINENUM LOYALTYCUSTID LOYALTYPOINTTRANSLINENUM LOYALTYSCHEMEID MODIFIEDBY MODIFIEDDATE POINTS RECEIPTID RECID SEQUENCENUMBER STAFFID STATEMENTCODE STATEMENTID STOREID TERMINALID TRANSACTIONID DATAAREAID Data type Nvarchar(30) Nvarchar(8) Datetime Datetime Int Datetime Numeric(32,16) Nvarchar(10) Numeric(32,16) Nvarchar(10) Nvarchar(8) Datetime Numeric(32,16) Nvarchar(18) Bigint Int Nvarchar(25) Nvarchar(25) Nvarchar(20) Nvarchar(10) Nvarchar(10) Nvarchar(10) Nvarchar(4) X X Primary key X

88

Retail POS Technical Reference

Table: RETAILLOYALTYPOINTSTABLE
Column BASECALCULATIONON CONTACTSEGMENT_EDIT CUSTOMERGROUP_EDIT LOYALTYSCHEMEID POINTS PRODUCTTENDERTYPE QTYAMOUNTLIMIT RECID RETAILGROUPMEMBERLINE RETAILTENDERTYPEID VALIDFROM VALIDTO DATAAREAID Data type Int Nvarchar(20) Nvarchar(10) Nvarchar(10) Numeric(32,16) Int Numeric(32,16) Bigint Bigint Nvarchar(10) Datetime Datetime Nvarchar(4) X Primary key

Table: RETAILLOYALTYSCHEMESTABLE
Column CALCULATIONCODEUNIT_EDIT CALCULATIONTYPE CARDFLITER_EDIT CARDNUMBERLENGTH CARDREGISTRATION CREATEDBY CREATEDDATE CUSTOMERNOLINK_LINKSTOCUS20017 DATEFILTER DESCRIPTION DISPLAYMESSAGEONPOS EXPIRATIONCALCULATION EXPIRATIONTIMEUNIT EXPIRATIONTIMEVALUE LOYALTYSCHEMEID LOYALTYTENDERTYPE MODIFIEDBY MODIFIEDDATE Data type Int Int Nvarchar(10) Int Int Nvarchar(8) Datetime Nvarchar(20) Datetime Nvarchar(60) Int Datetime Int Int Nvarchar(10) Nvarchar(10) Nvarchar(8) Datetime Primary key

Retail POS Technical Reference

89

Microsoft Dynamics AX

Column RECID SHOWPOINTSONRECIEPT STARTINGCARDNO_EDIT DATAAREAID

Data type Bigint Int Nvarchar(10) Nvarchar(4)

Primary key X

X

Table: RETAILMIXANDMATCHLINEGROUPS
Column DISCOUNTLINECOLORID MIXANDMATCHID MIXANDMATCHLINEGROUP NUMBEROFITEMSNEEDED RECID DATAAREAID Data type Int Nvarchar(20) Nvarchar(10) Int Bigint Nvarchar(4) X X X Primary key

Table: RETAILOFFLINEPROFILE
Column DESCRIPTION NAME RECID Data type Nvarchar(256) Nvarchar(10) Bigint X Primary key

Table: RETAILOFFLINEPROFILESCOPES
Column PROFILEID RECID SCOPEID Data type Bigint Bigint Bigint X Primary key

Table: RETAILOFFLINESCOPE
Column DESCRIPTION LASTSYNCTIME RECID SYNCDIRECTION Data type Nvarchar(256) Datetime Bigint Int X Primary key

90

Retail POS Technical Reference

Column SYNCFREQUENCY

Data type Int

Primary key

Table: RETAILOFFLINESCOPETABLES
Column RECID SCOPEID SYNCTABLEID Data type Bigint Bigint Bigint Primary key X

Table: RETAILOFFLINETABLE
Column RECID TABLENAME Data type Bigint Nvarchar(50) Primary key X

Table: RETAILOFFLINETABLECOLUMNS
Column RECID SYNCCOLUMNNAME SYNCTABLE Data type Bigint Nvarchar(40) Bigint Primary key X

Table: RETAILOPERATIONS
Column CHECKUSERACCESS OPERATIONID OPERATIONNAME PERMISSIONID PERMISSIONID2 RECID USEROPERATION Data type Int Int Nvarchar(50) Int Int Bigint Int X Primary key

Retail POS Technical Reference

91

Microsoft Dynamics AX

Table: RETAILPARAMETERS
Column CANCELLATIONCHARGE CANCELLATIONCHARGECODE DEFAULTORDERTYPE EXPIRATIONDATE KEY_ MINIMUMDEPOSITFORSALESORDER PICKUPDELIVERYMODECODE RECEIPTOPTION RECID SHIPPINGCHARGECODE DATAAREAID Data type Numeric(32,16) Nvarchar(10) Int Int Int Numeric(32,16) Nvarchar(10) Int Bigint Nvarchar(10) Nvarchar(4) X X Primary key

Table: RETAILPERIODICDISCOUNT
Column CONCURRENCYMODE CURRENCYCODE DATEVALIDATIONTYPE DISCOUNTPERCENTVALUE INSTANCERELATIONTYPE ISDISCOUNTCODEREQUIRED NAME OFFERID PERIODICDISCOUNTTYPE PRICEDISCGROUP PRIORITY RECID RELATIONTYPE STATUS VALIDATIONPERIODID VALIDFROM VALIDTO DATAAREAID Data type Int Nvarchar(3) Int Numeric(32,16) Bigint Int Nvarchar(60) Nvarchar(20) Int Bigint Int Bigint Bigint Int Nvarchar(10) Datetime Datetime Nvarchar(4) X Primary key

92

Retail POS Technical Reference

Table: RETAILPERIODICDISCOUNTLINE
Column CURRENCYCODE DISCOUNTPERCENTORVALUE INSTANCERELATIONTYPE ISDISCOUNTCODEREQUIRED LINENUM NAME OFFERID RECID RELATIONTYPE RETAILGROUPMEMBERLINE STATUS UNITOFMEASURE DATAAREAID Data type Nvarchar(3) Numeric(32,16) Bigint Int Numeric(32,16) Nvarchar(60) Nvarchar(20) Bigint Bigint Bigint Int Bigint Nvarchar(4) X Primary key

Table: RETAILPERMISSIONS
Column PERMISSIONID PERMISSIONNAME RECID Data type Int Nvarchar(100) Bigint Primary key X

Table: RETAILPOSBATCHACCOUNTTRANS
Column ACCOUNTNUM ACCOUNTTYPE AMOUNT BATCHID DATAAREAID REPLICATIONCOUNTER STOREID TERMINALID Data type Nvarchar(10) Int Numeric(32,16) Bigint Nvarchar(4) Int Nvarchar(10) Nvarchar(10) X X X X Primary key X

Retail POS Technical Reference

93

Microsoft Dynamics AX

Table: RETAILPOSBATCHTABLE
Column BATCHID CLOSEDATE CLOSEDATETIMEUTC CLOSETIME CUSTOMERSCOUNT DATAAREAID DISCOUNTTOTAL LOGONSCOUNT NOSALECOUNT PAIDTOACCOUNTTOTAL REPLICATIONCOUNTER RETURNSTOTAL ROUNDEDAMOUNTTOTAL SALESCOUNT SALESTOTAL STAFFID STARTDATE STARTDATETIMEUTC STARTTIME STATUS STOREID TAXTOTAL TERMINALID TRANSACTIONSCOUNT VOIDSCOUNT Data type Bigint Datetime Datetime Int Int Nvarchar(4) Numeric(32,16) Int Int Numeric(32,16) Int Numeric(32,16) Numeric(32,16) Int Numeric(32,16) Nvarchar(25) Datetime Datetime Int Int Nvarchar(10) Numeric(32,16) Nvarchar(10) Int Int X X X Primary key X

Table: RETAILPOSBATCHTENDERTRANS
Column ADDTOTENDERAMOUNT ADDTOTENDERAMOUNTCUR BANKDROPAMOUNT BANKDROPAMOUNTCUR BATCHID CARDTYPEID Data type Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Bigint Nvarchar(10) X X Primary key

94

Retail POS Technical Reference

Column CHANGEAMOUNT CHANGEAMOUNTCUR COUNT COUNTINGREQUIRED CURRENCY DATAAREAID DECLARETENDERAMOUNT DECLARETENDERAMOUNTCUR REMOVETENDERAMOUNT REMOVETENDERAMOUNTCUR REPLICATIONCOUNTER SAFEDROPAMOUNT SAFEDROPAMOUNTCUR STARTINGAMOUNT STARTINGAMOUNTCUR STOREID TENDEREDAMOUNT TENDEREDAMOUNTCUR TENDERTYPEID TERMINALID

Data type Numeric(32,16) Numeric(32,16) Int Int Nvarchar(3) Nvarchar(4) Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Int Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Nvarchar(10) Numeric(32,16) Numeric(32,16) Nvarchar(10) Nvarchar(10)

Primary key

X X

X

X X

Table: RETAILPOSITIONPOSPERMISSION
Column ALLOWBLINDCLOSE ALLOWCHANGENOVOID ALLOWCREATEORDER ALLOWEDITORDER ALLOWFLOATINGTENDERDECLARATION ALLOWMULTIPLELOGINS ALLOWMULTIPLESHIFTLOGON ALLOWOPENDRAWERONLY ALLOWPRICEOVERRIDE ALLOWRETRIEVEORDER ALLOWSALESTAXCHANGE ALLOWTENDERDECLARATION ALLOWTRANSACTIONSUSPENSION Data type Int Int Int Int Int Int Int Int Int Int Int Int Int Primary key

Retail POS Technical Reference

95

Microsoft Dynamics AX

Column ALLOWTRANSACTIONVOIDING ALLOWXREPORTPRINTING ALLOWZREPORTPRINTING MANAGERPRIVILEGES MAXIMUMDISCOUNTPCT MAXLINEDISCOUNTAMOUNT MAXLINERETURNAMOUNT MAXTOTALDISCOUNTAMOUNT MAXTOTALDISCOUNTPCT MAXTOTALRETURNAMOUNT NAME POSITION POSPERMISSIONGROUP RECID USEHANDHELD

Data type Int Int Int Int Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Nvarchar(60) Bigint Bigint Bigint Int

Primary key

X

Table: RETAILPOSPERMISSIONGROUP
Column ALLOWBLINDCLOSE ALLOWCHANGENOVOID ALLOWCREATEORDER ALLOWEDITORDER ALLOWFLOATINGTENDERDECLARATION ALLOWMULTIPLELOGINS ALLOWMULTIPLESHIFTLOGON ALLOWOPENDRAWERONLY ALLOWPRICEOVERRIDE ALLOWRETRIEVEORDER ALLOWSALESTAXCHANGE ALLOWTENDERDECLARATION ALLOWTRANSACTIONSUSPENSION ALLOWTRANSACTIONVOIDING ALLOWXREPORTPRINTING ALLOWZREPORTPRINTING MANAGERPRIVILEGES MAXIMUMDISCOUNTPCT Data type Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Numeric(32,16) Primary key

96

Retail POS Technical Reference

Column MAXLINEDISCOUNTAMOUNT MAXLINERETURNAMOUNT MAXTOTALDISCOUNTAMOUNT MAXTOTALDISCOUNTPCT MAXTOTALRETURNAMOUNT NAME POSPERMISSIONGROUPID RECID USEHANDHELD

Data type Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Nvarchar(60) Nvarchar(10) Bigint Int

Primary key

X

Table: RETAILRECEIPTMASKS
Column FUNCPROFILEID ISINDEPENDENT MASK RECEIPTTRANSTYPE RECID Data type Nvarchar(10) Int Nvarchar(18) Int Bigint X Primary key X

Table: RETAILRECEIPTPROFILE
Column DESCRIPTION PROFILEID RECID Data type Nvarchar(60) Nvarchar(10) Bigint X Primary key

Table: RETAILRECEIPTPROFILELINE
Column FORMLAYOUTID PROFILEID RECEIPTTYPE RECID Data type Nvarchar(10) Nvarchar(10) Int Bigint X X Primary key

Retail POS Technical Reference

97

Microsoft Dynamics AX

Table: RETAILSALESTAXOVERRIDE
Column ADDITIONALDESCRIPTION CODE DESCRIPTION DESTINATIONITEMTAXGROUP DESTINATIONTAXGROUP OVERRIDEBY OVERRIDEFROM OVERRIDETO OVERRIDETYPE RECID SOURCEITEMTAXGROUP SOURCETAXGROUP STATUS DATAAREAID Data type Nvarchar(60) Nvarchar(25) Nvarchar(60) Nvarchar(10) Nvarchar(10) Int Int Int Int Bigint Nvarchar(10) Nvarchar(10) Int Nvarchar(4) X X Primary key

Table: RETAILSALESTAXOVERRIDEGROUP
Column CODE DESCRIPTION RECID DATAAREAID Data type Nvarchar(25) Nvarchar(60) Bigint Nvarchar(4) X Primary key X

Table: RETAILSALESTAXOVERRIDEGROUPMEMBER
Column RBOSALESTAXOVERRIDECODE RBOSALESTAXOVERRIDEGROUPCODE RECID DATAAREAID Data type Nvarchar(25) Nvarchar(25) Bigint Nvarchar(4) X Primary key X X

Table: RETAILSHAREDPARAMETERS
Column EXCHANGERATETYPE Data type Bigint Primary key

98

Retail POS Technical Reference

Column KEY_ RECID

Data type Int Bigint

Primary key X

Table: RETAILSPECIALCATEGORYMEMBER
Column CATEGORY RECID RETAILGROUPMEMBER Data type Bigint Bigint Bigint X Primary key

Table: RETAILSTAFFTABLE
Column CHANGEPASSWORD CONTINUEONTSERRORS EMPLOYMENTTYPE LAYOUTID MODIFIEDBY MODIFIEDDATE NAMEONRECEIPT OPERATORCULTURE PASSWORD PASSWORDDATA RECID RETAILHCMWORKER STAFFID Data type Int Int Int Nvarchar(10) Nvarchar(8) Datetime Nvarchar(15) Nvarchar(7) Nvarchar(32) Nvarchar(128) Bigint Bigint Nvarchar(25) X Primary key

Table: RETAILSTOREADDRESSBOOK
Column ADDRESSBOOK ADDRESSBOOKTYPE RECID STORERECID Data type Bigint Int Bigint Bigint X Primary key

Retail POS Technical Reference

99

Microsoft Dynamics AX

Table: RETAILSTORECASHDECLARATIONTABLE
Column AMOUNT CURRENCY RECID STOREID TYPE DATAAREAID Data type Numeric(32,16) Nvarchar(3) Bigint Nvarchar(10) Int Nvarchar(4) X X X Primary key X X

Table: RETAILSTORETABLE
Column CLOSINGMETHOD CREATELABELSFORZEROPRICE CULTURENAME CURRENCY DEFAULTCUSTACCOUNT DEFAULTCUSTDATAAREAID FUNCTIONALITYPROFILE HIDETRAININGMODE INCOMEEXEPENSEACCOUNT INCOMEEXPENSEACCOUNTDATAAREAID INCOMEEXPENSEACCOUNTSTOREID INVENTLOCATION INVENTLOCATIONDATAAREAID INVENTLOCATIONIDFORCUSTOMERORDER INVENTORYLOOKUP ITEMIDONRECEIPT LAYOUTID MAXIMUMPOSTINGDIFFERENCE MAXIMUMTEXTLENGTHONRECEIPT MAXROUNDINGAMOUNT MAXROUNDINGTAXAMOUNT MAXSHIFTDIFFERENCEAMOUNT MAXTRANSACTIONDIFFERENCEAMOUNT NUMBEROFTOPORBOTTOMLINES OFFLINEPROFILE Data type Int Int Nvarchar(7) Nvarchar(3) Nvarchar(20) Nvarchar(4) Nvarchar(10) Int Nvarchar(10) Nvarchar(4) Nvarchar(10) Nvarchar(10) Nvarchar(4) Nvarchar(10) Int Int Nvarchar(10) Numeric(32,16) Int Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Int Bigint Primary key

100

Retail POS Technical Reference

Column ONESTATEMENTPERDAY OPENFROM OPENTO PHONE RECID REMOVEADDTENDER REPLICATIONCOUNTER ROUNDINGTAXACCOUNT SERVICECHARGEPCT SERVICECHARGEPROMPT STATEMENTMETHOD STORENUMBER TAXGROUP TAXGROUPDATAAREAID TAXIDENTIFICATIONNUMBER TAXOVERRIDEGROUP TENDERDECLARATIONCALCULATION USECUSTOMERBASEDTAX USEDEFAULTCUSTACCOUNT USEDESTINATIONBASEDTAX

Data type Int Int Int Nvarchar(20) Bigint Nvarchar(10) Int Nvarchar(20) Numeric(32,16) Nvarchar(30) Int Nvarchar(10) Nvarchar(10) Nvarchar(4) Nvarchar(25) Bigint Int Int Int Int

Primary key

X

Table: RETAILSTORETENDERTYPECARDTABLE
Column ACCOUNTTYPE ALLOWMANUALINPUT CARDFEE CARDNUMBERSWIPED CARDTYPEID CASHBACKLIMIT CHECKEXPIREDDATE CHECKMODULUS COUNTINGREQUIRED CURRENCYCODE CURRENCYONTOTALSCODE ENTERFLEETINFO MANUALAUTHORIZATION Data type Int Int Numeric(32,16) Int Nvarchar(10) Numeric(32,16) Int Int Int Nvarchar(3) Nvarchar(3) Int Int X Primary key

Retail POS Technical Reference

101

Microsoft Dynamics AX

Column MAXNORMALDIFFERENCEAMOUNT MODIFIEDBY MODIFIEDDATE NAME PROCESSLOCALLY RECID SAMECARDALLOWED STOREID TENDERTYPEID DATAAREAID

Data type Numeric(32,16) Nvarchar(8) Datetime Nvarchar(60) Int Bigint Int Nvarchar(10) Nvarchar(10) Nvarchar(4)

Primary key

X X X

Table: RETAILSTORETENDERTYPETABLE
Column ABOVEMINIMUMTENDERID ALLOWOVERTENDER ALLOWUNDERTENDER CHANGETENDERID COUNTINGREQUIRED FUNCTION_ MAXCOUNTINGDIFFERENCE MAXIMUMAMOUNTALLOWED MAXIMUMAMOUNTENTERED MAXIMUMOVERTENDERAMOUNT MAXRECOUNT MINIMUMAMOUNTALLOWED MINIMUMAMOUNTENTERED MINIMUMCHANGEAMOUNT NAME OPENDRAWER POSOPERATION RECID ROUNDING ROUNDINGMETHOD STOREID TAKENTOBANK TAKENTOSAFE Data type Nvarchar(10) Int Int Nvarchar(10) Int Int Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Int Numeric(32,16) Numeric(32,16) Numeric(32,16) Nvarchar(60) Int Int Bigint Numeric(32,16) Int Nvarchar(10) Int Int X Primary key

102

Retail POS Technical Reference

Column TENDERTYPEID UNDERTENDERAMOUNT DATAAREAID

Data type Nvarchar(10) Numeric(32,16) Nvarchar(4)

Primary key X X

Table: RETAILSUSPENDEDTRANSACTIONS
Column BYTELENGTH NETAMOUNT STAFF STOREID SUSPENDEDTRANSACTIONID TERMINALID TRANSACTIONDATA TRANSDATE DATAAREAID Data type Int Numeric(32,16) Nvarchar(25) Nvarchar(10) Nvarchar(10) Nvarchar(10) Varbinary Datetime Nvarchar(4) X X X X Primary key

Table: RETAILTENDERTYPECARDNUMBERS
Column CARDNUMBERFROM CARDNUMBERLENGTH CARDNUMBERTO CARDTYPEID MODIFIEDBY MODIFIEDDATE RECID Data type Nvarchar(30) Int Nvarchar(30) Nvarchar(10) Nvarchar(8) Datetime Bigint Primary key X X X X

Table: RETAILTENDERTYPECARDTABLE
Column CARDISSUER CARDTYPEID CARDTYPES MODIFIEDBY MODIFIEDDATE NAME Data type Nvarchar(60) Nvarchar(10) Int Nvarchar(8) Datetime Nvarchar(60) X Primary key

Retail POS Technical Reference

103

Microsoft Dynamics AX

Column RECID

Data type Bigint

Primary key

Table: RETAILTERMINALCUSTOMFIELD
Column CAPTIONTEXTID NAME RECID TYPE Data type Int Nvarchar(50) Bigint Int X Primary key

Table: RETAILTERMINALTABLE
Column AUTOLOGOFFTIMEOUT CLOSINGSTATUS CUSTOMERDISPLAYTEXT1 CUSTOMERDISPLAYTEXT2 EFTSTORERECID EFTTERMINALID EXITAFTEREACHTRANSACTION HARDWAREPROFILE IPADDRESS ITEMIDONRECEIPT LAYOUTID LOCATION MANAGERKEYONRETURN MAXDISPLAYTEXTLENGTH MAXRECEIPTTEXTLENGTH MODIFIEDBY MODIFIEDDATE NAME NOTACTIVE NUMBEROFTOPBOTTOMLINES ONLYTOTALINSUSPENDEDTRANS20015 OPENDRAWERATLILO PRINTVATREFUNDCHECKS RECEIPTBARCODE Data type Int Int Nvarchar(40) Nvarchar(40) Bigint Nvarchar(10) Int Nvarchar(10) Nvarchar(30) Int Nvarchar(10) Nvarchar(60) Int Int Int Nvarchar(8) Datetime Nvarchar(60) Int Int Int Int Int Int Primary key

104

Retail POS Technical Reference

Column RECEIPTPRINTINGDEFAULTOFF RECEIPTSETUPLOCATION RECID RETURNINTRANSACTION SLIPIFRETURN STANDALONE STATEMENTMETHOD STORERECID TERMINALID TERMINALSTATEMENT TRANSACTIONSERVICEPROFILE UPDATESERVICEPORT VISUALPROFILE

Data type Int Int Bigint Int Int Int Int Bigint Nvarchar(10) Int Nvarchar(10) Int Nvarchar(10)

Primary key

X

Table: RETAILTILLLAYOUT
Column BUTTONGRID1 BUTTONGRID2 BUTTONGRID3 BUTTONGRID4 BUTTONGRID5 CASHCHANGERLAYOUTXML CUSTOMERLAYOUTID CUSTOMERLAYOUTXML HEIGHT IMG_CASHCHANGERLAYOUTXML LAYOUTID LAYOUTXML LOGOPICTUREID NAME RECEIPTID RECEIPTITEMSLAYOUTXML RECEIPTPAYMENTLAYOUTXML RECID TOTALID TOTALSLAYOUTXML Data type Nvarchar(10) Nvarchar(10) Nvarchar(10) Nvarchar(10) Nvarchar(10) Nvarchar(0) Nvarchar(10) Nvarchar(0) Int Varbinary Nvarchar(10) Nvarchar(0) Int Nvarchar(50) Nvarchar(10) Nvarchar(0) Nvarchar(0) Bigint Nvarchar(10) Nvarchar(0) X Primary key

Retail POS Technical Reference

105

Microsoft Dynamics AX

Column WIDTH

Data type Int

Primary key

Table: RETAILTRANSACTIONBANKEDTENDERTRANS
Column AMOUNTCUR AMOUNTCURPOS AMOUNTMST AMOUNTMSTPOS AMOUNTTENDERED AMOUNTTENDEREDPOS BANKBAGNO CARDORACCOUNT CARDTYPEID CHANGELINE COUNTER CURRENCY DATAAREAID EXCHRATE EXCHRATEMST LINENUM MANAGERSKEYLIVE MESSAGENUM QTY REPLICATED REPLICATIONCOUNTER SHIFT SHIFTDATE STAFF STATEMENTCODE STATUSTYPE STORE TENDERTYPE TERMINAL TRANSACTIONID TRANSACTIONSTATUS TRANSDATE Data type Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Nvarchar(30) Nvarchar(30) Nvarchar(10) Int Numeric(32,16) Nvarchar(3) Nvarchar(4) Numeric(32,16) Numeric(32,16) Numeric(32,16) Int Int Numeric(32,16) Int Int Nvarchar(10) Datetime Nvarchar(25) Nvarchar(25) Int Nvarchar(10) Nvarchar(10) Nvarchar(10) Nvarchar(10) Int Datetime X X X X X Primary key

106

Retail POS Technical Reference

Column TRANSTIME

Data type Int

Primary key

Table: RETAILTRANSACTIONDISCOUNTTRANS
Column AMOUNT DATAAREAID DISCOUNTCODE PERIODICDISCOUNTOFFERID REPLICATIONCOUNTER SALELINENUM STOREID TERMINALID TRANSACTIONID Data type Numeric(32,16) Nvarchar(4) Nvarchar(15) Nvarchar(20) Int Numeric(32,16) Nvarchar(10) Nvarchar(10) Nvarchar(10) X X X X X X Primary key

Table: RETAILTRANSACTIONINCOMEEXPENSETRANS
Column ACCOUNTTYPE AMOUNT COUNTER DATAAREAID INCOMEEXEPENSEACCOUNT LINENUM RECEIPTID REPLICATED REPLICATIONCOUNTER SHIFT SHIFTDATE STAFF STATEMENTCODE STATEMENTID STORE TERMINAL TRANSACTIONID TRANSACTIONSTATUS TRANSDATE Data type Int Numeric(32,16) Int Nvarchar(4) Nvarchar(10) Numeric(32,16) Nvarchar(18) Int Int Nvarchar(10) Datetime Nvarchar(25) Nvarchar(25) Nvarchar(20) Nvarchar(10) Nvarchar(10) Nvarchar(10) Int Datetime X X X X X Primary key

Retail POS Technical Reference

107

Microsoft Dynamics AX

Column TRANSTIME

Data type Int

Primary key

Table: RETAILTRANSACTIONINFOCODETRANS
Column AMOUNT COUNTER DATAAREAID INFOAMOUNT INFOCODEID INFORMATION INPUTTYPE ITEMTENDER LINENUM REPLICATED REPLICATIONCOUNTER SOURCECODE SOURCECODE2 SOURCECODE3 STAFF STATEMENTCODE STORE SUBINFOCODEID TERMINAL TRANSACTIONID TRANSDATE TRANSTIME TYPE Data type Numeric(32,16) Int Nvarchar(4) Numeric(32,16) Nvarchar(10) Nvarchar(100) Int Nvarchar(10) Numeric(32,16) Int Int Nvarchar(20) Nvarchar(20) Nvarchar(20) Nvarchar(25) Nvarchar(25) Nvarchar(10) Nvarchar(10) Nvarchar(10) Nvarchar(10) Datetime Int Int X X X X X X X Primary key

Table: RETAILTRANSACTIONLOYALTYPOINTTRANS
Column CARDNUMBER DATAAREAID DATEOFISSUE ENTRYTYPE EXPIRATIONDATE Data type Nvarchar(30) Nvarchar(4) Datetime Int Datetime X Primary key

108

Retail POS Technical Reference

Column LINENUM LOYALTYCUSTID LOYALTYSCHEMEID POINTS RECEIPTID REPLICATED REPLICATIONCOUNTER SEQUENCENUMBER STAFFID STATEMENTCODE STOREID TERMINALID TRANSACTIONID

Data type Numeric(32,16) Nvarchar(10) Nvarchar(10) Numeric(32,16) Nvarchar(18) Int Int Int Nvarchar(25) Nvarchar(25) Nvarchar(10) Nvarchar(10) Nvarchar(10)

Primary key X

X X X

Table: RETAILTRANSACTIONORDERINVOICETRANS
Column AMOUNTCUR DATAAREAID INVOICEID LINENUM REPLICATIONCOUNTER SALESID SALESORDERINVOICETYPE STOREID TERMINALID TRANSACTIONID Data type Numeric(32,16) Nvarchar(4) Nvarchar(20) Numeric(32,16) Int Nvarchar(20) Int Nvarchar(10) Nvarchar(10) Nvarchar(10) X X X X X Primary key

Table: RETAILTRANSACTIONPAYMENTTRANS
Column AMOUNTCUR AMOUNTMST AMOUNTTENDERED CARDORACCOUNT CARDTYPEID CHANGELINE Data type Numeric(32,16) Numeric(32,16) Numeric(32,16) Nvarchar(30) Nvarchar(10) Int Primary key

Retail POS Technical Reference

109

Microsoft Dynamics AX

Column COUNTER CREDITVOUCHERID CURRENCY DATAAREAID EXCHRATE EXCHRATEMST GIFTCARDID LINENUM LOYALTYCARDID MANAGERKEYLIVE MESSAGENUM QTY RECEIPTID REPLICATED REPLICATIONCOUNTER SHIFT SHIFTDATE STAFF STATEMENTCODE STORE TENDERTYPE TERMINAL TRANSACTIONID TRANSACTIONSTATUS TRANSDATE TRANSTIME

Data type Int Nvarchar(30) Nvarchar(3) Nvarchar(4) Numeric(32,16) Numeric(32,16) Nvarchar(30) Numeric(32,16) Nvarchar(30) Int Int Numeric(32,16) Nvarchar(18) Int Int Nvarchar(10) Datetime Nvarchar(25) Nvarchar(25) Nvarchar(10) Nvarchar(10) Nvarchar(10) Nvarchar(10) Int Datetime Int

Primary key

X

X

X X X

Table: RETAILTRANSACTIONSAFETENDERTRANS
Column AMOUNTCUR AMOUNTCURPOS AMOUNTMST AMOUNTMSTPOS AMOUNTTENDERED AMOUNTTENDEREDPOS CARDORACCOUNT Data type Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Nvarchar(30) Primary key

110

Retail POS Technical Reference

Column CARDTYPEID CHANGELINE COUNTER CURRENCY DATAAREAID EXCHRATE EXCHRATEMST LINENUM MANAGERSKEYLIVE MESSAGENUM QTY REPLICATED REPLICATIONCOUNTER SHIFT SHIFTDATE STAFF STATEMENTCODE STATEMENTID STATUSTYPE STORE TENDERTYPE TERMINAL TRANSACTIONID TRANSACTIONSTATUS TRANSDATE TRANSTIME

Data type Nvarchar(10) Int Numeric(32,16) Nvarchar(3) Nvarchar(4) Numeric(32,16) Numeric(32,16) Numeric(32,16) Int Int Numeric(32,16) Int Int Nvarchar(10) Datetime Nvarchar(25) Nvarchar(25) Nvarchar(20) Int Nvarchar(10) Nvarchar(10) Nvarchar(10) Nvarchar(10) Int Datetime Int

Primary key

X

X

X X X X

Table: RETAILTRANSACTIONSALESTRANS
Column BARCODE COMMENT COSTAMOUNT COUNTER CUSTACCOUNT CUSTDISCAMOUNT CUSTINVOICEDISCAMOUNT Data type Nvarchar(80) Nvarchar(60) Numeric(32,16) Int Nvarchar(20) Numeric(32,16) Numeric(32,16) Primary key

Retail POS Technical Reference

111

Microsoft Dynamics AX

Column DATAAREAID DISCAMOUNT DISCAMOUNTFROMSTDPRICE DISCGROUPID DISCOFFERID DISCOUNTAMOUNTFORPRINTING FILELOGID GIFTCARD INFOCODEDISCAMOUNT INVENTSERIALID ITEMCORRECTEDLINE ITEMID ITEMIDSCANNED ITEMPOSTINGGROUP KEYBOARDITEMENTRY LINEDSCAMOUNT LINENUM LINEWASDISCOUNTED LINKEDITEMNOTORIGINAL NETAMOUNT NETAMOUNTINCLTAX NETPRICE ORIGINALOFLINKEDITEMLIST ORIGINALTAXGROUP ORIGINALTAXITEMGROUP PERIODICDISCAMOUNT PERIODICDISCGROUP PERIODICDISCTYPE PRESCRIPTIONID PRICE PRICECHANGE PRICEINBARCODE PURCHID QTY RECEIPTID REPLICATED REPLICATIONCOUNTER

Data type Nvarchar(4) Numeric(32,16) Numeric(32,16) Nvarchar(10) Nvarchar(40) Numeric(32,16) Nvarchar(10) Int Numeric(32,16) Nvarchar(20) Int Nvarchar(20) Int Nvarchar(20) Int Numeric(32,16) Numeric(32,16) Int Int Numeric(32,16) Numeric(32,16) Numeric(32,16) Int Nvarchar(10) Nvarchar(10) Numeric(32,16) Nvarchar(10) Int Nvarchar(10) Numeric(32,16) Int Int Nvarchar(20) Numeric(32,16) Nvarchar(18) Int Int

Primary key X

X

112

Retail POS Technical Reference

Column RETURNNOSALE RFIDTAGID SALESTYPE SCALEITEM SECTION SHELF SHIFT SHIFTDATE STAFF STAFFID STATEMENTCODE STDNETPRICE STORE TAXAMOUNT TAXGROUP TAXITEMGROUP TERMINALID TOTALDISCAMOUNT TOTALDISCINFOCODELINENUM TOTALDISCPCT TOTALROUNDEDAMOUNT TRANSACTIONCODE TRANSACTIONID TRANSACTIONSTATUS TRANSDATE TRANSTIME UNIT UNITPRICE UNITQTY VARIANTID WEIGHTITEM WEIGHTMANUALLYENTERED

Data type Int Nvarchar(24) Int Int Nvarchar(10) Nvarchar(10) Nvarchar(10) Datetime Nvarchar(25) Nvarchar(25) Nvarchar(25) Numeric(32,16) Nvarchar(10) Numeric(32,16) Nvarchar(10) Nvarchar(10) Nvarchar(10) Numeric(32,16) Numeric(32,16) Numeric(32,16) Numeric(32,16) Int Nvarchar(10) Int Datetime Int Nvarchar(10) Numeric(32,16) Numeric(32,16) Nvarchar(10) Int Int

Primary key

X

X

X

Table: RETAILTRANSACTIONSERVICEPROFILE
Column CENTRALTABLESERVER Data type Nvarchar(20) Primary key

Retail POS Technical Reference

113

Microsoft Dynamics AX

Column CENTRALTABLESERVERPORT LANGUAGE NAME POSTSDATA PROFILEID RECID TSSTAFF

Data type Nvarchar(10) Nvarchar(7) Nvarchar(60) Nvarchar(256) Nvarchar(10) Bigint Int

Primary key

X

Table: RETAILTRANSACTIONTABLE
Column AMOUNTTOACCOUNT BATCHID BATCHTERMINALID COMMENT COSTAMOUNT COUNTER CREATEDOFFLINE CREATEDONPOSTERMINAL CURRENCY CUSTACCOUNT CUSTDISCAMOUNT CUSTPURCHASEORDER DATAAREAID DISCAMOUNT ENTRYSTATUS EXCHRATE GROSSAMOUNT INCLUDEDINSTATISTICS INCOMEEXPENSEAMOUNT INFOCODEDISCGROUP ITEMSPOSTED NETAMOUNT NUMBEROFINVOICES NUMBEROFITEMLINES NUMBEROFITEMS NUMBEROFPAYMENTLINES Data type Numeric(32,16) Bigint Nvarchar(10) Nvarchar(60) Numeric(32,16) Int Int Nvarchar(10) Nvarchar(3) Nvarchar(20) Numeric(32,16) Nvarchar(20) Nvarchar(4) Numeric(32,16) Int Numeric(32,16) Numeric(32,16) Int Numeric(32,16) Nvarchar(10) Int Numeric(32,16) Int Numeric(32,16) Numeric(32,16) Int X Primary key

114

Retail POS Technical Reference

Column OPENDRAWER PAYMENTAMOUNT POSTASSHIPMENT RECEIPTEMAIL RECEIPTID REFUNDRECEIPTID REPLICATED REPLICATIONCOUNTER RETRIEVEDFROMRECEIPTID ROUNDEDAMOUNT SALEISRETURNSALE SALESINVOICEAMOUNT SALESORDERAMOUNT SALESPAYMENTDIFFERENCE SHIFT SHIFTDATE STAFF STATEMENTCODE STORE TERMINAL TIMEWHENTOTALPRESSED TIMEWHENTRANSCLOSED TOACCOUNT TOTALDISCAMOUNT TRANSACTIONID TRANSCODE TRANSDATE TRANSTABLEID TRANSTIME TYPE WRONGSHIFT

Data type Int Numeric(32,16) Int Nvarchar(80) Nvarchar(18) Nvarchar(18) Int Int Nvarchar(18) Numeric(32,16) Int Numeric(32,16) Numeric(32,16) Numeric(32,16) Nvarchar(10) Datetime Nvarchar(25) Nvarchar(25) Nvarchar(10) Nvarchar(10) Int Int Int Numeric(32,16) Nvarchar(10) Int Datetime Int Int Int Int

Primary key

X X

X

Table: RETAILTRANSACTIONTAXTRANS
Column AMOUNT DATAAREAID Data type Numeric(32,16) Nvarchar(4) X Primary key

Retail POS Technical Reference

115

Microsoft Dynamics AX

Column ISINCLUDEDINPRICE REPLICATIONCOUNTER SALELINENUM STOREID TAXCODE TERMINALID TRANSACTIONID

Data type Int Int Numeric(32,16) Nvarchar(10) Nvarchar(10) Nvarchar(10) Nvarchar(10)

Primary key

X X X X X

Table: RETAILTRANSACTIONTENDERDECLARATIONTRANS
Column AMOUNTCUR AMOUNTMST AMOUNTTENDERED CARDID CURRENCY DATAAREAID EXCHRATE EXCHRATEMST LINENUM POSCURRENCY QTY RECEIPTID REPLICATED REPLICATIONCOUNTER SHIFT SHIFTDATE STAFF STATEMENTCODE STORE TENDERTYPE TERMINAL TRANSACTIONID TRANSACTIONSTATUS TRANSDATE TRANSTIME Data type Numeric(32,16) Numeric(32,16) Numeric(32,16) Nvarchar(10) Nvarchar(3) Nvarchar(4) Numeric(32,16) Numeric(32,16) Numeric(32,16) Nvarchar(3) Numeric(32,16) Nvarchar(18) Int Int Nvarchar(10) Datetime Nvarchar(25) Nvarchar(25) Nvarchar(10) Nvarchar(10) Nvarchar(10) Nvarchar(10) Int Datetime Int X X X X X Primary key

116

Retail POS Technical Reference

Table: RETAILUNIT
Column MINDENOMINATOR RECID UNITID WEIGHTUNITOFMEASURE DATAAREAID Data type Numeric(32,16) Bigint Nvarchar(10) Int Nvarchar(4) X X Primary key

Table: RETAILVISUALPROFILE
Column DESIGNALLOWEDONPOS FULLSCREENMODE HIDECURSOR MODIFIEDBY MODIFIEDDATE NAME PICTUREID PROFILEID RECID SCREENHEIGHT SCREENWIDTH Data type Int Int Int Nvarchar(8) Datetime Nvarchar(60) Int Nvarchar(10) Bigint Int Int X Primary key

Table: TAXCOLLECTLIMIT
Column RECID TAXCODE TAXFROMDATE TAXMAX TAXMIN TAXTODATE DATAAREAID Data type Bigint Nvarchar(10) Datetime Numeric(32,16) Numeric(32,16) Datetime Nvarchar(4) X Primary key X X

Retail POS Technical Reference

117

Microsoft Dynamics AX

Table: TAXDATA
Column RECID TAXCODE TAXFROMDATE TAXLIMITMAX TAXLIMITMIN TAXTODATE TAXVALUE VATEXEMPTPCT DATAAREAID Data type Bigint Nvarchar(10) Datetime Numeric(32,16) Numeric(32,16) Datetime Numeric(32,16) Numeric(32,16) Nvarchar(4) X X X Primary key X X X

Table: TAXGROUPDATA
Column EXEMPTTAX RECID TAXCODE TAXGROUP USETAX DATAAREAID Data type Int Bigint Nvarchar(10) Nvarchar(10) Int Nvarchar(4) X X X Primary key

Table: TAXGROUPHEADING
Column RECID SEARCHFIELD1 SEARCHFIELD2 TAXGROUP TAXGROUPNAME TAXGROUPROUNDING TAXGROUPSETUP TAXPRINTDETAIL TAXREVERSEONCASHDISC DATAAREAID Data type Bigint Nvarchar(60) Nvarchar(60) Nvarchar(10) Nvarchar(60) Int Int Int Int Nvarchar(4) X X Primary key

118

Retail POS Technical Reference

Table: TAXONITEM
Column RECID TAXCODE TAXITEMGROUP DATAAREAID Data type Bigint Nvarchar(10) Nvarchar(10) Nvarchar(4) X X X Primary key

Table: TAXTABLE
Column CUSTOMSPRACTICE_FI NEGATIVETAX NOTEUSALESLIST PAYMENTTAXCODE PRINTCODE RECID REPFIELDBASEINCOMING REPFIELDBASEINCOMINGCREDITNOTE REPFIELDBASEOUTGOING REPFIELDBASEOUTGOINGCREDITNOTE REPFIELDBASEUSETAX REPFIELDBASEUSETAXCREDITNOTE REPFIELDBASEUSETAXOFFSET REPFIELDBASEUSETAXOFFSETCREDITNOTE REPFIELDTAXFREEBUY REPFIELDTAXFREEBUYCREDITNOTE REPFIELDTAXFREESALES REPFIELDTAXFREESALESCREDITNOTE REPFIELDTAXINCOMING REPFIELDTAXINCOMINGCREDITNOTE REPFIELDTAXOUTGOING REPFIELDTAXOUTGOINGCREDITNOTE REPFIELDUSETAX REPFIELDUSETAXCREDITNOTE REPFIELDUSETAXOFFSET REPFIELDUSETAXOFFSETCREDITNOTE TAXACCOUNTGROUP Data type Int Int Int Nvarchar(10) Nvarchar(10) Bigint Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Int Nvarchar(10) Primary key

Retail POS Technical Reference

119

Microsoft Dynamics AX

Column TAXBASE TAXBORDERNUMREQ_FI TAXCALCMETHOD TAXCODE TAXCOUNTRYREGIONTYPE TAXCURRENCYCODE TAXINCLUDEINTAX TAXJURISDICTIONCODE TAXLIMITBASE TAXNAME TAXONTAX TAXPACKAGINGSORT TAXPACKAGINGTAX TAXPERIOD TAXPURCHASETAX TAXROUNDOFF TAXROUNDOFFTYPE TAXTYPE_SG TAXUNIT TAXWRITESELECTION UNREALIZEDTAX DATAAREAID

Data type Int Int Int Nvarchar(10) Int Nvarchar(3) Int Nvarchar(10) Int Nvarchar(30) Nvarchar(10) Nvarchar(10) Int Nvarchar(10) Int Numeric(32,16) Int Int Nvarchar(10) Int Int Nvarchar(4)

Primary key

X

X

Table: UNITOFMEASURE
Column DECIMALPRECISION RECID SYMBOL SYSTEMOFUNITS UNITOFMEASURECLASS Data type Int Bigint Nvarchar(10) Int Int X Primary key

Table: UNITOFMEASURECONVERSION
Column DENOMINATOR FACTOR Data type Int Numeric(32,16) Primary key

120

Retail POS Technical Reference

Column FROMUNITOFMEASURE INNEROFFSET NUMERATOR OUTEROFFSET PRODUCT RECID ROUNDING TOUNITOFMEASURE

Data type Bigint Numeric(32,16) Int Numeric(32,16) Bigint Bigint Int Bigint

Primary key

X

Table: UNITOFMEASURETRANSLATION
Column DESCRIPTION LANGUAGEID Data type Nvarchar(60) Nvarchar(7) Primary key

Retail POS Technical Reference

121

Sign up to vote on this title
UsefulNot useful