CLSN-2020 move conditions directive on server side

Test case dded for one formula ( District EqualTo Pune) and it's related changes done