Refactor some more forms

This commit is contained in:
Oliver committed 2021-08-10 20:47:36 +10:00
1 parent 1cadaa23d2
commit 4ff6ce1ca3
5 files changed
+28 -32

No files matched your search

+13
View File
@@ -15,6 +15,19 @@ class InvenTreeCompany extends InvenTreeModel {
@override
String get URL => "company/";
@override
Map<String, dynamic> formFields() {
return {
"name": {},
"description": {},
"website": {},
"is_supplier": {},
"is_manufacturer": {},
"is_customer": {},
"currency": {},
};
}
InvenTreeCompany() : super();
String get image => jsondata['image'] ?? jsondata['thumbnail'] ?? InvenTreeAPI.staticImage;