Fix: Employee save as checking for in None instead of is None
Feature: Checking the existing token for validity in constructor of auth service, this should prevent last login showing
Feature: Moved the middleware secret key into the env file
Chore: Replaced my own GUID() with postgres UUID() type
Also figured out why a lot of exceptions are generating 500 errors.
Those errors are again caught by the general exception catcher in the end and re thrown.
Need to fix this.
Journal Done!!
But there is issue of validation in purchase due to lack of proper journals when getting data from the frontend.
The proposed solution is to create different schemas for various vouchers and then reexport and import them in a master schema for persisting
Also, change "Supplier" to vendor in Purchase, etc.
Also, convert all date field to date from datetime
Rename "Salary Deduction" to "Employee Benefits" across the board