Advanced payment not taken into account on printed invoice

Hi all,

I have an issue with the latest release of erpnext.
ERPNext:** v13.16.1 (version-13)
Frappe Framework:** v13.16.0 (version-13)

When my customer pays more than the invoiced amount, it shows on the invoice (FIFO), but is not taken into account on the printed invoice. Does anyone have an idea?

Thank you.

I have also discovered that payment request also request the full amount without taking into account the advanced payment.