Thanks for posting the Community space, @budmax305.
The source of Cost of Goods Sold(COGS) is the purchase cost. If the inventory sold doesn't have any purchase transaction, then this will post as zero COGS when you used it on the invoice.
To better isolate this, we can check the transaction history of those invoices that don't post to the COGS. This way, we can verify if the posting is correct.
However, if it's correct, let's verify and rebuild your QuickBooks software. This process is used to fix common data issues and unexpected behavior within the file.
Before doing so, make sure to update you QuickBooks for Desktop to the latest release so you'll have the latest features and fixes. Then follow the steps below:
To run the Verify Data utility:
- Go to File at the top menu.
- Select Utilities.
- Click Verify Data.
- Let the tool check your file for data issues.
To run the Rebuild Data utility:
- Go to File at the top menu.
- Select Utilities.
- Click Rebuild Data.
Here's an article that'll serve as your step by step guide in resolving common data damage on your company file: Verify and Rebuild Data in QuickBooks Desktop.
You can also run the Transaction Journal Report for the inventory item you sell. From there, you'll see the Inventory/COGS transactions which credit the Inventory Asset account and debit the COGS accounts.
Let me also share these articles that can serve as additional guides when tracking inventory in QuickBooks:
I'm still here to help if there's anything else that you need. Just leave a reply below and I'll get back to you. Have a lovely day ahead!