fix: Employee Advance Return not working (#21812)

This commit is contained in:
Marica 2020-05-21 11:35:00 +05:30 committed by Nabin Hait
parent 0d3231ebba
commit 45de78bf94

View File

@ -146,7 +146,7 @@ def create_return_through_additional_salary(doc):
return additional_salary
@frappe.whitelist()
def make_return_entry(employee_name, company, employee_advance_name, return_amount, mode_of_payment, advance_account):
def make_return_entry(employee, company, employee_advance_name, return_amount, advance_account, mode_of_payment=None):
return_account = get_default_bank_cash_account(company, account_type='Cash', mode_of_payment = mode_of_payment)
mode_of_payment_type = ''