Invoice pdf generation: use invoice number and not id

This commit is contained in:
PCoder 2019-04-04 06:52:34 +02:00
parent d4d31dced9
commit 8b6619f788

View file

@ -3,7 +3,7 @@
{% block content %}
<div id="order-detail{{invoice.invoice_id}}" class="order-detail-container">
<div id="order-detail{{invoice.invoice_number}}" class="order-detail-container">
{% if messages %}
<div class="alert alert-warning">
{% for message in messages %}
@ -20,7 +20,7 @@
{% if invoice %}
<div class="dashboard-container-options">
<button type="button" class="btn-plain btn-pdf"
data-target="#order-detail{{invoice.invoice_id}}"><img
data-target="#order-detail{{invoice.invoice_number}}"><img
src="{% static 'hosting/img/icon-pdf.svg' %}"
class="svg-img"></button>
<button type="button" class="btn-plain btn-print"><img