Skip to content

Commit 01eaee8

Browse files
elshafei-developermergify[bot]
authored andcommitted
refactor: change voucher type logic for journal entry creation
(cherry picked from commit 4f33f7b)
1 parent 3fce5f5 commit 01eaee8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

hrms/payroll/doctype/payroll_entry/payroll_entry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,9 +1098,9 @@ def set_accounting_entries_for_bank_entry(
10981098
return self.make_journal_entry(
10991099
accounts,
11001100
currencies,
1101-
voucher_type="Bank Entry"
1102-
if frappe.get_cached_value("Account", self.payment_account, "account_type") == "Bank"
1103-
else "Cash Entry",
1101+
voucher_type="Cash Entry"
1102+
if frappe.get_cached_value("Account", self.payment_account, "account_type") == "Cash"
1103+
else "Bank Entry",
11041104
user_remark=_("Payment of {0} from {1} to {2}").format(
11051105
_(user_remark), self.start_date, self.end_date
11061106
),

0 commit comments

Comments
 (0)