mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-16 20:25:26 +00:00
Refactor some more forms
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user