Helper functions relating to inventory and the like.
Returns a list of cam32.classes.InventoryItem instances with which the given scancode is associated.
Returns a list of cam32.classes.Department instances. This is a convenience function which filters out departments with no name, and only includes those defined for the main store. They’re also sorted by name.
Returns a list of cam32.classes.PurchaseOrderDetail objects, representing all occurrences of the item on “open orders” for a given store (or for all stores, if store_number is not provided).
Returns a list of cam32.classes.PurchaseOrderDetail objects, representing the entire purchasing history for the item as it exists in the current database. A progress factory may be provided.
Returns a list of cam32.classes.SalesLogDetail objects, representing the entire sales history for the item as it exists in the current database. A progress factory may be provided.