mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-11 06:17:44 +00:00
Merge pull request #49044 from frappe/mergify/bp/version-15-hotfix/pr-49042
fix: flag on journal entry to ignore party account type validation if required (backport #49042)
This commit is contained in:
@@ -552,6 +552,7 @@ class JournalEntry(AccountsController):
|
||||
elif (
|
||||
d.party_type
|
||||
and frappe.db.get_value("Party Type", d.party_type, "account_type") != account_type
|
||||
and (not self.flags.ignore_party_account_validation)
|
||||
):
|
||||
frappe.throw(
|
||||
_("Row {0}: Account {1} and Party Type {2} have different account types").format(
|
||||
|
||||
Reference in New Issue
Block a user