Share via


CatCartLine::findTradeAgreementInventDimForProduct Method

Finds the InventDim that is associated with the trade agreement for the given distinct product released in the given data area, for the given vendor with the given quantity of purchase.

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
          client server public static InventDim findTradeAgreementInventDimForProduct(
            DataAreaId _dataAreaId, 
            EcoResDistinctProduct _distinctProduct, 
            AccountNum _vendorAccountNumber, 
            InventQty _quantity, 
           [TransDate _effectiveDate, 
            CurrencyCode _currencyCode])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static InventDim findTradeAgreementInventDimForProduct(
            DataAreaId _dataAreaId, 
            EcoResDistinctProduct _distinctProduct, 
            AccountNum _vendorAccountNumber, 
            InventQty _quantity, 
           [TransDate _effectiveDate])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static InventDim findTradeAgreementInventDimForProduct(
            DataAreaId _dataAreaId, 
            EcoResDistinctProduct _distinctProduct, 
            AccountNum _vendorAccountNumber, 
            InventQty _quantity, 
           [TransDate _effectiveDate])

  Microsoft Dynamics AX 2012 (FPK)
          client server public static InventDim findTradeAgreementInventDimForProduct(
            DataAreaId _dataAreaId, 
            EcoResDistinctProduct _distinctProduct, 
            AccountNum _vendorAccountNumber, 
            InventQty _quantity, 
           [TransDate _effectiveDate])

  Microsoft Dynamics AX 2012 (SYS)
          client server public static InventDim findTradeAgreementInventDimForProduct(
            DataAreaId _dataAreaId, 
            EcoResDistinctProduct _distinctProduct, 
            AccountNum _vendorAccountNumber, 
            InventQty _quantity, 
           [TransDate _effectiveDate])

Run On

Called

Parameters

Return Value

Type: InventDim Table
The InventDim found.

Remarks

The trade agreement will be in the given data area, for the given product, for the given vendor, for the given amount, effective on the given date.

See Also

Reference

CatCartLine Table