Fixed the capitalization of the currencies, base accounts, and accounts.
This commit is contained in:
parent
77787eee9f
commit
e377eac407
@ -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:
|
||||
|
@ -83,7 +83,7 @@ First written: 2023/1/31
|
||||
{% endif %}
|
||||
|
||||
<div class="accounting-card col-sm-6">
|
||||
<div class="accounting-card-title">{{ obj.title }}</div>
|
||||
<div class="accounting-card-title">{{ obj.title|title }}</div>
|
||||
<div class="accounting-card-code">{{ obj.code }}</div>
|
||||
{% if obj.is_need_offset %}
|
||||
<div>
|
||||
|
@ -33,7 +33,7 @@ First written: 2023/2/1
|
||||
</div>
|
||||
|
||||
<div class="accounting-card col-sm-6">
|
||||
<div class="accounting-card-title">{{ obj.title }}</div>
|
||||
<div class="accounting-card-title">{{ obj.title|title }}</div>
|
||||
<div class="accounting-card-code">{{ obj.code }}</div>
|
||||
{% if obj.accounts %}
|
||||
<div>
|
||||
|
@ -79,7 +79,7 @@ First written: 2023/2/6
|
||||
{% endif %}
|
||||
|
||||
<div class="accounting-card col-sm-6">
|
||||
<div class="accounting-card-title">{{ obj.name }}</div>
|
||||
<div class="accounting-card-title">{{ obj.name|title }}</div>
|
||||
<div class="accounting-card-code">{{ obj.code }}</div>
|
||||
<div class="small text-secondary fst-italic">
|
||||
<div>{{ A_("Created") }} {{ obj.created_at }} {{ obj.created_by }}</div>
|
||||
|
Loading…
Reference in New Issue
Block a user