Create a filed of number of product bundle

My main object is to not allow entering an item in the sales invoice that does not has a bundle, I order to do that I want to save the number of product bundles as a filed, and then use it in a filter in sales invoice items.

We actually have this call/rout/method but I cant reach it, it is the same method used in the linked Documents

Also, when I check the liked document to this item, it does not show the product bundles! but it shows the sales.