Skip to content
ERPNext Data Model
Esc
navigateopen⌘Jpreview
On this page

Stock

Item, Warehouse, and every movement of quantity and value — Stock Ledger Entry, Bin, batches, serials and reconciliation.

Item movement and valuation: warehouses, batches, serial numbers, stock entries, delivery notes, purchase receipts, and the Stock Ledger Entry that mirrors GL Entry for quantities.

What it does

Stock owns the Item master and the physical truth of inventory. Every movement — receipt, delivery, transfer, repack, manufacture — writes rows into Stock Ledger Entry, and Bin caches the running quantity per Item + Warehouse. With perpetual inventory enabled, each of those movements also posts a matching GL Entry, which is why Stock and Accounts must always reconcile.

Key features

  • Item master — variants and attributes, UOM conversions, reorder levels, item defaults per company, and Item Price against a Price List.
  • Warehouses — a per-company tree, optionally with Putaway Rules and warehouse-wise accounting.
  • Movements — Stock Entry (transfer, repack, material issue/receipt), Delivery Note, Purchase Receipt, Pick List, Packing Slip and Shipment.
  • Traceability — Batch, Serial No and the Serial and Batch Bundle that ties them to each transaction line.
  • Valuation — FIFO, Moving Average and LIFO; Landed Cost Voucher to absorb freight and duty; Repost Item Valuation to recompute history.
  • Corrections and counts — Stock Reconciliation for physical counts and opening balances, Closing Stock Balance for period snapshots.
  • Reservation — Stock Reservation Entry holds quantity against a Sales Order or Work Order.

Entity relationships

Each diagram below is one connected cluster of entities. Edges are labelled with the fieldname that carries them — see relationship notation for how to read the crow’s feet.

Warehouse

Warehouse anchors stock location: these clusters show the rules, quantities, reservations, transactions, and item defaults that are maintained per storage location.

Split across 2 diagrams so each stays legible; Warehouse repeats in each.

Delivery Note

Delivery Note is the outbound-stock hub, connecting customer delivery rows with packed items, serial and batch allocations, quality checks, trips, shipments, and follow-on accounting.

Item

Item is the shared product or service master behind pricing, sourcing, manufacturing, quality, serial or batch tracking, and stock transactions.

Direct pairs

Entity pairs whose only intra-module relationship is to each other.

Document composition

Parent documents and the child tables they own.

Parent Table field Child table Req
Delivery Note item_wise_tax_details Item Wise Tax Detail
Delivery Note items Delivery Note Item yes
Delivery Note packed_items Packed Item
Delivery Note pricing_rules Pricing Rule Detail
Delivery Note sales_team Sales Team
Delivery Note taxes Sales Taxes and Charges
Delivery Trip delivery_stops Delivery Stop yes
Item attributes Item Variant Attribute
Item barcodes Item Barcode
Item customer_items Item Customer Detail
Item item_defaults Item Default
Item reorder_levels Item Reorder
Item supplier_items Item Supplier
Item taxes Item Tax
Item uoms UOM Conversion Detail
Item Attribute item_attribute_values Item Attribute Value
Landed Cost Voucher items Landed Cost Item yes
Landed Cost Voucher purchase_receipts Landed Cost Purchase Receipt yes
Landed Cost Voucher taxes Landed Cost Taxes and Charges yes
Landed Cost Voucher vendor_invoices Landed Cost Vendor Invoice
Material Request items Material Request Item yes
Packing Slip items Packing Slip Item yes
Pick List locations Pick List Item
Price List countries Price List Country
Purchase Receipt item_wise_tax_details Item Wise Tax Detail
Purchase Receipt items Purchase Receipt Item yes
Purchase Receipt pricing_rules Pricing Rule Detail
Purchase Receipt supplied_items Purchase Receipt Item Supplied
Purchase Receipt taxes Purchase Taxes and Charges
Quality Inspection readings Quality Inspection Reading
Quality Inspection Template item_quality_inspection_parameter Item Quality Inspection Parameter yes
Serial and Batch Bundle entries Serial and Batch Entry yes
Shipment shipment_delivery_note Shipment Delivery Note
Shipment shipment_parcel Shipment Parcel
Stock Entry additional_costs Landed Cost Taxes and Charges
Stock Entry items Stock Entry Detail yes
Stock Reconciliation items Stock Reconciliation Item yes
Stock Reservation Entry sb_entries Serial and Batch Entry

Entity reference

Look it up

Was this page helpful?