RetailUtils::checkItemSold Method [AX 2012]

Checks the item and sets the transaction code based on whether the item is on file.

server public static RetailItemTransactionCode checkItemSold(ItemId itemId, ItemBarCode barcode)

Run On

Server

Parameters

itemId
Type: ItemId Extended Data Type
The current ItemId value.
barcode
Type: ItemBarCode Extended Data Type
The current value of the bar code.

Return Value

Type: RetailItemTransactionCode Enumeration
The transaction code based on item available on file.

ExceptionCondition
DuplicateKeyExceptionNotRecovered

An InventDim record was found or created that has a duplicate key value.

This method checks for the bar code on the item.

Show: