AX Sales Invoice, Ledger and pos customer payment 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. Can any body inform me which classes are involved for retail payment transaction with respective to sales order for ledger posting and sales invoice involved …