Our database has a field called the employee number. This is a char (10) field. we keep the correct numbers. therefore we save numbers as " 1", " 2"etc. I'm not sure why we started to do this because it happened before I started working here.
In this regard, each function in business logic that has an employee number as one of the parameters must correctly substantiate the number. If we forget this, it will not update the database properly.
My question is:
Is there a better way to do this so that we don’t need to format the number in each function?
source
share