Feature #5399
closedFeature #5398: Implement Vendor-wise Stock Batches for Product Inventory
Create Stock Batch Schema & Endpoints
Status:
Closed
Priority:
High
Assignee:
Target version:
Description
Description:
Implement MongoDB/Mongoose models for StockBatch and StockMovement.
API Work:
Model: StockBatch
Model: StockMovement
Endpoint: POST /api/products/:id/stock/receive
Validation for vendor, qty, purchase price
Update product totalQty on save
Create stock movement entry
Acceptance Criteria
Creates a new batch and stores qtyReceived & qtyRemaining
Product.totalQty increments
StockMovement record kept
Subtasks
Related issues
Updated by Teja Sriram Sangani about 2 months ago
- Status changed from New to Resolved
- % Done changed from 0 to 90
Updated by Yalavarthi Thriveni about 2 months ago
- Status changed from Resolved to Closed
- % Done changed from 90 to 100
Updated by Yalavarthi Thriveni about 2 months ago
- Target version changed from Sprint 1 to Sprint2(12/08/2025 - 12/19/2025)