Bug in "Accounts Receivable" and "Accounts Receivable Summary"

GitHub Issue 26235
Upon selection of cost center paid amount becomes 0 instead of actual paid amount. Below are the images:

Accounts Receivable With Cost Center

Accounts Receivable Without Cost Center

Accounts Receivable Summary With Cost Center

Accounts Receivable Summary Without Cost Center

Context information

Output of bench version

ERPNext: v13.5.2 (version-13)

Frappe Framework: v13.5.2 (version-13)

Steps to reproduce the issue

  1. Create an invoice with cost center and payment against it (I partially paid it)
  2. Check the both reports with and without cost center

Observed result

Paid amount is 0 in report where cost center is selected

Expected result

Paid amount should be 50,000 in report where cost center is selected