mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
TODO Cleanup (#9152)
This commit is contained in:
parent
c3f737b320
commit
05fa36df72
@ -206,9 +206,6 @@ export function useStockFields({
|
|||||||
delete_on_deplete: {}
|
delete_on_deplete: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: Handle custom field management based on provided options
|
|
||||||
// TODO: refer to stock.py in original codebase
|
|
||||||
|
|
||||||
// Remove the expiry date field if it is not enabled
|
// Remove the expiry date field if it is not enabled
|
||||||
if (!globalSettings.isSet('STOCK_ENABLE_EXPIRY')) {
|
if (!globalSettings.isSet('STOCK_ENABLE_EXPIRY')) {
|
||||||
delete fields.expiry_date;
|
delete fields.expiry_date;
|
||||||
|
@ -184,19 +184,19 @@ export default function SystemSettings() {
|
|||||||
'PART_NAME_FORMAT',
|
'PART_NAME_FORMAT',
|
||||||
'PART_SHOW_RELATED',
|
'PART_SHOW_RELATED',
|
||||||
'PART_CREATE_INITIAL',
|
'PART_CREATE_INITIAL',
|
||||||
'PART_CREATE_SUPPLIER', // TODO: Break here
|
'PART_CREATE_SUPPLIER',
|
||||||
'PART_TEMPLATE',
|
'PART_TEMPLATE',
|
||||||
'PART_ASSEMBLY',
|
'PART_ASSEMBLY',
|
||||||
'PART_COMPONENT',
|
'PART_COMPONENT',
|
||||||
'PART_TRACKABLE',
|
'PART_TRACKABLE',
|
||||||
'PART_PURCHASEABLE',
|
'PART_PURCHASEABLE',
|
||||||
'PART_SALABLE',
|
'PART_SALABLE',
|
||||||
'PART_VIRTUAL', // TODO: Break here
|
'PART_VIRTUAL',
|
||||||
'PART_COPY_BOM',
|
'PART_COPY_BOM',
|
||||||
'PART_COPY_PARAMETERS',
|
'PART_COPY_PARAMETERS',
|
||||||
'PART_COPY_TESTS',
|
'PART_COPY_TESTS',
|
||||||
'PART_CATEGORY_PARAMETERS',
|
'PART_CATEGORY_PARAMETERS',
|
||||||
'PART_CATEGORY_DEFAULT_ICON' // TODO: Move to part category settings page
|
'PART_CATEGORY_DEFAULT_ICON'
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
@ -129,8 +129,6 @@ function partTableColumns(): TableColumn[] {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Add extra information on stock "demand"
|
|
||||||
|
|
||||||
if (stock <= 0) {
|
if (stock <= 0) {
|
||||||
color = 'red';
|
color = 'red';
|
||||||
text = t`No stock`;
|
text = t`No stock`;
|
||||||
|
@ -119,8 +119,6 @@ export default function PluginListTable() {
|
|||||||
render: (record: any) => {
|
render: (record: any) => {
|
||||||
return record?.meta.version;
|
return record?.meta.version;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Display date information if available
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessor: 'meta.author',
|
accessor: 'meta.author',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user