Retail Voided Payment Transaction and ledger posting

Hi,

I have AX 2012 R3 and Retail POS system also. User are doing sales orders in AX. Customer payment in POS. In payment transaction voided are also present with respect to sales order. Table is retailtransactoinpaymenttrans. I want to know “Is this voided payment transaction postings in ledger???” If yes then how to avoid it.

When Customer Payment posted in POS then that time sales invoice posts in AX. Where to find this??? Class name etc??