Solution - 2 :  Fee Module  → Transaction → Fee head Auto Adjust

                       

                      Enter Student’s admission number and click on show button.