Multi currency payment entry Set Exchange Gain/Loss Button

Using
ERPNext: v12.5.2 (version-12)
Frappe Framework: v12.3.0 (version-12)

If receiving or making payment in different currency from invoice get correct difference amount and button to easily enter in loss row

If receiving payment in same currency as invoice, but both are DIFFERENT from company currency do not get button for even though it is shown correctly.

Just have to enter manually and transaction can be posted. Seems bug because button display permission is
image
yet not displaying even though as can confirm above difference_amount field has value