Warehouse Management
This module implements a lightweight, custom warehouse and inventory tracking system for Frappe ERP, designed to manage stock movements, maintain accurate inventory valuation, and provide essential reporting. Features include:
- Custom Stock Entry
Handles three types of stock transactions:
Receipt: Adds incoming stock to the target warehouse.
Consume: Removes stock from the source warehouse.
Transfer: Moves stock from one warehouse to another, updating both.
Each transaction generates a corresponding Custom Stock Ledger Entry to maintain quantity and valuation history. 2. Stock Valuation
Updates valuation dynamically on each incoming or outgoing transaction.
-
Reporting Stock Balance Report
Shows latest stock quantity, rate, and value per item and warehouse.
Stock Ledger Report
Detailed transaction history per item and warehouse.
Testing
Automated tests are provided using Frappe's built-in FrappeTestCase framework. The tests ensure:
Each transaction type (Receipt, Consume, Transfer) completes successfully.
Correct behavior of ledger entry generation.
Tests Include:
Setup of random test items and warehouses
Execution and submission of each type of stock entry
Clean-up after each test to maintain database integrity






