I tried that, this is my condition
Invoice.InvoiceStatus='UnPaid' (Usage of Invoice is not allowed, attribute presentation belong to LineItem
But it did not work, it said that I cannot use the invoice reference. I also tried using
LineItem.fk_InvoiceLn.InvoiceStatus='Unpaid' and I get an error.
Usage of reference LineItem.fk_InvoiceLn.InvoiceStatus is invalid here