To hide batches with zero quantity in the voucher, you have to disable the option Show batches with zero quantity? , either from Voucher Entry Configuration or in F12: Configure from the Gateway of Tally .
To disable the zero quantity option
● Go to Gateway of Tally > Accounting Vouchers > F12 > F12 > Disable the option Show batches with zero quantity? > Ctrl+A to accept.
Alternatively:
● Go to Gateway of Tally > F12 > Invoice/Orders Entry > Inventory > Disable the option Show batches with zero quantity? > Ctrl+A to accept.
'Hiding Zero Quantity Batches in Vouchers' has been shared with