There should be a check to prevent Project from Closing if it has transaction is posted to balance or it should transfer the balance to P&L.
If we have a project group with BALANCE all transactions are posted in balance and not P&L, so before closing the project you need to run post costs to be sure all costs are transferred from balance to P&L.
While closing the project It will not transfer the balance to P&L or restrict you...
STATUS DETAILS
New