How do I keep a report from printing that is in a batch not associated with an invoice?

How do I keep a report from printing that is in a batch not associated with an invoice?

Create two Data Streams and make the selection criteria of the data for Invoice Type 1 match the data that returned that goes to that report, and then create another data stream that collects only the records that match that second invoice type.

That is, Data Stream 1 would be “SELECT SOPDOCS WHERE BATCHID  = ‘batch’ AND CONDITION = ‘a’” and Data Stream 2 would be similar but with a different data condition.