RetailVendorSalesPriceMarginSetup::findInheritedSetup Method
Finds the specified record in the RetailVendorSalesPriceMarginSetup table.
Syntax
client server public static RetailVendorSalesPriceMarginSetup findInheritedSetup(
VendAccount _vendAccount,
EcoResCategoryId _retailCategoryId,
[boolean _forUpdate])
Run On
Called
Parameters
- _vendAccount
Type: VendAccount Extended Data Type
The vendor account of a RetailVendorSalesPriceMarginSetup record.
- _retailCategoryId
Type: EcoResCategoryId Extended Data Type
The retail product category ID of a RetailVendorSalesPriceMarginSetup record.
- _forUpdate
Type: boolean
A Boolean value that indicates whether to read the record for update; optional.
Return Value
Type: RetailVendorSalesPriceMarginSetup Table
A RetailVendorSalesPriceMarginSetup record if found; otherwise, an empty record.
Remarks
When we do not find a RetailVendorSalesPriceMarginSetup record for the specified product category we try to find a setup for the parent category.