dw.catalog
Class PriceBookMgr
Object
dw.catalog.PriceBookMgr
Price book manager provides methods to access price books.
Properties
allPriceBooks  :  Collection  (Read Only)
All price books defined for the organization.
applicablePriceBooks  :  Collection
A collection of price books that are set in the user session.
sitePriceBooks  :  Collection  (Read Only)
All price books assigned to the current site.
Please note that this doesn't include parent price books not assigned to the site, but considered by the price lookup.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
static getAllPriceBooks() : Collection
Returns all price books defined for the organization.
static getApplicablePriceBooks() : Collection
Returns a collection of price books that are set in the user session.
static getPriceBook(priceBookID : String) : PriceBook
Returns the price book of the current organization matching the specified ID.
static getSitePriceBooks() : Collection
Returns all price books assigned to the current site.
static setApplicablePriceBooks(priceBooks : PriceBook...) : void
Sets one or more price books to be considered by the product price lookup.
Methods inherited from class Object
Method Detail
getAllPriceBooks
static getAllPriceBooks() : Collection
Returns all price books defined for the organization.
Returns:
All price books of the organization.

getApplicablePriceBooks
static getApplicablePriceBooks() : Collection
Returns a collection of price books that are set in the user session.
Returns:
Collection of applicable price books set in the session.

getPriceBook
static getPriceBook(priceBookID : String) : PriceBook
Returns the price book of the current organization matching the specified ID.
Parameters:
priceBookID - The price book id.
Returns:
Price book or null of not found

getSitePriceBooks
static getSitePriceBooks() : Collection
Returns all price books assigned to the current site.
Please note that this doesn't include parent price books not assigned to the site, but considered by the price lookup.
Returns:
All price books assigned to the current site.

setApplicablePriceBooks
static setApplicablePriceBooks(priceBooks : PriceBook...) : void
Sets one or more price books to be considered by the product price lookup. The information is stored in the user session. If no price book is set in the user session, all active and valid price books assigned to the site are used for the price lookup. If price books are set, only those price books are considered by the price lookup. Note that the system does not assure that a price book set by this API is assigned to the current site.
Parameters:
priceBooks - The price books that are set in the session as applicable price books.