mercredi 8 juillet 2020

How do I adjust the requirements for the two different users in the same web portal?

I have developed a web project which has 1 entry form, dashboard and reports.

It was for petrol stations. So a user would be entering the petrol station inspection details and generate a report.

But now the same client has opened the TANK/Lorry inspection business and wants me to adjust that in the same web portal.

Now I have thought of 2 ways to do this:

  1. I will assign different types to the users i.e. Petrol Station User and Tank Lorry User and on the basis of that, I would show and hide the fields in the form. Also, in the database, I have a single table so I would be storing the records differentiated by type.

  2. The 2nd way is to create a different form and upon the user type, I would redirect him to that page.

So what are your suggestions?

Update:

There are chances to add the requirements for more user types since the client is planning on expanding business i.e. to CNG station inspection, oil equipment inspection, etc.

Also, right now the requirements are 90% different than each other.

Update 2:

And should I use the same table if I am following the approach 2? Because if I make a new table then I will have to write the new procedures and all.




Aucun commentaire:

Enregistrer un commentaire