update3
This commit is contained in:
parent
91db23e063
commit
0859bb3255
@ -152,7 +152,7 @@
|
||||
<th class="sort white-space-nowrap align-middle " scope="col">{% trans 'PO' %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="list" id="project-list-table-body">
|
||||
<tbody class="list fs-9" id="project-list-table-body">
|
||||
{% for bill_item in itemtxs_qs %}
|
||||
<tr>
|
||||
<td class="align-middle white-space-nowrap">
|
||||
@ -171,7 +171,7 @@
|
||||
</td>
|
||||
<td class="align-middle white-space-nowrap">
|
||||
<span class="text-xs font-weight-bold">
|
||||
{% currency_symbol %}{{ bill_item.unit_cost | currency_format }}
|
||||
{{ bill_item.unit_cost | currency_format }}
|
||||
</span>
|
||||
</td>
|
||||
<td class="align-middle white-space-nowrap">
|
||||
@ -179,7 +179,7 @@
|
||||
</td>
|
||||
<td class="align-middle white-space-nowrap">
|
||||
<span class="text-xs font-weight-bold">
|
||||
{% currency_symbol %}{{ bill_item.total_amount | currency_format }}
|
||||
{{ bill_item.total_amount | currency_format }}
|
||||
</span>
|
||||
</td>
|
||||
<td class="align-middle white-space-nowrap pe-2">
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
{% load django_ledger %}
|
||||
|
||||
{% if style == 'detail' %}
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead >
|
||||
@ -15,24 +16,24 @@
|
||||
<th class="sort white-space-nowrap align-middle" scope="col">{% trans 'Description' %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tbody class="fs-9">
|
||||
{% for transaction_model in transaction_model_qs %}
|
||||
<tr>
|
||||
<td class="sort white-space-nowrap align-middle ps-2" scope="col" >{{ transaction_model.timestamp }}</td>
|
||||
<td class="sort white-space-nowrap align-middle" scope="col">{{ transaction_model.account_code }}</td>
|
||||
<td class="sort white-space-nowrap align-middle" scope="col">{{ transaction_model.account_name }}</td>
|
||||
<td class="sort white-space-nowrap align-middle" scope="col">{% if transaction_model.entity_unit_name %}{{ transaction_model.entity_unit_name }}{% endif %}</td>
|
||||
<td class="sort white-space-nowrap align-middle" scope="col">{% if transaction_model.is_credit %}${{ transaction_model.amount | currency_format }}{% endif %}</td>
|
||||
<td class="sort white-space-nowrap align-middle" scope="col">{% if transaction_model.is_debit %}${{ transaction_model.amount | currency_format }}{% endif %}</td>
|
||||
<td class="sort white-space-nowrap align-middle pe-2" scope="col">{% if transaction_model.description %}{{ transaction_model.description }}{% endif %}</td>
|
||||
<td class=" white-space-nowrap align-middle ps-2" scope="col" >{{ transaction_model.timestamp }}</td>
|
||||
<td class=" white-space-nowrap align-middle" scope="col">{{ transaction_model.account_code }}</td>
|
||||
<td class=" white-space-nowrap align-middle" scope="col">{{ transaction_model.account_name }}</td>
|
||||
<td class=" white-space-nowrap align-middle" scope="col">{% if transaction_model.entity_unit_name %}{{ transaction_model.entity_unit_name }}{% endif %}</td>
|
||||
<td class=" white-space-nowrap align-middle" scope="col">{% if transaction_model.is_credit %}{{ transaction_model.amount | currency_format }}{% endif %}</td>
|
||||
<td class=" white-space-nowrap align-middle" scope="col">{% if transaction_model.is_debit %}{{ transaction_model.amount | currency_format }}{% endif %}</td>
|
||||
<td class=" white-space-nowrap align-middle pe-2" scope="col">{% if transaction_model.description %}{{ transaction_model.description }}{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<tr class="fw-bold">
|
||||
<td class="sort white-space-nowrap align-middle" colspan="3"></td>
|
||||
<td class="class="sort white-space-nowrap align-middle" " scope="col">{% trans 'Total' %}</td>
|
||||
<td class="sort white-space-nowrap align-middle" scope="col">{% currency_symbol %}{{ total_credits | currency_format }}</td>
|
||||
<td class="sort white-space-nowrap align-middle" scope="col">{% currency_symbol %}{{ total_debits | currency_format }}</td>
|
||||
<td class="sort white-space-nowrap align-middle" scope="col"></td>
|
||||
<td class=" white-space-nowrap align-middle" colspan="3"></td>
|
||||
<td class=" white-space-nowrap align-middle" scope="col">{% trans 'Total' %}</td>
|
||||
<td class=" white-space-nowrap align-middle" scope="col">{% currency_symbol %}{{ total_credits | currency_format }}</td>
|
||||
<td class=" white-space-nowrap align-middle" scope="col">{% currency_symbol %}{{ total_debits | currency_format }}</td>
|
||||
<td class=" white-space-nowrap align-middle" scope="col"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -42,29 +43,28 @@
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr class="bg-body-highlight">
|
||||
<th>{% trans 'Account' %}</th>
|
||||
<th>{% trans 'Account Name' %}</th>
|
||||
<th>{% trans 'Credit' %}</th>
|
||||
<th>{% trans 'Debit' %}</th>
|
||||
<th>{% trans 'Description' %}</th>
|
||||
<th class="sort white-space-nowrap align-middle">{% trans 'Account Name' %}</th>
|
||||
<th class="sort white-space-nowrap align-middle">{% trans 'Credit' %}</th>
|
||||
<th class="sort white-space-nowrap align-middle">{% trans 'Debit' %}</th>
|
||||
<th class="sort white-space-nowrap align-middle">{% trans 'Description' %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tbody class="fs-9">
|
||||
{% for transaction_model in transaction_model_qs %}
|
||||
<tr>
|
||||
<td>{{ transaction_model.account_code }}</td>
|
||||
<td>{{ transaction_model.account_name }}</td>
|
||||
<td>{% if transaction_model.is_credit %}${{ transaction_model.amount | currency_format }}{% endif %}</td>
|
||||
<td>{% if transaction_model.is_debit %}${{ transaction_model.amount | currency_format }}{% endif %}</td>
|
||||
<td>{% if transaction_model.description %}{{ transaction_model.description }}{% endif %}</td>
|
||||
<td class=" white-space-nowrap align-middle ps-2">{{ transaction_model.account_code }}</td>
|
||||
<td class=" white-space-nowrap align-middle">{{ transaction_model.account_name }}</td>
|
||||
<td class=" white-space-nowrap align-middle">{% if transaction_model.is_credit %}{{ transaction_model.amount | currency_format }}{% endif %}</td>
|
||||
<td class=" white-space-nowrap align-middle">{% if transaction_model.is_debit %}{{ transaction_model.amount | currency_format }}{% endif %}</td>
|
||||
<td class=" white-space-nowrap align-middle pe-2">{% if transaction_model.description %}{{ transaction_model.description }}{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<tr class="fw-bold">
|
||||
<td colspan="1"></td>
|
||||
<td class="text-end">{% trans 'Total' %}</td>
|
||||
<td>{% currency_symbol %}{{ total_credits | currency_format }}</td>
|
||||
<td>{% currency_symbol %}{{ total_debits | currency_format }}</td>
|
||||
<td></td>
|
||||
<td class=" white-space-nowrap align-middle" colspan="1"></td>
|
||||
<td class=" white-space-nowrap align-middle text-end">{% trans 'Total' %}</td>
|
||||
<td class="white-space-nowrap align-middle">{% currency_symbol %}{{ total_credits | currency_format }}</td>
|
||||
<td class=" white-space-nowrap align-middle">{% currency_symbol %}{{ total_debits | currency_format }}</td>
|
||||
<td class="white-space-nowrap align-middle"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="row mt-4">
|
||||
<div class="row">
|
||||
<div class="col-xl-9">
|
||||
<div class="d-sm-flex justify-content-between">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user