CatCartLine::createDistinctProductLine Method
Creates a new line with a reference to the specified product.
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 CatCartLine createDistinctProductLine(
CompanyId _operationsDataAreaId,
RefRecId _distinctProductRefRecId,
PurchQty _qty,
[VendAccount _vendAccount,
RefRecId _unitID,
ItemId _itemId,
InventDimId _inventDimId,
CurrencyCode _currency])
Microsoft Dynamics AX 2012 R2 (SYS)
client server public static CatCartLine createDistinctProductLine(
CompanyId _operationsDataAreaId,
RefRecId _distinctProductRefRecId,
PurchQty _qty,
[VendAccount _vendAccount,
RefRecId _unitID,
ItemId _itemId,
InventDimId _inventDimId])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
client server public static CatCartLine createDistinctProductLine(
DataAreaId _dataAreaId,
RefRecId _distinctProductRefRecId,
PurchQty _qty,
[VendAccount _vendAccount,
RefRecId _unitID,
ItemId _itemId,
InventDimId _inventDimId])
Microsoft Dynamics AX 2012 (FPK)
client server public static CatCartLine createDistinctProductLine(
DataAreaId _dataAreaId,
RefRecId _distinctProductRefRecId,
PurchQty _qty,
[VendAccount _vendAccount,
RefRecId _unitID,
ItemId _itemId,
InventDimId _inventDimId])
Microsoft Dynamics AX 2012 (SYS)
client server public static CatCartLine createDistinctProductLine(
DataAreaId _dataAreaId,
RefRecId _distinctProductRefRecId,
PurchQty _qty,
[VendAccount _vendAccount,
RefRecId _unitID,
ItemId _itemId,
InventDimId _inventDimId])
Run On
Called
Parameters
- _operationsDataAreaId
Type: CompanyId Extended Data Type
The operations data area ID to which the line should belong.
- _distinctProductRefRecId
Type: RefRecId Extended Data Type
The product to reference on the line.
- _qty
Type: PurchQty Extended Data Type
The quantity on the line.
- _vendAccount
Type: VendAccount Extended Data Type
The selling party of the item.
- _unitID
Type: RefRecId Extended Data Type
The unit to use for the quantity.
- _itemId
Type: ItemId Extended Data Type
The ItemId Value of the InventTable.
Optional.
If not supplied, it would be calculated using data of the given line.
If supplied, caller must ensure it matches the line data.
- _inventDimId
Type: InventDimId Extended Data Type
The InventDimId matching the trade agreement ( PriceDiscTable ) based on the user's choice of vendor and dimension (color, size, config).
If there is no PriceDiscTable , then this should match the InventDimCombination instead.
Optional.
If not supplied, it would be calculated using data of the given line.
If supplied, caller must ensure it matches the line data.
- _currency
Type: CurrencyCode Extended Data Type
Return Value
Type: CatCartLine Table
The new record of the CatCartLine table.