Error when trying make payment on production order

Hi All,

As per title, below is the error log:

Traceback (most recent call last):
File “/home/frappe/benches/sunseap-dev/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/benches/sunseap-dev/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/frappe/benches/sunseap-dev/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/benches/sunseap-dev/apps/frappe/frappe/init.py”, line 876, in call
return fn(*args, **newargs)
File “/home/frappe/benches/sunseap-dev/apps/erpnext/erpnext/accounts/doctype/payment_entry/payment_entry.py”, line 677, in get_payment_entry
pe.set_amounts()
File “/home/frappe/benches/sunseap-dev/apps/erpnext/erpnext/accounts/doctype/payment_entry/payment_entry.py”, line 219, in set_amounts
self.set_difference_amount()
File “/home/frappe/benches/sunseap-dev/apps/erpnext/erpnext/accounts/doctype/payment_entry/payment_entry.py”, line 255, in set_difference_amount
(self.source_exchange_rate if self.payment_type==“Receive” else self.target_exchange_rate)
TypeError: unsupported operand type(s) for *: ‘float’ and ‘NoneType’

Any suggestion?

Fixed the issue, please update and check.

thank nabin for the fix.