Refactoring

This commit is contained in:
Oliver Walters 2024-12-11 21:35:56 +11:00
parent 19fdac46a7
commit d5a9f4310e
6 changed files with 9 additions and 62 deletions

View file

@ -155,7 +155,8 @@ class InvenTreeSupplierPart extends InvenTreeModel {
return fields;
}
Map<String, String> _filters() {
@override
Map<String, String> defaultFilters() {
return {
"manufacturer_detail": "true",
"supplier_detail": "true",
@ -163,15 +164,6 @@ class InvenTreeSupplierPart extends InvenTreeModel {
};
}
@override
Map<String, String> defaultListFilters() {
return _filters();
}
@override
Map<String, String> defaultGetFilters() {
return _filters();
}
int get manufacturerId => getInt("pk", subKey: "manufacturer_detail");