Filtering Sales Invoice against Sales Order lists Sales Invoice's items in ROW

ERPNext: v10.0.4 (master)
Submitted ISSUE here Filtering Sales Invoice against Sales Order lists Sales Invoice's items in ROW · Issue #12265 · frappe/erpnext · GitHub

Clicking Sales Invoice from Sales Order

instead of showing 1 Invoice, it lists 5 invoices because that invoice has 5 items.

Same behavior observed for Delivery Note as well.

If there is only document, then instead of that document, it shows row for each Item in the Sales Order.

@umair , there is only 1 Sales Invoice & 1 Delivery Note linked to that Sales Order for case above. However i have tested with Sales Order that has more than 1 Sales Invoice & Delivery Note, the behavior is the same.

Screenshots please.

This SO has 5 SINV, with clicking ‘sales invoice’ (see arrow) , showing results of 10 rows, instead of 5 which is confusing. Even if the SO has only 1 SINV, it should only show 1 sales invoice instead of the sales invoice items.
Thank you.