fix: dont validate account type in for employee party type

(cherry picked from commit e7a2ff1884)
This commit is contained in:
Asmita Hase
2025-08-08 12:58:06 +05:30
committed by Mergify
parent 0e56c47a4c
commit d3dde833f7

View File

@@ -552,7 +552,8 @@ 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)
and d.party_type
!= "Employee" # making an excpetion for employee since they can be both payable and receivable
):
frappe.throw(
_("Row {0}: Account {1} and Party Type {2} have different account types").format(