Error during "Make Payment" in Sales Invoice

In Sales Invoice ,Trying to Make Payment it give error

Server Error: Please check your server logs or contact tech support.

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 56, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 914, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/payment_entry/payment_entry.py”, line 664, in get_payment_entry
grand_total = doc.base_grand_total if party_account_currency == doc.company_currency else doc.grand_total
AttributeError: ‘Document’ object has no attribute ‘company_currency’

Please Help

Venkatesh
Mittal Clothing Bangalore

Do you have any customizations?

No, but Payment Entry for Purchase Invoice Working, For Sales Invoice Giving error

Can’t replicate. It should work for Sales Invoice as well.

Now Working for Sales invoice after removing custom field in Sales Invoice Doctype,
Thank u nabinhait & saurabh6790

1 Like