Attempt invoice pdf with invoice_id instead of pk

This commit is contained in:
PCoder 2019-04-04 06:50:13 +02:00
parent f50e5dcaa4
commit d4d31dced9

View file

@ -3,7 +3,7 @@
{% block content %} {% block content %}
<div id="order-detail{{invoice.pk}}" class="order-detail-container"> <div id="order-detail{{invoice.invoice_id}}" 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.pk}}"><img data-target="#order-detail{{invoice.invoice_id}}"><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