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: The string representation of the base account.
|
||||||
"""
|
"""
|
||||||
return f"{self.code} {self.title}"
|
return f"{self.code} {self.title.title()}"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def title(self) -> str:
|
def title(self) -> str:
|
||||||
@ -155,7 +155,7 @@ class Account(db.Model):
|
|||||||
|
|
||||||
:return: The string representation of this account.
|
: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
|
@property
|
||||||
def code(self) -> str:
|
def code(self) -> str:
|
||||||
@ -373,7 +373,7 @@ class Currency(db.Model):
|
|||||||
|
|
||||||
:return: The string representation of the currency.
|
:return: The string representation of the currency.
|
||||||
"""
|
"""
|
||||||
return f"{self.name} ({self.code})"
|
return f"{self.name.title()} ({self.code})"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self) -> str:
|
def name(self) -> str:
|
||||||
|
@ -83,7 +83,7 @@ First written: 2023/1/31
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="accounting-card col-sm-6">
|
<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>
|
<div class="accounting-card-code">{{ obj.code }}</div>
|
||||||
{% if obj.is_need_offset %}
|
{% if obj.is_need_offset %}
|
||||||
<div>
|
<div>
|
||||||
|
@ -33,7 +33,7 @@ First written: 2023/2/1
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="accounting-card col-sm-6">
|
<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>
|
<div class="accounting-card-code">{{ obj.code }}</div>
|
||||||
{% if obj.accounts %}
|
{% if obj.accounts %}
|
||||||
<div>
|
<div>
|
||||||
|
@ -79,7 +79,7 @@ First written: 2023/2/6
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="accounting-card col-sm-6">
|
<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="accounting-card-code">{{ obj.code }}</div>
|
||||||
<div class="small text-secondary fst-italic">
|
<div class="small text-secondary fst-italic">
|
||||||
<div>{{ A_("Created") }} {{ obj.created_at }} {{ obj.created_by }}</div>
|
<div>{{ A_("Created") }} {{ obj.created_at }} {{ obj.created_by }}</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user