Error when Click on payment button from a submitted sales order

Updated ERPNext today . When Click on payment button from a submitted sales order I get this error

Traceback (innermost last): File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 67, in application response = frappe.handler.handle() File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 75, in handle execute_cmd(cmd) File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 109, in execute_cmd ret =, **frappe.form_dict) File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 767, in call return fn(*args, **newargs) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/journal_entry/", line 613, in get_payment_entry_from_sales_order party_account_currency = get_account_currency(party_account) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/", line 220, in get_account_currency return frappe.local_cache("account_currency", account, generator) File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 1051, in local_cache local.cache[namespace][key] = generator() File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/", line 214, in generator account_currency, company = frappe.db.get_value("Account", account, ["account_currency", "company"]) TypeError: 'NoneType' object is not iterable.

@inventobd Seems like you have not defined “Default Receivable Account” in Company. If accounting currency for the Customer is different from Company, then you have to enter default receivable account in Customer master.

I will push a fix to catch the error.