Skip to content

Add Restocking feature with demand-based order planning#55

Open
unmeshk75 wants to merge 1 commit into
beck-source:mainfrom
unmeshk75:new_features
Open

Add Restocking feature with demand-based order planning#55
unmeshk75 wants to merge 1 commit into
beck-source:mainfrom
unmeshk75:new_features

Conversation

@unmeshk75
Copy link
Copy Markdown

Summary

  • Adds a new Restocking tab with a demand forecast planner: users can review forecasted items, adjust quantities, and submit restocking orders
  • New backend endpoints (POST /api/restocking-orders, GET /api/restocking-orders) backed by an in-memory list in mock_data.py
  • Submitted restocking orders appear pinned at the top of the Orders view with expandable item details, lead time range, and total value
  • Extended DemandForecast Pydantic model with unit_cost; updated demand_forecasts.json to include unit costs

Test plan

  • Navigate to /restocking — planner table loads with demand forecast items
  • Select items, adjust quantities, and click Submit Order — success toast appears
  • Go to /orders — submitted restocking orders appear in the amber-bordered section at the top
  • Verify GET /api/restocking-orders returns the submitted order via /docs
  • Reload the page — in-memory orders persist for the server session

🤖 Generated with Claude Code

- New Restocking view with demand forecast planner that lets users select
  items, set quantities, and submit purchase orders
- Backend endpoints POST/GET /api/restocking-orders backed by in-memory store
- Submitted restocking orders surfaced at the top of the Orders view
- Extended DemandForecast model with unit_cost; updated demand_forecasts.json

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@unmeshk75
Copy link
Copy Markdown
Author

Created this PR through the GitHub app in Claude at the Basecamp!

@unmeshk75 unmeshk75 closed this Apr 21, 2026
@unmeshk75 unmeshk75 reopened this Apr 21, 2026
Copy link
Copy Markdown
Author

@unmeshk75 unmeshk75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basecamp testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant