Fix logic for enabling "place order" button

This commit is contained in:
Oliver 2022-02-08 08:59:42 +11:00
parent ba1c7caa2a
commit dbf1e1b463

View File

@ -178,7 +178,7 @@ src="{% static 'img/blank_image.png' %}"
{{ block.super }} {{ block.super }}
{% if order.status == PurchaseOrderStatus.PENDING and order.lines.count > 0 %} {% if order.status == PurchaseOrderStatus.PENDING %}
$("#place-order").click(function() { $("#place-order").click(function() {
launchModalForm("{% url 'po-issue' order.id %}", launchModalForm("{% url 'po-issue' order.id %}",
{ {