ERPNext

ERPNext

Inventory Dimension

Introduced in Version 14

Inventory Dimensions in ERPNext are used to track inventory with additional parameters.

By default, ERPNext tracks inventory by Warehouse, Batch and Serial No. If you want to track inventory with custom parameters, for example a Shelf or a Storage Location, you can configure them using Inventory Dimensions. The Inventory Dimension can then be selected in the inventory documents, and is recorded in the Stock Ledger. With this feature, you can view dimension-wise Stock Ledger and Stock Balance reports.

To access the Inventory Dimension list, search for Inventory Dimension in the Awesomebar.

1. How to create an Inventory Dimension

  1. Go to the Inventory Dimension list, click on Add Inventory Dimension.
  2. Enter the Dimension Name. The system creates a custom link field with this name in the applicable documents.
  3. Select the Reference Document, i.e. the DocType that you want to use as a custom Inventory Dimension. You can select any non-child DocType.
  4. Set the applicable documents in the Applicable For tab, as described below.
  5. Save.

New Inventory Dimension

2. Applicable For Documents

2.1 Apply to All Inventory Documents

Apply to All Inventory Documents

  • When Apply to All Inventory Documents is enabled, the custom Dimension can be selected in all inventory-related documents.
  • For example, if you create an Inventory Dimension named "Shelf" with Apply to All Inventory Documents enabled, the system creates a custom link field named "Shelf" in the inventory documents where the Batch No and Serial No fields exist.

2.2 Apply to a specific document

Apply to Document

  • To add the Inventory Dimension to a specific document, disable Apply to All Inventory Documents and select the document in the Apply to Document field.
  • You can also add an Inventory Dimension only for a specific condition using the Conditional Rule field. For example, for a Stock Entry of type 'Material Issue' you may want a separate dimension "From Shelf", and for a Stock Entry of type 'Material Receipt' a separate dimension "To Shelf".
  • The Conditional Rule is visible only if Apply to All Inventory Documents is disabled.
  • You can also use the Type of Transaction field, with the options Inward, Outward or Both, for a condition.

2.3 Fetch Value From

Set the Fetch Value From field to fetch the dimension's value from a field of the parent form. For example, on the Purchase Receipt form, you have added a custom field 'Shelf', and created an Inventory Dimension 'Shelf'. If a Purchase Receipt contains 200 Items, you would normally need to set the 'Shelf' value in each row, even if the value is the same for all the Items. If you set the Fetch Value From field in the Inventory Dimension to 'Shelf', and set the value at the parent (Purchase Receipt) level, the system automatically applies the same 'Shelf' value to all the Stock Ledger Entries, even if it isn't set in each Item row.

Fetch Value From

2.4 Mandatory

Enable Mandatory in the Mandatory Section to make the dimension mandatory in the applicable documents. You can also make it mandatory only for certain conditions using Mandatory Depends On.

3. Use of Inventory Dimension

Inventory Dimension in a transaction

  • Once the Inventory Dimension is created, the system creates the custom field in the respective documents.
  • You can then select the Inventory Dimension in the respective transaction.
  • For example, if you have added the Inventory Dimension "Shelf" to the Stock Entry Detail document, you can select the Shelf in the Items table of the Stock Entry (see the image above). On submission of the Stock Entry, the system creates the Stock Ledger Entries with the selected Inventory Dimension.

4. Validate Negative Stock

Validate Negative Stock

If Validate Negative Stock is enabled in the Inventory Dimension, the system does not allow stock transactions that would make the stock of the dimension negative in the respective Warehouse. If you try to create such a transaction, the system shows the error below:

Negative stock error

5. Stock Balance and Stock Ledger Reports

  • You can filter the Stock Balance and Stock Ledger reports by Inventory Dimension.
  • With this, you can see the available quantity of each Inventory Dimension.

5.1 Stock Balance Report

Inventory Dimension in Stock Balance

5.2 Stock Ledger Report

Inventory Dimension in Stock Ledger

Note: You can use a Stock Reconciliation with Inventory Dimensions only to enter opening values. You can't use it to modify the available stock or the valuation, since the valuation rate is not maintained dimension-wise. If you try to update the quantity or valuation rate through a Stock Reconciliation, the system shows the error below:

Stock Reconciliation error

  1. Stock Ledger
  2. Stock Entry
  3. Stock Reconciliation
Last updated 2 days ago
Was this helpful?
Thanks!