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/”, line 56, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 52, in execute_cmd
return, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 914, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/payment_entry/”, 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

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