We recommend selecting the batch details while editing or creating the document. To do this, remove the product quantity and re-enter it. A popup will appear displaying the batch details for selection. Choose the appropriate batch and then proceed to save the document.