Skip to content

Add restocking workflow with budget-based order placement#121

Open
Mukassir995 wants to merge 1 commit into
beck-source:mainfrom
Mukassir995:feature/restocking-workflow
Open

Add restocking workflow with budget-based order placement#121
Mukassir995 wants to merge 1 commit into
beck-source:mainfrom
Mukassir995:feature/restocking-workflow

Conversation

@Mukassir995

Copy link
Copy Markdown

Summary

  • New /restocking route (Restocking.vue) lets users set a budget, review demand-forecast recommendations, and submit a restock order in one flow
  • POST /api/restock-orders backend endpoint creates a Submitted order in memory with auto-incremented order number and 14-day lead time
  • Orders view gains a Submitted stat card and a submitted-orders table showing lead time and line items
  • Full i18n coverage added to English and Japanese locales
  • Architecture doc and backend tests included

Test plan

  • Navigate to /restocking - budget input and recommendations table render
  • Adjust budget - item list updates to fit within budget
  • Click Place Order - success banner appears, order shows in Orders view under Submitted
  • Navigate to /orders - Submitted stat card increments and submitted-orders table appears
  • POST /api/restock-orders returns a valid Order object with correct total and 14-day delivery
  • Run uv run pytest tests/backend/test_restock_orders.py -v - all tests pass
  • Toggle language to Japanese - all new strings display correctly

?? Generated with Claude Code

- New /restocking route (Restocking.vue) lets users set a budget, review
  demand-forecast recommendations, and submit a restock order in one flow
- POST /api/restock-orders backend endpoint creates a Submitted order in
  memory with auto-incremented order number and 14-day lead time
- Orders view gains a Submitted stat card and a submitted-orders table
- Full i18n coverage in en/ja locales; architecture doc added

Co-Authored-By: Claude Sonnet 4.6 <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