Retail Payment Transaction with voided status posting ledger vouchers

Hi,

In retail payment transaction table with transaction status “Voided” are present. This entries are posting in ledger vouchers. How to avoid it?