Add Restocking tab with budget-driven demand forecast recommendations#168
Open
ryan-weidinger wants to merge 2 commits into
Open
Add Restocking tab with budget-driven demand forecast recommendations#168ryan-weidinger wants to merge 2 commits into
ryan-weidinger wants to merge 2 commits into
Conversation
- New /restocking route with budget slider ($10K–$500K) that greedily selects items from demand forecasts (increasing trend first, then stable; decreasing excluded) within the available budget - POST /api/restocking/orders endpoint creates an internal order with 14-day delivery lead time and is_restocking_order flag - Orders tab gains a "Submitted Restocking Orders" section (blue left border) that shows RST- orders separately from regular customer orders - Stat cards and getOrdersByStatus() filter on regularOrders to prevent restocking orders from inflating Processing/Shipped/etc. counts - Fixed demand_forecasts.json: replaced fictional SKUs (WDG-001, BRG-102, etc.) with real inventory SKUs (PCB-001, PCB-002, TMP-201, PRS-203, HMD-202, ULS-205, PRX-204, SRV-301, SRV-302) - Full EN/JA i18n coverage for all new strings - Added docs/architecture.html: HTML architecture overview page Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/restocking) with a budget slider ($10K–$500K) that greedily recommends items from demand forecasts — increasing-trend items first, then stable; decreasing items excludedPOST /api/restocking/orderscreates an internal order with a 14-day delivery lead time andis_restocking_order: trueflagdemand_forecasts.json(WDG-001, BRG-102, etc.) with real inventory SKUs (PCB-001, PCB-002, TMP-201, PRS-203, HMD-202, ULS-205, PRX-204, SRV-301, SRV-302) so the recommendation algorithm can join on unit costdocs/architecture.htmlTest plan
🤖 Generated with Claude Code