mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Hide "receive parts" button for orders which have been cancelled
This commit is contained in:
parent
2e5eda80fc
commit
81a3547120
@ -871,7 +871,7 @@ function loadPartPurchaseOrderTable(table, part_id, options={}) {
|
||||
if (row.received >= row.quantity) {
|
||||
// Already recevied
|
||||
return `<span class='badge bg-success rounded-pill'>{% trans "Received" %}</span>`;
|
||||
} else {
|
||||
} else if (row.order_detail && row.order_detail.status == {{ PurchaseOrderStatus.PLACED }}) {
|
||||
var html = `<div class='btn-group' role='group'>`;
|
||||
var pk = row.pk;
|
||||
|
||||
@ -879,6 +879,8 @@ function loadPartPurchaseOrderTable(table, part_id, options={}) {
|
||||
|
||||
html += `</div>`;
|
||||
return html;
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user