Posting cash received to different invoices

I have A customer say X. I bill two invoices numbering 12 on 10-10-2014 and 15 on 16-10-2014 for a sum of 6000 and 9000.

I receive payment of 5000 on the 17-10-2014 and 5000 on 19-10-2014. how do i post this entery so that 6000 is squared off to 10-10-2014 bill and the rest is posted to 19-10-2014 bill

Go to Bank Account and click “Receive Money” … enter date 17/10/2014…enter customer you received money from.

Click drop down box on Line 1 and select Accounts Receivable…now select Invoice Number 12 and allocate $5000 to it.

Repeat this for each payment. If Cash received on same day you can use multiple lines. Once Invoice 12 is paid for allocate payments to Invoice 15.

Done thank you.