mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Refactor some more forms
This commit is contained in:
parent
1cadaa23d2
commit
4ff6ce1ca3
5 changed files with 28 additions and 32 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue