Removed the context from the translatable text messages in the accounting application, because it is not needed now.
This commit is contained in:
@ -27,7 +27,7 @@ First written: 2020/7/16
|
||||
{% load accounting %}
|
||||
|
||||
{% block settings %}
|
||||
{% blocktrans asvar title with account=account.title prep_period=period.prep_desc context "Accounting|" %}Ledger for {{ account }} {{ prep_period }}{% endblocktrans %}
|
||||
{% blocktrans asvar title with account=account.title prep_period=period.prep_desc %}Ledger for {{ account }} {{ prep_period }}{% endblocktrans %}
|
||||
{% setvar "title" title %}
|
||||
{% setvar "use_period_chooser" True %}
|
||||
{% static "accounting/css/report.css" as file %}{% add_css file %}
|
||||
@ -39,32 +39,27 @@ First written: 2020/7/16
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fas fa-edit"></i>
|
||||
{% trans "New" context "Accounting|" as text %}
|
||||
{{ text|force_escape }}
|
||||
{{ _("New")|force_escape }}
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="{% url_with_return "accounting:transactions.create" "expense" %}">
|
||||
{% trans "Cash Expense" context "Accounting|" as text %}
|
||||
{{ text|force_escape }}
|
||||
{{ _("Cash Expense")|force_escape }}
|
||||
</a>
|
||||
<a class="dropdown-item" href="{% url_with_return "accounting:transactions.create" "income" %}">
|
||||
{% trans "Cash Income" context "Accounting|" as text %}
|
||||
{{ text|force_escape }}
|
||||
{{ _("Cash Income")|force_escape }}
|
||||
</a>
|
||||
<a class="dropdown-item" href="{% url_with_return "accounting:transactions.create" "transfer" %}">
|
||||
{% trans "Transfer" context "Accounting|" as text %}
|
||||
{{ text|force_escape }}
|
||||
{{ _("Transfer")|force_escape }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% with current_report_icon="fas fa-file-invoice-dollar" %}
|
||||
{% trans "Ledger" context "Accounting|" as current_report_title %}
|
||||
{% with current_report_icon="fas fa-file-invoice-dollar" current_report_title=_("Ledger") %}
|
||||
{% include "accounting/include/report-chooser.html" %}
|
||||
{% endwith %}
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="d-none d-md-inline">{{ account.title|title_case }}</span>
|
||||
<span class="d-md-none">{% trans "Account" context "Accounting|" as text %}{{ text|force_escape }}</span>
|
||||
<span class="d-md-none">{{ _("Account") }}</span>
|
||||
</button>
|
||||
<div class="dropdown-menu account-picker">
|
||||
{% for x in accounts %}
|
||||
@ -90,13 +85,13 @@ First written: 2020/7/16
|
||||
<table class="table table-striped table-hover d-none d-md-table general-journal-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">{% trans "Date" context "Accounting|" as text %}{{ text|force_escape }}</th>
|
||||
<th scope="col">{% trans "Account" context "Accounting|" as text %}{{ text|force_escape }}</th>
|
||||
<th scope="col">{% trans "Summary" context "Accounting|" as text %}{{ text|force_escape }}</th>
|
||||
<th class="amount" scope="col">{% trans "Debit" context "Accounting|" as text %}{{ text|force_escape }}</th>
|
||||
<th class="amount" scope="col">{% trans "Credit" context "Accounting|" as text %}{{ text|force_escape }}</th>
|
||||
<th class="amount" scope="col">{% trans "Balance" context "Accounting|" as text %}{{ text|force_escape }}</th>
|
||||
<th class="actions" scope="col">{% trans "View" context "Accounting|" as text %}{{ text|force_escape }}</th>
|
||||
<th scope="col">{{ _("Date") }}</th>
|
||||
<th scope="col">{{ _("Account") }}</th>
|
||||
<th scope="col">{{ _("Summary") }}</th>
|
||||
<th class="amount" scope="col">{{ _("Debit") }}</th>
|
||||
<th class="amount" scope="col">{{ _("Credit") }}</th>
|
||||
<th class="amount" scope="col">{{ _("Balance") }}</th>
|
||||
<th class="actions" scope="col">{{ _("View") }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -106,23 +101,19 @@ First written: 2020/7/16
|
||||
<td>{{ item.account.title|title_case }}</td>
|
||||
<td>{{ item.summary|default:"" }}{% if not item.is_balanced %}
|
||||
<span class="badge badge-danger badge-pill">
|
||||
{% trans "Unbalanced" context "Accounting|" as text %}
|
||||
{{ text|force_escape }}
|
||||
{{ _("Unbalanced") }}
|
||||
</span>
|
||||
{% endif %}{% if item.has_order_hole %}
|
||||
<span class="badge badge-danger badge-pill">
|
||||
{% trans "Need Reorder" context "Accounting|" as text %}
|
||||
{{ text|force_escape }}
|
||||
{{ _("Need Reorder") }}
|
||||
</span>
|
||||
{% endif %}{% if not item.is_credit_card_paid %}
|
||||
<span class="badge badge-danger badge-pill">
|
||||
{% trans "Unpaid" context "Accounting|" as text %}
|
||||
{{ text|force_escape }}
|
||||
{{ _("Unpaid") }}
|
||||
</span>
|
||||
{% endif %}{% if item.is_existing_equipment %}
|
||||
<span class="badge badge-info badge-pill">
|
||||
{% trans "Existing" context "Accounting|" as text %}
|
||||
{{ text|force_escape }}
|
||||
{{ _("Existing") }}
|
||||
</span>
|
||||
{% endif %}</td>
|
||||
<td class="amount">{{ item.debit_amount|accounting_amount }}</td>
|
||||
@ -132,7 +123,7 @@ First written: 2020/7/16
|
||||
{% if item.pk is not None %}
|
||||
<a href="{% url_with_return "accounting:transactions.show" item.transaction.type item.transaction %}" class="btn btn-info" role="button">
|
||||
<i class="fas fa-eye"></i>
|
||||
<span class="d-none d-lg-inline">{% trans "View" context "Accounting|" as text %}{{ text|force_escape }}</span>
|
||||
<span class="d-none d-lg-inline">{{ _("View") }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
@ -155,26 +146,22 @@ First written: 2020/7/16
|
||||
{{ item.summary|default:"" }}
|
||||
{% if not item.is_balanced %}
|
||||
<span class="badge badge-danger badge-pill">
|
||||
{% trans "Unbalanced" context "Accounting|" as text %}
|
||||
{{ text|force_escape }}
|
||||
{{ _("Unbalanced") }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if item.has_order_hole %}
|
||||
<span class="badge badge-danger badge-pill">
|
||||
{% trans "Need Reorder" context "Accounting|" as text %}
|
||||
{{ text|force_escape }}
|
||||
{{ _("Need Reorder") }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if not item.is_credit_card_paid %}
|
||||
<span class="badge badge-danger badge-pill">
|
||||
{% trans "Unpaid" context "Accounting|" as text %}
|
||||
{{ text|force_escape }}
|
||||
{{ _("Unpaid") }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if item.is_existing_equipment %}
|
||||
<span class="badge badge-info badge-pill">
|
||||
{% trans "Existing" context "Accounting|" as text %}
|
||||
{{ text|force_escape }}
|
||||
{{ _("Existing") }}
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user