I would like to know how to allocate credit memo to an invoice, Please see below scenario.
1. I Have made AR Invoice for Rs: 1000.
2. Made a payment (AR Receipt) Rs: 1000 and allocated this payment to invoice.
3. customer has return some material, so i did a AR Credit Memo of Rs: 500. then the customer open balance is coming correct -500.
4. I did one more AR Invoice Rs: 250 to the same customer , The customer open balance shows -250.
But if see open invoices it shows both credit memo and last AR invoice, how should i allocate this?