- 已发运
- 2026年11月8日 03:54 UTC
- 作者
- Kamo
- 承诺
- 0cb18a5
The market's Inventory tab managed a second stock table that orders never read, and most of it did not work (adjust and reorder-point saves sent fields the server ignored, stock rows had no product or place names, and there was no way to create one). It now reads and writes the same counts as orders and the Stock view: - Stock Levels: search, Set Stock Count (product, one of the Locations or Main, count, reorder point), Add or Remove Items with a kind and reason, inline reorder point, out-of-stock and running-low chips, and the LowStockAlert banner linking to the market's Stock view. - Stock History: every change to a count, with sales and returns naming their order and the member who made a change shown with their photo (MemberChipById). - Locations: shows how many products are counted at each place; a place with stock cannot be removed (the server says why). - Pipeline Stock view: pick one of the Locations or type a place, set a reorder point, and "running low" uses each count's reorder point instead of a fixed 5. - LowStockAlert: per-count reorder points, and a default link that exists. - Settings Customers tab: the list is now this market's customers (scoped server-side), so a new or edited customer is kept in view from the answer; a customer with no email no longer breaks search. - Help: "How to Run a Retail Market Day to Day" says where stock lives now.
