Fixed the capitalization of the currencies, base accounts, and accounts.

This commit is contained in:
2023-03-20 23:45:17 +08:00
parent 77787eee9f
commit e377eac407
4 changed files with 6 additions and 6 deletions

View File

@ -53,7 +53,7 @@ class BaseAccount(db.Model):
:return: The string representation of the base account.
"""
return f"{self.code} {self.title}"
return f"{self.code} {self.title.title()}"
@property
def title(self) -> str:
@ -155,7 +155,7 @@ class Account(db.Model):
:return: The string representation of this account.
"""
return f"{self.base_code}-{self.no:03d} {self.title}"
return f"{self.base_code}-{self.no:03d} {self.title.title()}"
@property
def code(self) -> str:
@ -373,7 +373,7 @@ class Currency(db.Model):
:return: The string representation of the currency.
"""
return f"{self.name} ({self.code})"
return f"{self.name.title()} ({self.code})"
@property
def name(self) -> str: