I`m engaging an enemy unit. At first the battle went well and we inflicted heavy losses.
Now they just sit there, they still have supply and a separate supply batallion for both.
https://imgur.com/rUfJWKH
I see a planet with an active sensor ring around it and a troop transport group. I do not however see an enemy ground signature. Are you sure there are any enemies left? And if yes, are you certain that the alien race is set to hostile?
In case the planet I'm referring to is not the planet where the combat is happening, please show a screenshot of the combat zone to see if there's anything else that would stop combat.
Your formations are set to frontline attack so if there are hostiles to fight they will engage. However if the enemy is not set to hostile, they will only return fire when they themselves get attacked and will not continue fighting without provocation.
Edit: Also be aware that if the fighting has destroyed all installations of value in a population, there is a chance that the fighting will end without you conquering the colony (this assumes that there are no minerals or missile stockpiles present), the associated ground combat event should tell you if this is the case.