show user on expense and revenue list and detail views
This commit is contained in:
parent
864a7e6673
commit
51f8854a6c
|
@ -2,6 +2,10 @@
|
||||||
<div class="panel-heading">Expense Details for {{ expense.pk }}</div>
|
<div class="panel-heading">Expense Details for {{ expense.pk }}</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
|
<tr>
|
||||||
|
<th>Created By</th>
|
||||||
|
<td>{{ expense.user }}</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Amount</th>
|
<th>Amount</th>
|
||||||
<td>{{ expense.amount }} DKK</td>
|
<td>{{ expense.amount }} DKK</td>
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th>Created By</th>
|
||||||
{% if not reimbursement %}
|
{% if not reimbursement %}
|
||||||
<th>Paid by</th>
|
<th>Paid by</th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for expense in expense_list %}
|
{% for expense in expense_list %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>{{ expense.user }}</td>
|
||||||
{% if not reimbursement %}
|
{% if not reimbursement %}
|
||||||
<td>{% if expense.paid_by_bornhack %}BornHack{% else %}{{ expense.user }}{% endif %}</td>
|
<td>{% if expense.paid_by_bornhack %}BornHack{% else %}{{ expense.user }}{% endif %}</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
<div class="panel-heading">Revenue Details for {{ revenue.pk }}</div>
|
<div class="panel-heading">Revenue Details for {{ revenue.pk }}</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
|
<tr>
|
||||||
|
<th>Created By</th>
|
||||||
|
<td>{{ revenue.user }}</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Amount</th>
|
<th>Amount</th>
|
||||||
<td>{{ revenue.amount }} DKK</td>
|
<td>{{ revenue.amount }} DKK</td>
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th>Created By</th>
|
||||||
<th>Amount</th>
|
<th>Amount</th>
|
||||||
<th>Invoice Date</th>
|
<th>Invoice Date</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
|
@ -13,6 +14,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for revenue in revenue_list %}
|
{% for revenue in revenue_list %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>{{ revenue.user }}</td>
|
||||||
<td>{{ revenue.amount }} DKK</td>
|
<td>{{ revenue.amount }} DKK</td>
|
||||||
<td>{{ revenue.invoice_date }}</td>
|
<td>{{ revenue.invoice_date }}</td>
|
||||||
<td>{{ revenue.description }}</td>
|
<td>{{ revenue.description }}</td>
|
||||||
|
|
Loading…
Reference in a new issue