mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06: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,
|
||||
sortName: 'MPN',
|
||||
field: 'supplier_part_detail.manufacturer_part_detail.MPN',
|
||||
field: 'mpn',
|
||||
title: '{% trans "MPN" %}',
|
||||
formatter: function(value, row, index, field) {
|
||||
if (row.supplier_part_detail && row.supplier_part_detail.manufacturer_part) {
|
||||
|
@ -201,7 +201,7 @@ export function PurchaseOrderLineItemTable({
|
||||
title: t`Pack Quantity`
|
||||
},
|
||||
{
|
||||
accessor: 'supplier_part_detail.SKU',
|
||||
accessor: 'sku',
|
||||
title: t`Supplier Code`,
|
||||
switchable: false,
|
||||
sortable: true,
|
||||
@ -213,12 +213,10 @@ export function PurchaseOrderLineItemTable({
|
||||
sortable: false
|
||||
}),
|
||||
{
|
||||
accessor: 'MPN',
|
||||
accessor: 'mpn',
|
||||
ordering: 'MPN',
|
||||
title: t`Manufacturer Code`,
|
||||
sortable: true,
|
||||
|
||||
render: (record: any) =>
|
||||
record?.supplier_part_detail?.manufacturer_part_detail?.MPN
|
||||
sortable: true
|
||||
},
|
||||
CurrencyColumn({
|
||||
accessor: 'purchase_price',
|
||||
|
Loading…
x
Reference in New Issue
Block a user