Invoice settlement principle in Axapta and how to change it

Hello,

We are using Axapta 3.0. We know that the invoice settlement principle in Axapta is that when you have various open invoices with various due dates in a customer’s account, when you receive payments (either with cheques or cash),Axapta starts to settle the invoices that have the earliest due dates. However, we would like to change this principle so that in this scenario, Axapta would settle the invoices according to the dates of the invoices, such as the invoice that has the earliest invoice date would be settled first and the due dates of the invoices would be disregarded. I would appreciate if somebody can suggest me how to change this principle. Also if this principle is changed as such, would other tables be affected as well?

Thank you in advance

Cem Margunato