Hi Nev,
thank you very much for your answer.
Also if I applied the second function that you suggested me, I still have the invoices opened in the account.
Should I maybe do something else? I just changed the "Application method" in "Applies to oldest".
Thanks again,
astublif