How to filter Inventory documents by pipelines