Filter link type field in child table

good day mate.

I need help on my custom docType,
I have a custom docType called Late Payment Charge within it I have a child table called Penalty Charge, in the child table there is a link type field called Sales Invoice, which links to Doctype Sales invoice, and I need to add a filter to these invoices, for example, Overdue status

really appreciate the help been stuck with this for a while