Hi indiano
To achieve this you need to use our premium add-on ATUM Product Levels. With this add-on you can create final products, composed by BOMS (product parts or raw materials, in your case, they are the 10000 gm of almonds). In this way, the stock will be deducted and reduced from the BOMS.
I leave you here the link to the documentation where you will find useful info about how it works: https://forum.stockmanagementlabs.com/t/product-levels-documentation
And the link to the demo site in case you want to try the free trial: https://stockmanagementlabs.com/addons/atum-product-levels/
Hope this helps,
Best Regards,
Andrea.