Error while applying advance payments to sales invoice

Hi All

I have v14.22.2 installation and I am getting the following message when I try to apply some previous overpayments to a overdue Sale-Invoice

I click the “Get Advances Received” button under the “Payments” Tab in the Sales Invoice
It loads 2 available payments to be applied
I click “Update” Button to apply the changes to this Sales Invoice
I get this message at the top:

“Cannot Update After Submit”
" Not allowed to change Advances after submission from 0 to 2"
Also at the bottom right corner a messages flashes “Sales Invoice has been submitted successfully”

Sales Invoice remains unsaved.

Any Ideas?

Thanks in advance