account.account_type and account.status are currently stored in lower case.
This means for presentation in the account index/edit/delete views, we have to manually capitalise the first letter, then convert back to lower case on save.
It would be far simpler if we stored these values in the format we display them as (which is also what we do for transaction.transaction_type.
This would mean finding/updating every hardcoded occurrence of these values in both the front and back end; and then running a migration to update the values in the database.
account.account_type
andaccount.status
are currently stored in lower case.This means for presentation in the account index/edit/delete views, we have to manually capitalise the first letter, then convert back to lower case on save.
It would be far simpler if we stored these values in the format we display them as (which is also what we do for
transaction.transaction_type
.This would mean finding/updating every hardcoded occurrence of these values in both the front and back end; and then running a migration to update the values in the database.