On my vendor invoice - on the line items - I have a custom field where the user selects the sales order associated with that line (we have cases where the vendor invoice can be for multiple sales orders). I need to filter by the status of the sales order (ie. if it is billed or not).