General Ledger Error

So when creating a customer statement the credit notes appear as Sales Invoices and Debit Notes as Purchase Invoices.

Please check it out

Could you post some screen shot ?