mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 21:19:19 +00:00
Merge pull request #49054 from frappe/mergify/bp/version-15-hotfix/pr-49053
fix: dont validate account type while creating journal entry for employee party type (backport #49053)
This commit is contained in:
@@ -552,7 +552,8 @@ class JournalEntry(AccountsController):
|
|||||||
elif (
|
elif (
|
||||||
d.party_type
|
d.party_type
|
||||||
and frappe.db.get_value("Party Type", d.party_type, "account_type") != account_type
|
and frappe.db.get_value("Party Type", d.party_type, "account_type") != account_type
|
||||||
and (not self.flags.ignore_party_account_validation)
|
and d.party_type
|
||||||
|
!= "Employee" # making an excpetion for employee since they can be both payable and receivable
|
||||||
):
|
):
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_("Row {0}: Account {1} and Party Type {2} have different account types").format(
|
_("Row {0}: Account {1} and Party Type {2} have different account types").format(
|
||||||
|
|||||||
Reference in New Issue
Block a user