Unbalanced multi currency payment entry allowed to post

Version
ERPNext: v11.0.3-beta.32 () (staging)
Frappe Framework: v11.0.3-beta.46 () (staging)

Steps to replicate.

  1. Select a base currency customer and the receivable account.
  2. Select a non-base cash account to pay to.
  3. Enter 1,200,000 as base currency amount from receivable amount.
  4. Enter 500 as foreign currency amount in to cash account.
  5. Put exchange rate that doesn’t result into the total.
  6. Save and it allows. - Expected to get a validation error.
  1. Sumbit and it allows. - Expected to get a validation error.
  1. The ledger ignores the base currency amount that was from receivable account.

If this is a confirmed as an issue, then I can create an issue in github.