Skip to content

Commit

Permalink
#417 Fixed link in invoices.html.
Browse files Browse the repository at this point in the history
  • Loading branch information
criske committed Apr 7, 2021
1 parent 5336df1 commit a80562c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/resources/templates/invoices.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ <h4 class="m-0 font-weight-bold card-title">Platform Invoices</h4>
netRevenue += invoice.commission;
totalVat += invoice.vat;
return [
"<a href='/api/invoices/platform/" + invoice.id + "/pdf'>" + invoice.number + "</a>",
"<a href='/api/invoices/platform/" + invoice.id + "/pdf' target='_blank'>" + invoice.number + "</a>",
invoice.createdAt.split('T')[0],
formatEuro(invoice.commission),
formatEuro(invoice.vat),
formatEuro(invoice.total),
invoice.paidAt.split('T')[0],
"<a href='/api/invoices/platform/" + invoice.id + "/project/pdf'><i title='Contributor Invoice To Project' class='fa fa-cloud-download fa-lg'></i></a>"
+"<a href='/api/invoices/platform/" + invoice.id + "/project/pdf?view=true'><i title='Contributor Invoice To Project' class='fa fa-file-pdf-o fa-lg'></i></a>"
"<a href='/api/invoices/platform/" + invoice.id + "/project/pdf' target='_blank'><i title='Contributor Invoice To Project' class='fa fa-file-pdf-o fa-lg'></i></a>"
]
}
$(document).ready(
Expand Down

0 comments on commit a80562c

Please sign in to comment.