diff --git a/InvenTree/templates/js/translated/part.js b/InvenTree/templates/js/translated/part.js index c2e4bb15a2..7d9ba454e8 100644 --- a/InvenTree/templates/js/translated/part.js +++ b/InvenTree/templates/js/translated/part.js @@ -871,7 +871,7 @@ function loadPartPurchaseOrderTable(table, part_id, options={}) { if (row.received >= row.quantity) { // Already recevied return `{% trans "Received" %}`; - } else { + } else if (row.order_detail && row.order_detail.status == {{ PurchaseOrderStatus.PLACED }}) { var html = `
`; var pk = row.pk; @@ -879,6 +879,8 @@ function loadPartPurchaseOrderTable(table, part_id, options={}) { html += `
`; return html; + } else { + return ''; } } }