Skip to content

Inventory ​

Stock per warehouse and shelf, every unit in and out as a line of a ledger, orders reserved until they ship, counts and adjustments with a reason, reorder points.

kitloom/inventory · admins: kitloom/inventory-filament, kitloom/inventory-nova

Video lessons ​

Recorded in the Filament admin; the Nova admin works the same way.

A warehouse under the shop. Stock sits in locations — a warehouse, a shelf in it, a second store — and every unit that comes in or goes out is a line of a ledger: a receipt from a supplier, a delivery to a customer, a box moved to another shelf, what a count found. What is on hand is the sum of those lines, never a number someone typed, and an order holds its units from the moment it is placed until it ships.

What it does for the shop ​

Install it and the shop's stock moves here:

  • A product that manages its stock becomes an item the first time the warehouse hears of it — a sale, a receipt, or inventory:import-products for the whole catalogue at once — with the product's SKU, name and barcode, and the quantity the product had as the opening count in the default warehouse. Nothing is lost on the way.
  • An order placed reserves its units: they stay on the shelf but are nobody else's. Paying changes nothing. The order completed (or shipped, with kitloom/shipments) moves them to the customers' location; cancelled or failed, it lets them go — and an order cancelled after it shipped takes them back on a receipt. A pending order that is never paid holds its units as long as the shop's Hold stock says, then the warehouse lets them go.
  • The product's stock is what is available online: on hand less reserved, over the warehouses that sell online — written into the product after every move, so the catalogue, the feeds, the structured data and an export read it as before. On the product form the number is read-only: it is changed here, with a reason and a person behind it.
  • Backorders stay the product's choice. A product that allows them is sold past its stock; the reservation goes below zero on the default warehouse, and the next receipt fills it.

The shop's own low-stock emails and notices go on working: the warehouse tells the shop every change an order makes.

Screens ​

Counting a shelf, and the reports
Items, locations and an adjustment
Receipts and deliveries: how stock moves

Inventory → Items. Everything the warehouse counts: a product of the shop, or a thing of the warehouse's own — packaging, a component, what is sold only at the counter. Each item has a SKU, a barcode, a unit (pieces, kg, litres: quantities take three decimals), its average cost, and a reorder point with a quantity to buy. An item's page shows its level at every location and its own lines of the ledger. Adjust sets what a location has, with a reason: count, damaged, lost, found, correction.

Inventory → Locations. The warehouses and the shelves in them. A warehouse that sells online fills the shop's orders; one that does not (an outlet, a van) keeps its stock to itself. A location may allow negative stock for a shop floor that sells faster than it scans; the rest refuse a move past what they hold. The virtual locations the ledger needs — Suppliers, Customers, Inventory adjustments — are made on first use and stay out of the way.

Inventory → Transfers. The documents the moves hang on:

  • Receipt — goods in from a supplier to a warehouse, each line at its price, which moves the item's average cost.
  • Delivery — goods out to a customer; the shop's orders make these.
  • Internal — from one of the site's locations to another.
  • Adjustment — what a count found or lost, against the adjustments location.

A transfer is drafted with its lines (type a barcode or a SKU to add one), made ready, then done — with the quantity that actually came where a line fell short, and the rest kept open on a new draft when it is still expected. A transfer done is never edited: a mistake is a move the other way.

Inventory → Moves. The ledger itself, newest first: when, what, how many, from where to where, on which transfer, by whom, and why.

Inventory → Counts. Pick a location, count the shelf, type what you found: the differences become one adjustment with a line per item.

Inventory → Reports. On hand by location, the stock's value at average cost, the items at or under their reorder point counting what is on its way, and the lots about to expire (Expiring).

Inventory → Settings. The default warehouse (goods come in there, orders are filled from it first), whether the products' stock is written from here, how often a location is due for a count, and how many days ahead a lot's expiry is told.

Lots ​

Lots that expire, boxes and labels

Food, cosmetics, medicine: what expires is bought in batches, and a batch's number and day are on its label. Set an item's Tracking to By lot and every receipt, move and count of it names a lot:

  • A receipt line takes the lot's number and its expiry day; the lot is made the first time a receipt names it. The same number again is the same lot — with another day it is refused, as the label has one.
  • The item's page lists its lots, soonest expiry first, with what is on hand of each and where; the levels are per lot.
  • An order takes the lot that expires first (first expired, first out), a lot without a date last, at each warehouse in the order it sells from. A lot-tracked item is never backordered: there is no lot to promise yet.
  • A count goes lot by lot, with a row for a lot found that the records do not know. A lot that has expired is still stock until a count or an adjustment (damaged) takes it out.
  • Reports → Expiring and a daily notice (Lots expiring, through kitloom/notifications) list the lots on hand that expire within the days set in the settings, or have expired.

The tracking changes only while the item has nothing on hand or reserved: count it to zero, switch, receive again with lots. A product of the shop starts untracked.

Packagings ​

A box the item comes in — Case of 24 — with the barcode printed on the case. Add it under the item's Packagings; scanning that barcode when adding a receipt's line, or on a count, stands for the whole box: two scans of a case of 24 are 48 units. A barcode names one thing — a box's cannot be an item's own, nor another box's.

Labels ​

Print labels on an item's page makes a PDF to print: the SKU, the name and a Code 128 barcode — the item's barcode, or its SKU when it has none, or a packaging's — as many copies as asked, two to a row on A4. No price: a label outlives one. Any scanner reads it back on a receipt or a count.

Permissions ​

manage_inventory does everything above; view_inventory looks at the items, the levels, the ledger and the reports. The roles that manage the shop's settings hold the first, the shop's order managers the second.

For AI agents ​

With kitloom/ai, an agent with view_inventory reads the levels, the ledger and the transfers (inventory_levels, inventory_moves, inventory_transfers); one with manage_inventory adjusts, receives and transfers (inventory_adjust, inventory_receive, inventory_transfer, inventory_items_save). The product's stock is a projection: an agent that wants it changed uses inventory_adjust, not the product. The levels show their lots; inventory_receive and inventory_adjust take a lot_number and expires_at for an item tracked by lot, and a receipt line may count boxes by naming a packaging.

Console ​

  • inventory:import-products — an item for every product that manages its stock, its quantity as the opening count. Run once after installing on a shop that sold already; safe to run again.
  • inventory:rebuild [--check] — the levels from the moves; --check only compares (kitloom/health runs the same check).
  • inventory:release-expired — the holds of unpaid orders past their time, every five minutes from the scheduler.
  • inventory:expiring [--days=] — the lots on hand about to expire, listed and told to the owner; every morning from the scheduler.

Also ​

With kitloom/spreadsheets the items, the levels and the moves go out as CSV or Excel, the items come in (never their quantities), and a count sheet — SKU, location, lot, counted — comes in as adjustments. With kitloom/notifications the owner is told when an item reaches its reorder point. With kitloom/webhooks other systems hear inventory.level.changed and inventory.transfer.done. Erase Personal Data blanks the customer on their deliveries.

With kitloom/store ​

Installed beside the store, the warehouse is the store's stock ledger too: a variant that counts its stock becomes an item the first time an order holds it (its SKU, its product's name, its stock as the opening count), the order's lines are reserved on a delivery transfer, completed moves them out, cancelled gives them back, and the variant's stock on the storefront is what the warehouse has available online. The shop's and the store's products are projected side by side.

Read more ​

kitloom — sites on Laravel, built for you and run with AI.
Contact · Services · License · Refunds · Privacy · Community · YouTube · [email protected]