Skip to content

Commit

Permalink
Dont show amortization tables if dont have prepaids or amortizations
Browse files Browse the repository at this point in the history
  • Loading branch information
edelgm6 committed Aug 7, 2024
1 parent e7c768c commit 2981681
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion ledger/templates/api/tables/amortization-table.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{% load humanize %}
{% if amortizations %}
<h4>Open Amortizations</h4>
<div class="row">
<div class="col-md-12">
<div id="amortization-table" class="table-responsive">
Expand Down Expand Up @@ -34,4 +36,5 @@

{% block extra_js %}
{% include "api/components/clickable-row-script.html" %}
{% endblock %}
{% endblock %}
{% endif %}
5 changes: 4 additions & 1 deletion ledger/templates/api/tables/unattached-prepaids.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{% load humanize %}
{% if transactions %}
<h4>Unattached Prepaid Expenses</h4>
<div id="transactions-table" class="table-responsive" style="max-height: 200px; overflow-y: auto;">
<table class="table table-hover table-sm">
<thead>
Expand Down Expand Up @@ -28,4 +30,5 @@

{% block extra_js %}
{% include "api/components/clickable-row-script.html" %}
{% endblock %}
{% endblock %}
{% endif %}
2 changes: 0 additions & 2 deletions ledger/templates/api/views/amortizations.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<h2>Amortizations</h2>

<h4>Unattached Prepaid Expenses</h4>
<div id="create-amortizations">
{{ unattached_transactions }}
</div>

<h4>Open Amortizations</h4>
<div id="table-and-form">
{{ amortize }}
</div>

0 comments on commit 2981681

Please sign in to comment.