If I spent $5k as a business to realize $5k in revenue the tax is zero (ignoring as you say sales VAT, etc)
The problem comes when the $5k you “traded” also didn’t cover the actual expense to provide the $5k you “earned” - now you have an actual loss even if cash didn’t flow.