Fixed the capitalization of the currencies, base accounts, and accounts.
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user