Can i generate barcode with batch no. for stocks just by saving the stock entry form or i need to submit it

My users are adding stock in the stock entry manufacture form, we need to generate barcodes after each entry, so can we generate barcode with the ERP auto batch number generating feature just by saving the document or we need to submit it then print the barcode. Because we have a multiple stock entry in a single voucher so submission won’t be feasible. Do help us with it