-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new invoice style; removed download invoice as PDF API endpoint.
Signed-off-by: Trey <[email protected]>
- Loading branch information
Showing
19 changed files
with
514 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
# User Guide | ||
|
||
Coming Soon | ||
|
||
<div class="grid cards" markdown> | ||
|
||
- :material-cursor-pointer:{ .lg .middle } __Set up in 5 minutes__ | ||
|
||
--- | ||
|
||
New to MyFinances? Let's go over the basics. | ||
|
||
[:octicons-arrow-right-24: Getting started](getting-started/) | ||
|
||
- :fontawesome-solid-clock-rotate-left:{ .md .middle } __Release Notes__ | ||
|
||
--- | ||
|
||
View our most recent changes. Make sure to view the changelog before upgrading! | ||
|
||
[:octicons-arrow-right-24: Changelog](changelog) | ||
|
||
<li> | ||
<p>Join our Discord</p> | ||
<hr> | ||
<a target="_blank" href="https://discord.gg/9kKG3SMbAr?utm_source=Discord%20Widget&utm_medium=Connect"> | ||
<img src="https://discord.com/api/guilds/1139553863175778367/widget.png?style=banner2"/> | ||
</a> | ||
</li> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Download invoice as a PDF | ||
|
||
Want to download an invoice as a PDF? Sure thing, let's get started. | ||
|
||
First get your invoice created, and head over to the main invoices dashboard. Find your invoice from the list, and click the | ||
three dots on the right - press "Preview" | ||
|
||
![Preview dropdown](preview_dropdown.png) | ||
|
||
Now you're on the invoice, press "print invoice", or alternatively press | ||
<kbd>CTRL</kbd> + <kbd>P</kbd> or <kbd>CMD</kbd> + <kbd>P</kbd> | ||
|
||
![Print invoice](print_invoice.png) | ||
![img.png](img.png) | ||
Once the print dialog appears, select "Save as PDF" as the `destination`, and press `save` at the bottom. Now you have a PDF. | ||
This can be sent to clients manually, or kept as a record! | ||
|
||
![Save as PDF](save_as_pdf_destination.png) | ||
![Save](save_button.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 26 additions & 21 deletions
47
frontend/templates/pages/invoices/view/_client-details.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
<header> | ||
Bill to | ||
</header> | ||
{% if c_type == "client" %} | ||
<p class="font-bold text-gray-800">Bill to</p> | ||
{% if invoice.client_to %} | ||
{% if invoice.client_to.is_representative %}{{ invoice.client_to.company }}{% endif %} | ||
<p class="text-gray-500"> | ||
{{ invoice.client_to.name|default_if_none:"" }} | ||
- | ||
{{ invoice.client_to.email|default_if_none:"" }} | ||
{% if invoice.client_to.phone_number %}({{ invoice.client_to.phone_number }}){% endif %} | ||
</p> | ||
{% endif %} | ||
{% elif c_type == "manual" %} | ||
<p class="font-bold text-gray-800">Bill to</p> | ||
<p class="text-gray-500"> | ||
{% if invoice.client_is_representative %} | ||
<p class="text-lg">{{ invoice.client_company|default_if_none:"" }}</p> | ||
{% if invoice.client_name %} | ||
Represented by <strong>{{ invoice.client_name|default_if_none:"" }}</strong> | ||
{% endif %} | ||
{% if invoice.client_to.is_representative %} | ||
<h1>{{ invoice.client_to.company }}</h1> | ||
<p> | ||
<b>Representative - </b> {{ invoice.client_to.email|default_if_none:"" }} | ||
- {{ invoice.client_to.phone_number|default_if_none:"" }} | ||
</p> | ||
{% else %} | ||
{{ invoice.client_name|default_if_none:"" }} | ||
<br /> | ||
{{ invoice.client_address|default_if_none:"" }} | ||
<h1>{{ invoice.client_to.name|default_if_none:"" }}</h1> | ||
<p> | ||
{{ invoice.client_to.email|default_if_none:"" }} - {{ invoice.client_to.phone_number|default_if_none:"" }} | ||
</p> | ||
{% endif %} | ||
</p> | ||
<p class="text-gray-500">{{ invoice.client_email|default_if_none:"" }}</p> | ||
{% endif %} | ||
{% elif c_type == "manual" %} | ||
{% if invoice.client_is_representative %} | ||
<h1>{{ invoice.client_company }}</h1> | ||
<p> | ||
<b>Representative - </b> {{ invoice.client_name|default_if_none:"" }} | ||
<br /> | ||
</p> | ||
{% else %} | ||
<h1>{{ invoice.client_name|default_if_none:"" }}</h1> | ||
<p>{{ invoice.client_address|default_if_none:"" }}</p> | ||
{% endif %} | ||
</p> | ||
{% endif %} |
Oops, something went wrong.