Customer ledger summary paid amount excess

Hello. The customer ledger summary shows the correct invoiced amount which includes the product cost, tax cost and a sales charge(indirect expense). However on showing the paid amount it adds up the invoice amount plus the sales charge which is excess of what the customer has paid(customer paid the invoice amount). The sales charge is already in the invoice amount. Why does it add it twice under paid amount???