I have developed a project (employee management system), now I am on reporting part.
I want to show advance and remaining salary to the user. For this, I am thinking to put the calculated value inside a remaining_salary column of database. However, I saw an article in which it was mentioned that you should never put calculated values inside database, best practice is to do calculation on form.
If I do not put calculated value inside database then how can I show advance and remaining salary to the user?
Remaining Salaray = Salary – Advance. You need to put Salary and Advance inside database.