2
0
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:
Miklós Márton
2024-04-02 01:34:06 +02:00
committed by GitHub
parent 7640df7c63
commit e04fd3dac1
4 changed files with 53 additions and 2 deletions

View File

@ -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