Follow the below path to update the settings to assign the fee to students at the time of admission
Settings -->Admissions --> Branch Admission Settings --> Select the Branch --> Select the radio button against the "Fee Assigning at the time of Admission" --> Save