Hi jessicajpl,
Thanks for posting and welcome to the Community Forum.
I'm sorry to hear about the COGS having an unknown credit balance. Unfortunately, this screenshot alone could not explain why there is a credit balance on this account. As this invoice does not show any amounts that correspond to the 1 million credit balance, I suggest checking the Accounts Transaction report from the Accounts report to see what transactions are causing the value. Also, we could check the opening balance of this account, as that could also be the cause of the credit balance.
Feel free to provide additional information if you require any further assistance.
Thanks,
Genreve