2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-18 18:28:18 +00:00

Stock filters (#10083)

* Stock filters

- Add "supplier" filter
- Add "manufacturer" filter

* Fix docstring
This commit is contained in:
Oliver
2025-07-26 16:59:26 +10:00
committed by GitHub
parent 16f7051d25
commit b2a5533b7a
4 changed files with 34 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ export type TableFilterType = 'boolean' | 'choice' | 'date' | 'text' | 'api';
* displayValue: The current display value of the filter
* active: Whether the filter is active (false = hidden, not used)
* apiUrl: The API URL to use for fetching dynamic filter options
* apiFilter: Optional filters to apply when fetching options from the API
* model: The model type to use for fetching dynamic filter options
* modelRenderer: A function to render a simple text version of the model type
*/
@@ -48,6 +49,7 @@ export type TableFilter = {
displayValue?: any;
active?: boolean;
apiUrl?: string;
apiFilter?: Record<string, any>;
model?: ModelType;
modelRenderer?: (instance: any) => string;
};