Batch information tracking - stock entry customisation

My BOMs are created based on item templates, while my purchase receipts work on item variants basis (split by supplier) - I am trying to update the Stock Entry form to pull items and item variants when selecting the stock and batch bundles - i.e. selecting the stock and batch bundles for item XYZ lets you see the bundles for

XYZ,
XYZ - Supplier 123,
XYZ - Supplier 456,
XYZ - Supplier 789

Further information - I’m trying to update the Stock Entry form to pick up the batch numbers of items and their variants - I receive goods as variants (e.g. Plain Flour - Supplier XYZ, Plain Flour - Supplier ABC, Plain Flour - Supplier DEF), while the BOMs are created for the actual item templates (e.g. Plain Flour). How can I have the Serial and Batch Bundle dropdown show the batch numbers for any of the variants in the dropdown (the item template - Plain Flour) does not have any entries against it