mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-08 00:02:05 +00:00
Refactorin'
This commit is contained in:
1 parent
3e3ab680f6
commit
a4c96694bb
2 files changed
+11
-8
No files matched your search
+3
-2
@@ -278,10 +278,11 @@ class APIFormField {
|
||||
itemAsString: (dynamic item) {
|
||||
switch (model) {
|
||||
case "part":
|
||||
return item["full_name"];
|
||||
return InvenTreePart.fromJson(item).fullname;
|
||||
case "partcategory":
|
||||
return InvenTreePartCategory.fromJson(item).pathstring;
|
||||
case "stocklocation":
|
||||
return item["pathstring"];
|
||||
return InvenTreeStockLocation.fromJson(item).pathstring;
|
||||
default:
|
||||
return "itemAsString not implemented for '${model}'";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user