A/R Customer Payment Deduction

We have a customer that sent a check payment and deducted $47.96 but referenced an invoice that has already been paid. The company apparently does some kind of retail deductions on certain items. My question is, what is the correct way to process this deduction on their account?