RetailPricingDataManager.findTradeAgreements Method [AX 2012]

This function retrieves all possible price agreements for the given args (item, customer, currency, etc), item relation code (item/group/all), and account relation code (customer/price group/all).

NoteNote

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.


  Microsoft Dynamics AX 2012 R3
          public container findTradeAgreements(
            int _agreementType, 
            int _itemCode, 
            ItemRelation _itemRelation, 
            int _accountCode, 
            container _accountRelations, 
            UnitOfMeasureSymbol _unitId, 
            CurrencyCode _currencyCode, 
            real _quantity, 
            EcoResItemColorName _colorId, 
            EcoResItemSizeName _sizeId, 
            EcoResItemStyleName _styleId, 
            EcoResItemConfigurationName _configId, 
            utcdatetime _dateToCheck)

  Microsoft Dynamics AX 2012 R2 (SYS)
          public container findTradeAgreements(
            PriceType _agreementType, 
            TableGroupAll _itemCode, 
            ItemRelation _itemRelation, 
            TableGroupAll _accountCode, 
            container _accountRelations, 
            UnitOfMeasureSymbol _unitId, 
            CurrencyCode _currencyCode, 
            real _quantity, 
            EcoResItemColorName _colorId, 
            EcoResItemSizeName _sizeId, 
            EcoResItemStyleName _styleId, 
            EcoResItemConfigurationName _configId, 
            utcdatetime _dateToCheck)

Run On

Called

Parameters

_agreementType
Type: int
The type of the trade agreement to find (price, line discount, etc).
_itemCode
Type: int
Item relation code to look for (in order: item/group/all).
_itemRelation
Type: ItemRelation Extended Data Type
Item relation code to search by (e.g. item Id, item group Id, etc).
_accountCode
Type: int
Account relation code to look for (in order: customer/price group/all)
_accountRelations
Type: container
Account relation codes to search by (e.g. customer Id, customer price group Id, etc).
_unitId
Type: UnitOfMeasureSymbol Extended Data Type
Optional unit to filter trade agreements. Ignored if empty string.
_currencyCode
Type: CurrencyCode Extended Data Type
Currency code to filter trade agreements by.
_quantity
Type: real
Current quantity. Used to select only trade agreements that apply to this amount of items.
_colorId
Type: EcoResItemColorName Extended Data Type
The Id of the color to search by. Optional.
_sizeId
Type: EcoResItemSizeName Extended Data Type
The Id of the size to search by. Optional.
_styleId
Type: EcoResItemStyleName Extended Data Type
The Id of the style to search by. Optional.
_configId
Type: EcoResItemConfigurationName Extended Data Type
The Id of the configuration to search by. Optional.
_dateToCheck
Type: utcdatetime
The date to check.

Return Value

Type: container
Collection of applicable price agreements, sorted by price amount ascending.

Community Additions

ADD
Show: