CatCartLine::createCategoryProductLine Method
Creates a new line with a reference to a new category product.
Syntax
client server public static CatCartLine createCategoryProductLine(
EcoResProductName _productName,
ItemFreeTxt _productDescription,
PurchQty _qty,
RefRecId _ecoResCategory,
LineAmount _lineAmount,
RefRecId _displayCategory,
[CurrencyCode _currencyCode,
VendAccount _sellingVendor,
RefRecId _unitID])
Run On
Called
Parameters
- _productName
Type: EcoResProductName Extended Data Type
The name of the product.
- _productDescription
Type: ItemFreeTxt Extended Data Type
The description of the product.
- _qty
Type: PurchQty Extended Data Type
The quantity on the line.
- _ecoResCategory
Type: RefRecId Extended Data Type
The procurement category for the line, which is a reference to the EcoResCategory table.
- _lineAmount
Type: LineAmount Extended Data Type
The expected price of the product.
- _displayCategory
Type: RefRecId Extended Data Type
The display category of the line.
- _currencyCode
Type: CurrencyCode Extended Data Type
The currency type of the price.
- _sellingVendor
Type: VendAccount Extended Data Type
The vendor that sells the item.
- _unitID
Type: RefRecId Extended Data Type
The unit to use for the quantity.
Return Value
Type: CatCartLine Table
The new record of the cartLine table.