Project

General

Profile

Edit Copy Actions

Feature #5399

open

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

Create Stock Batch Schema & Endpoints

Added by Yalavarthi Thriveni 11 days ago. Updated 4 days ago.

Status:
Resolved
Priority:
High
Target version:
Start date:
11/29/2025
Due date:
11/29/2025 (9 days late)
% Done:

90%

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

Actions #1

Updated by Teja Sriram Sangani 4 days ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 90
Edit Copy Actions

Also available in: Atom PDF