Back

Distributing a Product Quantity Across Multiple Batch Numbers or Expiry Dates in Sales and Purchases, and Splitting a Stock Voucher Line

You can now issue a single product from multiple batches (expiry dates or lot numbers) in the same sales transaction, or receive it in multiple batches in the same purchase transaction. Each batch is recorded on its own line with its own quantity: in the invoice itself when stock requisitions are turned off, or by using the Split button on the stock requisition lines when they are turned on.

Required permissionsPermission to add or edit the document, and Edit Stock Requisition to split requisition lines.
How to accessSales ← Create Invoice, or Purchases ← Add Purchase Invoice, or Inventory ← Stock Requisitions

Before You Start

  • The Product Tracking app is enabled, and the product’s tracking type is Expiry Date, Lot Number and Expiry Date, or Lot Number.
  • Where you enter tracking data is determined by the stock requisition setting for sales or purchase invoices in Inventory Settings.

Supported Documents

Area Documents
Sales Sales Invoices, Return Invoices, Credit Notes, and their related stock requisitions (an issue requisition for the invoice, and a receipt requisition for the return and the credit note).
Purchases Purchase Invoices, Purchase Returns, Debit Notes, and their related stock requisitions (a receipt requisition for the purchase invoice, and an issue requisition for the return and the debit note).

When Stock Requisitions Are Turned Off: One Line per Batch

  1. Add the product on the first line, select the first batch (expiry date or lot number), and enter its quantity.
  2. Add the same product on a new line, then select the second batch and enter its quantity.
  3. Repeat for each batch, then save.
🛈

Note: Each line accepts one batch only; when the quantity is validated, the balances of repeated lines for the same batch are added together.

When Stock Requisitions Are Enabled: The “Split” Button

  1. Save the invoice as usual; an issue requisition (for sales) or an add requisition (for purchases) is created.
  2. Open the requisition from Stock Requisitions and click Edit.
  3. Next to the Remove button on the product line, click Split; the line is split into two lines, and the quantity is divided equally between them. The new line carries the product, unit, and price, and the batch of the original line is cleared. The same + Split option appears below the batch list in the tracking field, and it is disabled if the quantity is too small to be split.
  4. Choose the batch for each line and adjust the quantities. You can repeat Split on any line.
  5. Save the requisition.

Quantity Rules

Requisition Total of the product lines after splitting
Warehouse issue requisition Must be equal to or less than the document quantity; if it exceeds it, the requisition is not saved and the message “The quantity is greater than the requested quantity” appears.
Warehouse add requisition Must be equal to or less than the document quantity; if it exceeds it, the requisition is not saved and the message “The quantity is greater than the requested quantity” appears.
  • If the total is lower, the remaining quantity is moved to another stock requisition, except in the issue requisition of a sales invoice when automatic assignment by earliest expiry date (FEFO) is enabled.

Impact on Inventory

  • Stock is deducted (or added) for each line separately, from its own batch.
  • Each batch appears with its movement in the product tracking screen and in the inventory reports.
  • There is no automatic issuing by nearest expiry date in purchases; FEFO applies to sales only.

Common Issues

Issue Cause Solution
The Split button does not appear Stock requisitions are not enabled, the product is not tracked by batches, the requisition is not in edit mode, or the requisition is a Manual Issue, a Manual Add, or a transfer requisition (splitting is available only for requisitions linked to documents). Enable requisitions, or use multiple lines in the invoice.
The issue requisition is not saved The total of the lines is greater than the invoice quantity; the message “The quantity is greater than the requested quantity” appears. Reduce the quantities.
The add requisition is not saved The total of the lines is greater than the document quantity; the message “The quantity is greater than the requested quantity” appears. Reduce the quantities.

Frequently Asked Questions

Can I sell a product with two different expiry dates on the same invoice?

Yes; add it on two lines with two batches, or split the line in the issue requisition.

How does the “Split” button divide the quantity?

Into two halves on two lines, and it can be repeated.

Must the total be equal in an add requisition?

No; the total must equal the original quantity or be less than it.

Does it apply to products tracked by serial number?

No; the feature is for expiry date and batch number.

Is there FEFO in purchases?

No.