Is it possible to create a sales invoice directly for the final product, and have the raw materials stocked out automatically

No, you must stock the final product from the inventory first. Once the final product is issued, the raw materials used in its production will be automatically deducted from the inventory. This ensures that both the finished goods and the raw materials are accurately tracked in your system. The process maintains inventory accuracy and helps in proper stock management for both raw materials and finished products.