mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Fix display of purchase order lines (#8339)
This commit is contained in:
parent
295f733ed9
commit
28146bbbf0
@ -2098,7 +2098,7 @@ function loadPurchaseOrderLineItemTable(table, options={}) {
|
|||||||
{
|
{
|
||||||
sortable: true,
|
sortable: true,
|
||||||
sortName: 'MPN',
|
sortName: 'MPN',
|
||||||
field: 'supplier_part_detail.manufacturer_part_detail.MPN',
|
field: 'mpn',
|
||||||
title: '{% trans "MPN" %}',
|
title: '{% trans "MPN" %}',
|
||||||
formatter: function(value, row, index, field) {
|
formatter: function(value, row, index, field) {
|
||||||
if (row.supplier_part_detail && row.supplier_part_detail.manufacturer_part) {
|
if (row.supplier_part_detail && row.supplier_part_detail.manufacturer_part) {
|
||||||
|
@ -201,7 +201,7 @@ export function PurchaseOrderLineItemTable({
|
|||||||
title: t`Pack Quantity`
|
title: t`Pack Quantity`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessor: 'supplier_part_detail.SKU',
|
accessor: 'sku',
|
||||||
title: t`Supplier Code`,
|
title: t`Supplier Code`,
|
||||||
switchable: false,
|
switchable: false,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
@ -213,12 +213,10 @@ export function PurchaseOrderLineItemTable({
|
|||||||
sortable: false
|
sortable: false
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
accessor: 'MPN',
|
accessor: 'mpn',
|
||||||
|
ordering: 'MPN',
|
||||||
title: t`Manufacturer Code`,
|
title: t`Manufacturer Code`,
|
||||||
sortable: true,
|
sortable: true
|
||||||
|
|
||||||
render: (record: any) =>
|
|
||||||
record?.supplier_part_detail?.manufacturer_part_detail?.MPN
|
|
||||||
},
|
},
|
||||||
CurrencyColumn({
|
CurrencyColumn({
|
||||||
accessor: 'purchase_price',
|
accessor: 'purchase_price',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user