Replaced the <ul></ul> list with CSS "display: grid" for the trial balance, to allow using <a></a> as the table row.
This commit is contained in:
parent
aa669e9f53
commit
22bae7f766
@ -158,37 +158,14 @@ a.accounting-report-table-row {
|
|||||||
.accounting-income-expenses-table .accounting-report-table-footer .accounting-report-table-row {
|
.accounting-income-expenses-table .accounting-report-table-footer .accounting-report-table-row {
|
||||||
grid-template-columns: 7fr 1fr 1fr 1fr;
|
grid-template-columns: 7fr 1fr 1fr 1fr;
|
||||||
}
|
}
|
||||||
|
.accounting-trial-balance-table .accounting-report-table-row {
|
||||||
|
grid-template-columns: 3fr 1fr 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
/* The accounting report */
|
/* The accounting report */
|
||||||
.accounting-mobile-journal-credit {
|
.accounting-mobile-journal-credit {
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
}
|
}
|
||||||
.accounting-report-row {
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
a.accounting-report-row:hover {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
.accounting-trial-balance-row.accounting-trial-balance-header {
|
|
||||||
border-bottom: thick double slategray;
|
|
||||||
font-weight: bolder;
|
|
||||||
font-size: 1.2rem;
|
|
||||||
}
|
|
||||||
.accounting-trial-balance-row.accounting-trial-balance-header .accounting-amount {
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
.accounting-trial-balance-row > div {
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
.accounting-trial-balance-row .accounting-amount {
|
|
||||||
width: 50%;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
.accounting-trial-balance-row.accounting-trial-balance-total {
|
|
||||||
border-top: thick double slategray;
|
|
||||||
font-weight: bolder;
|
|
||||||
font-size: 1.2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The Material Design text field (floating form control in Bootstrap) */
|
/* The Material Design text field (floating form control in Bootstrap) */
|
||||||
.accounting-material-text-field {
|
.accounting-material-text-field {
|
||||||
|
@ -122,29 +122,32 @@ First written: 2023/3/5
|
|||||||
<h2 class="text-center">{{ _("Trial Balance of %(currency)s %(period)s", currency=report.currency.name|title, period=report.period.desc|title) }}</h2>
|
<h2 class="text-center">{{ _("Trial Balance of %(currency)s %(period)s", currency=report.currency.name|title, period=report.period.desc|title) }}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="list-group accounting-list-group-stripped accounting-list-group-hover">
|
<div class="accounting-report-table accounting-trial-balance-table">
|
||||||
<div class="list-group-item d-flex justify-content-between accounting-report-row accounting-trial-balance-row accounting-trial-balance-header">
|
<div class="accounting-report-table-header">
|
||||||
<div>{{ A_("Account") }}</div>
|
<div class="accounting-report-table-row">
|
||||||
<div class="d-flex justify-content-between">
|
<div>{{ A_("Account") }}</div>
|
||||||
<div class="accounting-amount">{{ A_("Debit") }}</div>
|
<div class="accounting-amount">{{ A_("Debit") }}</div>
|
||||||
<div class="accounting-amount">{{ A_("Credit") }}</div>
|
<div class="accounting-amount">{{ A_("Credit") }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% for item in list %}
|
<div class="accounting-report-table-body">
|
||||||
<a class="list-group-item d-flex justify-content-between accounting-report-row accounting-trial-balance-row" href="{{ item.url }}">
|
{% for item in list %}
|
||||||
<div>{{ item.account|title }}</div>
|
<a class="accounting-report-table-row" href="{{ item.url }}">
|
||||||
<div class="d-flex justify-content-between">
|
<div>
|
||||||
|
<span class="d-none d-md-inline">{{ item.account.code }}</span>
|
||||||
|
{{ item.account.title|title }}
|
||||||
|
</div>
|
||||||
<div class="accounting-amount">{{ item.debit|accounting_format_amount|accounting_default }}</div>
|
<div class="accounting-amount">{{ item.debit|accounting_format_amount|accounting_default }}</div>
|
||||||
<div class="accounting-amount">{{ item.credit|accounting_format_amount|accounting_default }}</div>
|
<div class="accounting-amount">{{ item.credit|accounting_format_amount|accounting_default }}</div>
|
||||||
</div>
|
</a>
|
||||||
</a>
|
{% endfor %}
|
||||||
{% endfor %}
|
</div>
|
||||||
<div class="list-group-item d-flex justify-content-between accounting-report-row accounting-trial-balance-row accounting-trial-balance-total">
|
<div class="accounting-report-table-footer">
|
||||||
<div>{{ A_("Total") }}</div>
|
<div class="accounting-report-table-row">
|
||||||
<div class="d-flex justify-content-between">
|
<div>{{ A_("Total") }}</div>
|
||||||
<div class="accounting-amount">{{ report.total_row.debit|accounting_format_amount }}</div>
|
<div class="accounting-amount">{{ report.total_row.debit|accounting_format_amount }}</div>
|
||||||
<div class="accounting-amount">{{ report.total_row.credit|accounting_format_amount }}</div>
|
<div class="accounting-amount">{{ report.total_row.credit|accounting_format_amount }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user