ERPNext

ERPNext

Batch

Note: From version 15 onwards, Allow Negative Stock does not apply to serialized and batched Items. Users can't make negative stock transactions for serial / batch Items even if Allow Negative Stock is enabled in Stock Settings. For batches, see Allow negative stock for Batch below.

To use the serial / batch feature for Items, first enable Activate Serial / Batch No for Item in the Serial & Batch Item tab of Stock Settings.

The Batch feature in ERPNext allows you to group multiple units of an Item and assign them a unique value/number/tag called a Batch No.

This is done per Item. If the Item is batched, a Batch No must be set in every stock transaction. Batch numbers can be created manually or automatically. This feature is useful to set the expiry date of multiple units of an Item, or to move them together between Warehouses.

To access the Batch list, go to:

Stock > Batch

1. Prerequisites

Before creating and using a Batch, it is advised that you do the following first:

  • Enable Activate Serial / Batch No for Item in Stock Settings.
  • Create the Item and enable Has Batch No in the Serial Nos / Batches section of its Inventory tab.

2. Setting up an Item for Batches

In the Item, go to the Inventory tab, and in the Serial Nos / Batches section:

  • Has Batch No: Tick this to track the Item by batches. You cannot change this once there are stock transactions for the Item.
  • Automatically Create New Batch: If ticked, a new Batch is created automatically in incoming transactions (like a Purchase Receipt) when no Batch No is entered.
  • Batch Number Series: The naming series for the automatically created Batches. For example, if you set 'TP-.#####', the first Batch will be named 'TP-00001'.
  • Has Expiry Date: If ticked, an expiry date is set for each Batch. The Shelf Life In Days is used to calculate the expiry date from the manufacturing date.
  • Retain Sample: To retain sample stock of each Batch. To know more, visit Retain Sample Stock.

Batch settings in Item

3. How to create a Batch

If Automatically Create New Batch is enabled in the Item, Batches are created automatically in incoming transactions. Otherwise, you need to create Batches manually before using them:

  1. Go to the Batch list, click on Add Batch.
  2. Enter the Batch No.
  3. Select the Item.
  4. Optionally, set the Manufacturing Date and Expiry Date.
  5. Save.

Batch

The Batch shows its Batch Quantity, the Source document that created it (for example, the Purchase Receipt and the Supplier), and the quantities in each Warehouse under Stock Levels.

3.1 Other options in a Batch

  • Use Batch-wise Valuation: If ticked, the Batch is valued at its own incoming rate. This can be turned off globally with Do not use Batch-wise Valuation in Stock Settings.
  • Allow Negative Stock for Batch: Allows the stock of this Batch to go negative. This can also be enabled for all Batches in Stock Settings.
  • Disabled: A disabled Batch cannot be used in transactions.
  • Parent Batch: The Batch from which this Batch was split.

4. Features

4.1 Moving and Splitting Batches

In the Stock Levels section of a Batch, you can see the quantity of the Batch in each Warehouse.

  • To move the Batch from one Warehouse to another, click on the Move button.
  • To split the Batch into a smaller one, click on the Split button. This creates a new Batch based on this Batch, and the quantity is split between the two Batches.

If an expiry date is set, the Batch is shown as 'Active' until the expiry date, after which it is shown as 'Expired'.

Click on View Ledger to see the stock ledger of the Batch, and on Recalculate Batch Qty to refresh the Batch Quantity.

4.2 Transacting Items with Batches

In every stock transaction (Purchase Receipt, Delivery Note, Stock Entry, Sales Invoice, etc.) with a batched Item, you need to provide the Batch No. From version 15 onwards, the Batch Nos of a transaction are stored in a Serial and Batch Bundle. You can either enter the Batch No in the Batch No field of the row (when Use Serial / Batch fields is enabled in Stock Settings), or use the Serial / Batch entries of the row.

In outgoing transactions, the Batches are picked automatically based on the Pick Serial / Batch Based On setting (FIFO, LIFO or Expiry) in Stock Settings.

Note: In stock transactions, Batches are filtered based on the Item Code, Warehouse, Batch Expiry Date (compared with the posting date of the transaction) and the available quantity in the Warehouse.

  1. Serial Number
  2. Serial and Batch Bundle
  3. Opening Stock Balance Entry For Serialized And Batch Item
  4. Managing Batch Wise Inventory
Last updated 12 hours ago
Was this helpful?
Thanks!