I need help with kit margins!

Helo! I am using Dolibarr to manage my craft business and I have a problem with the margins module.
I need to have a profit margin on product kits, as I use materials to make the final products. I can see the profit margin for each individual product if I put the selling price, but I need him to take the average cost of each product in the kit and show me the profit margin for the entire kit. How could I do that?

any reply on this? i have the same problem