Let me help you fix this and provide you with some information about costs reflecting zero in projects. There are situations like this when the system encounters browser-related issues. It might be caused by a corrupted file cache stored in your browser. That's why your costs in a project reflect zero.
We can do some troubleshooting steps to rule this out by using an incognito window.
Also, the allocated cost in the project will reflect zero when you create a purchase order (PO) because it's a non-posting transaction. It doesn't directly affect the project cost. I would appreciate it if you'd provide information on what type of transaction you created.
If you created a PO, you need to convert it first into a bill for the cost to appear.