Invoice pdf generation: use invoice number and not id
This commit is contained in:
parent
d4d31dced9
commit
8b6619f788
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% 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 %}
|
{% if messages %}
|
||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
{% for message in messages %}
|
{% for message in messages %}
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
{% if invoice %}
|
{% if invoice %}
|
||||||
<div class="dashboard-container-options">
|
<div class="dashboard-container-options">
|
||||||
<button type="button" class="btn-plain btn-pdf"
|
<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' %}"
|
src="{% static 'hosting/img/icon-pdf.svg' %}"
|
||||||
class="svg-img"></button>
|
class="svg-img"></button>
|
||||||
<button type="button" class="btn-plain btn-print"><img
|
<button type="button" class="btn-plain btn-print"><img
|
||||||
|
|
Loading…
Reference in a new issue