2
0
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:
Oliver 2025-02-23 09:31:02 +11:00 committed by GitHub
parent c3f737b320
commit 05fa36df72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 3 additions and 10 deletions

View File

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

View File

@ -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'
]} ]}
/> />
) )

View File

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

View File

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