mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Refactoring
This commit is contained in:
parent
19fdac46a7
commit
d5a9f4310e
6 changed files with 9 additions and 62 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue