cam32.inventory

Helper functions relating to inventory and the like.

cam32.inventory.find_items_by_scancode(scancode)

Returns a list of cam32.classes.InventoryItem instances with which the given scancode is associated.

cam32.inventory.get_departments(session=None)

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.

cam32.inventory.get_open_purchase_order_details(item, store_number=None)

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).

cam32.inventory.get_purchase_order_details(item, progress_factory=None)

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.

cam32.inventory.get_sales_log_details(item, progress_factory=None)

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.

Previous topic

cam32.exc

Next topic

cam32.pdt

This Page