Skip to content

Add budget-based restocking feature#125

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

Add budget-based restocking feature#125
lensonsaldanha wants to merge 1 commit into
beck-source:mainfrom
lensonsaldanha:new_features

Conversation

@lensonsaldanha

Copy link
Copy Markdown

Summary

Adds a Restocking page that recommends restock quantities from the demand
forecast within a user-set budget and submits them as orders.

Changes

  • Server: POST /api/orders creates a "Submitted" restock order with a fixed
    14-day lead time; demand forecasts now carry unit_cost; submitted orders are
    excluded from customer-facing dashboard metrics.
  • Client: new Restocking view + route/nav entry; Orders page splits submitted
    restock orders into their own section with a lead-time column.
  • i18n: English and Japanese strings for restocking and submitted orders.
  • Tests: backend coverage for unit_cost and the restock order endpoint.
  • Docs: docs/architecture.html.

Testing

  • Backend tests added in tests/backend/test_orders.py (not run in this
    environment — Python wasn't on PATH; please run pytest locally/CI).

🤖 Generated with Claude Code

Introduce a Restocking page that recommends restock quantities from the
demand forecast within a user-set budget and submits them as orders.

- server: POST /api/orders creates a "Submitted" restock order with a fixed
  14-day lead time; demand forecasts now carry unit_cost; submitted orders
  are excluded from customer-facing dashboard metrics
- client: new Restocking view + route/nav; Orders page splits submitted
  restock orders into their own section with a lead-time column
- i18n: English and Japanese strings for restocking and submitted orders
- tests: backend coverage for unit_cost and the restock order endpoint
- docs: architecture.html

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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