Value based on formula not changing dynamically while creating salary slip in HR module

I have HRA based on Basic. So if i am changing value in Basic while creating salary slip then HRA is not getting changed as per formula. How can we do that?

@itsshivam198 Can you provide a screenshot in which you put the condition or formula for HRA?

@CodeOne
I am entering it in Amount based on formula. If in salary structure my basic is 10,000 and HRA is 5% of basic, then while creating salary slip it is showing correct figure of HRA but if I am changing my basic then it is not getting dynamically changed.

I’m very new to ERPnext so forgive me if I’m wrong. It seems in my experimentation when checking
the box “statistical component” it allows you to change the amount in the salary slip.