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).

Syntax

Note

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).
  • _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).
  • _quantity
    Type: real
    Current quantity. Used to select only trade agreements that apply to this amount of items.

Return Value

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

See Also

Reference

RetailPricingDataManager Class