mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 21:15:41 +00:00
Add test start, end date and test station to the next gen UI (#6883)
* Add test start, end date and test station to the next gen UI * [PUI]Add new test fields to the forms too * Fix review comments * Fix review comments #2
This commit is contained in:
@ -202,6 +202,41 @@ export default function StockItemTestResultTable({
|
||||
</Group>
|
||||
);
|
||||
}
|
||||
},
|
||||
{
|
||||
accessor: 'test_station',
|
||||
sortable: true,
|
||||
title: t`Test station`
|
||||
},
|
||||
{
|
||||
accessor: 'started_datetime',
|
||||
sortable: true,
|
||||
title: t`Started`,
|
||||
render: (record: any) => {
|
||||
return (
|
||||
<Group position="apart">
|
||||
{renderDate(record.started_datetime, {
|
||||
showTime: true,
|
||||
showSeconds: true
|
||||
})}
|
||||
</Group>
|
||||
);
|
||||
}
|
||||
},
|
||||
{
|
||||
accessor: 'finished_datetime',
|
||||
sortable: true,
|
||||
title: t`Finished`,
|
||||
render: (record: any) => {
|
||||
return (
|
||||
<Group position="apart">
|
||||
{renderDate(record.finished_datetime, {
|
||||
showTime: true,
|
||||
showSeconds: true
|
||||
})}
|
||||
</Group>
|
||||
);
|
||||
}
|
||||
}
|
||||
];
|
||||
}, [itemId]);
|
||||
@ -218,6 +253,9 @@ export default function StockItemTestResultTable({
|
||||
value: {},
|
||||
attachment: {},
|
||||
notes: {},
|
||||
test_station: {},
|
||||
started_datetime: {},
|
||||
finished_datetime: {},
|
||||
stock_item: {
|
||||
value: itemId,
|
||||
hidden: true
|
||||
|
Reference in New Issue
Block a user