Fixes for purchase order table displays

This commit is contained in:
Oliver Walters 2020-11-12 12:27:01 +11:00
parent 391eeb0e46
commit b7187c5e06
2 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,7 @@ $("#po-table").inventreeTable({
field: 'part',
sortable: true,
title: '{% trans "Part" %}',
switchable: false,
formatter: function(value, row, index, field) {
if (row.part) {
return imageHoverIcon(row.part_detail.thumbnail) + renderLink(row.part_detail.full_name, `/part/${row.part_detail.pk}/`);
@ -180,6 +181,7 @@ $("#po-table").inventreeTable({
{
sortable: true,
field: 'received',
switchable: false,
title: '{% trans "Received" %}',
formatter: function(value, row, index, field) {
return makeProgressBar(row.received, row.quantity, {
@ -203,6 +205,7 @@ $("#po-table").inventreeTable({
title: '{% trans "Notes" %}',
},
{
switchable: false,
field: 'buttons',
title: '',
formatter: function(value, row, index, field) {

View File

@ -137,6 +137,7 @@ function loadPurchaseOrderTable(table, options) {
sortable: true,
field: 'reference',
title: '{% trans "Purchase Order" %}',
switchable: false,
formatter: function(value, row, index, field) {
var prefix = "{% settings_value 'PURCHASEORDER_REFERENCE_PREFIX' %}";