Inventory
- class pytm4srv.models.InventoryItem
Represents one inventory item.
- brand: Mapped[str]
The brand (manufacturer) of this item.
- coating: Mapped[str]
Type of coating or treatment (for some tools).
- corners: Mapped[int]
The number of indexed cutting positions this tool has.
- cut_length: Mapped[float | None]
Length of cut (for some tools).
- durable: Mapped[bool]
Whether this item lasts for many parts, such as a mount or drill block, and should not be included with the consumables.
- flutes: Mapped[int | None]
Number of flutes (for some tools).
- id: MappedColumn object at 0x7b55cc329c60>]]
Unique, numeric ID for this inventory item in OnTakt.
- lead_time: Mapped[int | None]
Lead time when ordering this item (in days).
- min_on_hand_qty: Mapped[int]
The minimum number of this item to keep in stock.
safety_stock
is measured in production days and depends on inventory item consumption rates, butmin_on_hand_qty
is a minimum number of items to keep in stock at all times. Suggested order quantities will satisfy both requirements.
- name: Mapped[str]
Name of the inventory item separate from any assignments.
- notes: Mapped[str]
User-specified notes about this item.
- overall_length: Mapped[float | None]
OAL (for some tools).
- pack_qty: Mapped[int]
The minimum packaged quantity that can be ordered.
- part_number: Mapped[str]
Part number for ordering replacements.
- price: Mapped[float | None]
Average price of this item for order cost estimation.
- qty_on_order: Mapped[int]
Number that have been ordered but not received.
- safety_stock: Mapped[int | None]
Number of days of safety stock to keep when calculating order quantities.
NULL
means use the global default (controlled with thedefault_tool_safety_stock
setting).
- suppliers: Mapped[List[Dict[str, Any]]]
List of suppliers in the format:
[ { "name": "Supplier A", "partNumber": "45762384" }, { "name": "Supplier B", "partNumber": "7G63HDE56SDG2" } ]
- type: Mapped[str]
Type (for icon display).