Depending on your tally settings, if a sales/purchase transaction is having 0 value it may or may not be transferred in tally, for more, kindly read the article.
In case if you need to pass 0 voucher entry you have to enable setting in tally.
To enable zero-valued transaction please follow the steps given below.
Open the company > Select Alter from gateway of Tally > Select Voucher Type > Allow zero valued transactions to yes.
Also check for Sales/Purchase account ledger and click YES.
In TallyPrime we can set zero valued transactions for each voucher type, unlike Tally.ERP9 where we can zero valued transactions for all voucher types.
Then Go to Alter>Ledger> Open your Sales/Purchase Account Ledger.
If there is option of inventory values are affected clicked on YES and save.
Tally ERP :
Then push your entry it will be done from Suvit.