mirror of
https://github.com/frappe/erpnext.git
synced 2026-10-29 22:57:42 +00:00
* fix(banking): show correct currency for outstanding invoices in record payment Return party_account_currency (bound as a query parameter) as the currency for negative outstanding invoices instead of the invoice's own transaction currency, so amounts stay correctly denominated when the party account currency differs (e.g. foreign-currency credit notes against a company-currency account). Surface the currency in the Record Payment modal's invoice table and totals. * fix(accounts): avoid semgrep sql-format-injection in negative outstanding invoice query Use str.format_map() instead of str.format(**dict) to satisfy the sql-format-injection semgrep rule for the negative outstanding invoice query.