57 lines
2.0 KiB
HTML
57 lines
2.0 KiB
HTML
|
{# DrCr: Web-based double-entry bookkeeping framework
|
||
|
Copyright (C) 2022–2023 Lee Yingtong Li (RunasSudo)
|
||
|
|
||
|
This program is free software: you can redistribute it and/or modify
|
||
|
it under the terms of the GNU Affero General Public License as published by
|
||
|
the Free Software Foundation, either version 3 of the License, or
|
||
|
(at your option) any later version.
|
||
|
|
||
|
This program is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
GNU Affero General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Affero General Public License
|
||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||
|
#}
|
||
|
|
||
|
{% extends 'base.html' %}
|
||
|
{% block title %}CGT adjustments{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
<h1 class="h2 my-4">CGT adjustments</h1>
|
||
|
|
||
|
<div class="mb-2">
|
||
|
<a href="/tax/cgt-adjustments/new" class="btn btn-primary"><i class="bi bi-plus-lg"></i> New CGT adjustment</a>
|
||
|
</div>
|
||
|
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Account</th>
|
||
|
<th>Asset</th>
|
||
|
<th class="text-end">Units</th>
|
||
|
<th>Acquisition date</th>
|
||
|
<th class="text-end">Acquisition value</th>
|
||
|
<th>Adjustment date</th>
|
||
|
<th>Description</th>
|
||
|
<th class="text-end">Cost adjustment </th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for cgt_adjustment in cgt_adjustments %}
|
||
|
<tr>
|
||
|
<td>{{ cgt_adjustment.account }}</td>
|
||
|
<td>{{ cgt_adjustment.asset().commodity_name() }}</td>
|
||
|
<td class="text-end">{{ cgt_adjustment.asset().format('hide') }}</td>
|
||
|
<td>{{ cgt_adjustment.acquisition_date.strftime('%Y-%m-%d') }}</td>
|
||
|
<td class="text-end">{{ cgt_adjustment.asset().as_cost().format() }}</td>
|
||
|
<td>{{ cgt_adjustment.dt.strftime('%Y-%m-%d') }}</td>
|
||
|
<td>{{ cgt_adjustment.description }}</td>
|
||
|
<td class="text-end">{{ cgt_adjustment.cost_adjustment_amount().format_accounting() }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
{% endblock %}
|