Merge pull request #2610 from SchrodingersGat/po-button-fix

Fix logic for enabling "place order" button
This commit is contained in:
Oliver 2022-02-08 09:27:10 +11:00 committed by GitHub
commit 23e6caf1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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