Creating Sales Return Invoice - Error

I am getting the below error when I am creating return invoice and also generating payment within the invoice. Please also view the attached loom.

App Versions

{
	"email_delivery_service": "0.0.1",
	"erpnext": "15.56.0",
	"frappe": "15.63.1"
}

Route

Form/Sales Invoice/ACC-SINV-2025-00382

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 115, in application
    response = frappe.api.handle(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 51, in handle
    data = execute_cmd(cmd)
           ^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 84, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1736, in call
    return fn(*args, **newargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
TypeError: get_payment_data() missing 1 required positional argument: 'invoice'

Request Data

{
	"type": "POST",
	"args": {},
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/erpnext.controllers.sales_and_purchase_return.get_payment_data",
	"request_id": "602c6443-5b44-489b-88ec-3494499e5d63"
}

Response Data

{
	"exception": "TypeError: get_payment_data() missing 1 required positional argument: 'invoice'",
	"exc_type": "TypeError"
}

how could i share video like you in my topic? is there any

Sorry for the inconvenience caused.

We have identified the issue and are actively working on a fix.
You can track the progress of pull request here: PR #47041.

Regards