Skip to content

Commit

Permalink
added more details to invoice "self"
Browse files Browse the repository at this point in the history
changed position of payment details/notes

Signed-off-by: Trey <[email protected]>
  • Loading branch information
TreyWW committed Sep 15, 2024
1 parent 8a36b2d commit a7283a6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/templates/pages/invoices/single/view/invoice_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<div>
<h1 class="text-2xl font-semibold">{{ invoice.self_company|default_if_none:invoice.self_name }}</h1>
<p>{{ invoice.self_phone|default_if_none:"" }}</p>
<p>{{ invoice.self_address|default_if_none:"" }}</p>
<p>{{ invoice.self_city|default_if_none:"" }}</p>
<p>{{ invoice.self_county|default_if_none:"" }}</p>
<p>{{ invoice.self_country|default_if_none:"" }}</p>
{% if invoice.vat_number %}<p>VAT: {{ invoice.vat_number }}</p>{% endif %}
</div>
</aside>
Expand All @@ -42,7 +46,7 @@ <h1 class="text-2xl font-semibold">{{ invoice.self_company|default_if_none:invoi
</div>
<div>
<p class="text-sm text-gray-500 uppercase tracking-wide">Amount Due</p>
<p>GBP {{ invoice.get_currency_symbol }}{{ invoice.get_total_price }}</p>
<p class="font-bold">GBP {{ invoice.get_currency_symbol }}{{ invoice.get_total_price }}</p>
</div>
</section>
</nav>
Expand Down Expand Up @@ -118,7 +122,7 @@ <h2 class="text-lg font-semibold mb-2">Bill To</h2>
</div>
</main>
<!-- Footer section -->
<footer class="mt-8 print:mt-0">
<footer class="mt-8 print:mt-0 flex flex-row">
<!-- Payment Details -->
{% if invoice.account_holder_name and invoice.account_number and invoice.sort_code %}
<div class="w-full sm:w-1/3 h-auto mb-4 sm:mb-0">
Expand All @@ -141,7 +145,7 @@ <h2 class="text-lg font-semibold mb-2">Payment Details</h2>
{% endif %}
<!-- Notes Section -->
{% if invoice.notes %}
<div class="w-full sm:w-2/3 h-auto sm:ml-4">
<div class="">
<h2 class="text-lg font-semibold mb-2">Notes</h2>
<div class="rounded-lg">{{ invoice.notes|markdownify }}</div>
</div>
Expand Down

0 comments on commit a7283a6

Please sign in to comment.