Skip to content

Commit

Permalink
Set field Payamble Account in Expese Claim
Browse files Browse the repository at this point in the history
When making an Expense Claim from Employee Advance, field Payable Account is still taken from the Company - Default Payable Account, while if you make a new Expense Claim field Payable Account is filled from Company - Default Expense Claim Payable Account.
  • Loading branch information
zeta17 authored Sep 6, 2022
1 parent 1e7a11f commit add3c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrms/hr/doctype/expense_claim/expense_claim.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def get_advances(employee, advance_id=None):
def get_expense_claim(
employee_name, company, employee_advance_name, posting_date, paid_amount, claimed_amount
):
default_payable_account = frappe.get_cached_value("Company", company, "default_payable_account")
default_payable_account = frappe.get_cached_value("Company", company, "default_expense_claim_payable_account")
default_cost_center = frappe.get_cached_value("Company", company, "cost_center")

expense_claim = frappe.new_doc("Expense Claim")
Expand Down

0 comments on commit add3c91

Please sign in to comment.