Project

General

Profile

Edit Copy Actions

Feature #5399

closed

Feature #5398: Implement Vendor-wise Stock Batches for Product Inventory

Create Stock Batch Schema & Endpoints

Added by Yalavarthi Thriveni 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
High
Start date:
11/29/2025
Due date:
11/29/2025
% Done:

100%

Estimated time:
2:00 h
Spent time:

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

Add

Subtasks


Add

Related issues

Edit Copy Actions

Also available in: Atom PDF