Hi there, CorinneO.
Currently, there's no option to automatically exclude the item when you apply a discount code to the sales order or invoice.
Creating a sub-total line item and using the price list are the options to set the items to non-discountable Items.
We know how much time it can take when something isn’t working the way you need it, which is why we make great efforts to deliver customer satisfaction at all times.
In the meantime, I recommend visiting Firm of the Future. This site will deliver the benefits of scale and intimacy better to customers in a turbulent environment. Our insights discuss how companies can prepare for the next era of business.
You can refer to this article on how to track the products you build using inventory parts: Track the products you manufacture. This also provides details to track your pending builds, check shortages, and more.
Please check this article on how you can easily keep track of your sales and expenses using predefined customer, job, and sales reports: Customize customer, job, and sales reports in QuickBooks Desktop
Please know that you're always welcome to post if you have any other concerns. Wishing you and your business continued success.