Project

General

Profile

Edit Copy Actions

Feature #5398

open

Implement Vendor-wise Stock Batches for Product Inventory

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

Status:
New
Priority:
High
Assignee:
-
Target version:
Start date:
11/28/2025
Due date:
12/01/2025 (7 days late)
% Done:

8%

Estimated time:
(Total: 17:00 h)
Spent time:
(Total: 4:00 h)

Description

As an Inventory Manager
I want the system to maintain stock in batches based on vendor purchase price and quantity
So that each batch of inventory reflects its own cost, and sales/consumption deduct stock from the correct vendor batch instead of overwriting purchase price globally.

Business Requirements

Each incoming purchase should create a separate Stock Batch with:

Vendor

Purchase Price

Quantity Received

Quantity Remaining

Received Date

Product’s global purchasePrice and qty must not be overwritten when new stock arrives.

Sales/consumption flows must deduct quantity in FIFO order (oldest batch first) or based on future custom rules.

UI should show all batches for a product with vendor, price, and remaining qty.

Sale price should reflect the active batch (optional rule).

API should handle stock receipts, consumption, and retrieval of batches.

Adding stock creates a new batch record, not updating existing product purchase price.

When quantity is consumed, it is deducted from the earliest batch with remaining quantity.
System must show correct remaining qty per batch after sales.
Product total quantity updates correctly as the sum of batch qtys.
UI displays all batches for each product.
No overwrite of older purchase prices when new vendor stock arrives.
Batch history visible (who created, when).
API responses follow consistent schema.

Add

Subtasks 11 (11 open0 closed)

Feature #5399: Create Stock Batch Schema & EndpointsResolvedTeja Sriram Sangani11/29/202511/29/2025

Delete link to subtaskActions
Feature #5400: API for Consuming Stock (Sales / Allocation)NewTeja Sriram Sangani11/29/202511/29/2025

Delete link to subtaskActions
Feature #5401: API to List Batches for a ProductNewTeja Sriram Sangani11/28/2025

Delete link to subtaskActions
Feature #5402: API to List Batches for a ProductNewTeja Sriram Sangani11/28/2025

Delete link to subtaskActions
Feature #5403: API for Editing / Adjusting Stock BatchNewTeja Sriram Sangani11/29/202511/29/2025

Delete link to subtaskActions
Feature #5405: API Validation & Error HandlingNewTeja Sriram Sangani11/28/202511/28/2025

Delete link to subtaskActions
Feature #5406: UI – Add Stock (Create Batch) ModalNewTeja Sriram Sangani12/01/202512/01/2025

Delete link to subtaskActions
Feature #5407: UI – Product Batch List TableNew12/01/202512/01/2025

Delete link to subtaskActions
Feature #5408: UI – Update Product Detail SummaryNewSai Priyatham Sadineni12/01/202512/01/2025

Delete link to subtaskActions
Feature #5409: UI – Sale/Order/Invoice Flow Batch Allocation ViewNewTeja Sriram Sangani12/01/202512/01/2025

Delete link to subtaskActions
Feature #5410: UI – Purchase History / Movement LogNew12/01/202512/01/2025

Delete link to subtaskActions

Add

Related issues

Actions #1

Updated by Yalavarthi Thriveni 11 days ago

  • Subtask #5399 added
Actions #2

Updated by Yalavarthi Thriveni 11 days ago

  • Subtask #5400 added
Actions #3

Updated by Yalavarthi Thriveni 11 days ago

  • Subtask #5401 added
Actions #4

Updated by Yalavarthi Thriveni 11 days ago

  • Subtask #5402 added
Actions #5

Updated by Yalavarthi Thriveni 11 days ago

  • Subtask #5403 added
Actions #6

Updated by Yalavarthi Thriveni 11 days ago

  • Subtask #5405 added
Actions #7

Updated by Yalavarthi Thriveni 11 days ago

  • Subtask #5406 added
Actions #8

Updated by Yalavarthi Thriveni 11 days ago

  • Subtask #5407 added
Actions #9

Updated by Yalavarthi Thriveni 11 days ago

  • Subtask #5408 added
Actions #10

Updated by Yalavarthi Thriveni 11 days ago

  • Subtask #5409 added
Actions #11

Updated by Yalavarthi Thriveni 11 days ago

  • Subtask #5410 added
Edit Copy Actions

Also available in: Atom PDF