Open jalajc opened 11 months ago
I have not dwelled deep, but the related code lines at
https://github.com/frappe/erpnext/blob/5167fb2baee742d152691c3e9c996a07d94240ea/erpnext/accounts/party.py#L466
seems of flawed with limit=1, , in absence of any 'order by', no consideration for is_cancelled
field, no consider for against
field.
Information about bug
Inside Bank reconciliation tool, create new voucher for payment entry in local currency where mapped to party_type customer successfully, but when wanted to cancel to payment entry (for the reason, the entries should have been made in GBP), cancellation results in
Customer % has accounting entries in currency GBP for company %. Please select a receivable or payable account with currency GBP
. Ideally, in first place itself this validation shouldn't have allowed the payment entry creation in local currency from the Bank reconciliation tool.Module
accounts
Version
ERPNext: v14.44.0 (version-14)
Frappe Framework: v14.52.0 (version-14)
Frappe HR: v14.13.1 (version-14)
India Compliance: v14.17.1 (version-14)
Installation method
None
Relevant log output / Stack trace / Full Error Message.