Edit

SOHForLocation (location)

Result Type: Number, being the stock on hand at the indicated location

Definition: Given the context of a product "p", such as in a foreach p in product loop, returns the stock on hand for the product referenced by p at the specified location. For the default location, use an empty string as the parameter.

Examples: p.SOHForLocation("NY")

returns the stock on hand for the product referenced by p at location "NY".

Note: Use p.stockonhand to get the total stock on hand across all locations.