diff --git a/InvenTree/order/api.py b/InvenTree/order/api.py index fb175d3037..0148a3c29f 100644 --- a/InvenTree/order/api.py +++ b/InvenTree/order/api.py @@ -1034,7 +1034,7 @@ order_api_urls = [ url(r'^.*$', POLineItemList.as_view(), name='api-po-line-list'), ])), - # API endpoints for sales ordesr + # API endpoints for sales orders url(r'^so/', include([ url(r'attachment/', include([ url(r'^(?P\d+)/$', SOAttachmentDetail.as_view(), name='api-so-attachment-detail'), diff --git a/InvenTree/templates/js/translated/order.js b/InvenTree/templates/js/translated/order.js index 6ea4e9ebb6..9d66fa2ab4 100644 --- a/InvenTree/templates/js/translated/order.js +++ b/InvenTree/templates/js/translated/order.js @@ -2048,15 +2048,7 @@ function loadSalesOrderAllocationTable(table, options={}) { field: 'location', title: '{% trans "Location" %}', formatter: function(value, row) { - - if (!value) { - return '{% trans "Location not specified" %}'; - } - - var link = `/stock/location/${value}`; - var text = row.location_detail.description; - - return renderLink(text, link); + return locationDetail(row.item_detail, true); } }, { diff --git a/InvenTree/templates/js/translated/table_filters.js b/InvenTree/templates/js/translated/table_filters.js index a4c6a0bbac..81d43d2c3f 100644 --- a/InvenTree/templates/js/translated/table_filters.js +++ b/InvenTree/templates/js/translated/table_filters.js @@ -341,6 +341,15 @@ function getAvailableTableFilters(tableKey) { }; } + if (tableKey == 'salesorderallocation') { + return { + outstanding: { + type: 'bool', + title: '{% trans "Outstanding" %}', + } + }; + } + if (tableKey == 'salesorder') { return { status: {