mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
* Handle error on unexpected barcode response * Add ManufacturerPart detail view * Support barcode scanning for manufacturer part * Refactoring for null checks * Ignore selected errors in sentry * Fix API implementation for ManufacturerPart * Update release notes * More error handling * Decode quantity betterer * Refactoring * Add option to confirm checkin details * Improve response handlign * Cleanup * Remove unused imports * Fix async function * Fix for assigning custom barcode * Handle barcode scan result for company * Fix * Adjust scan priority * Refactoring MODEL_TYPE - Use instead of duplicated const strings * @override fix
30 lines
671 B
Dart
30 lines
671 B
Dart
import "package:inventree/inventree/model.dart";
|
|
|
|
|
|
/*
|
|
* Class representing the ProjectCode database model
|
|
*/
|
|
class InvenTreeProjectCode extends InvenTreeModel {
|
|
|
|
InvenTreeProjectCode() : super();
|
|
|
|
InvenTreeProjectCode.fromJson(Map<String, dynamic> json) : super.fromJson(json);
|
|
|
|
@override
|
|
InvenTreeModel createFromJson(Map<String, dynamic> json) => InvenTreeProjectCode.fromJson(json);
|
|
|
|
@override
|
|
String get URL => "project-code/";
|
|
|
|
static const String MODEL_TYPE = "projectcode";
|
|
|
|
@override
|
|
Map<String, Map<String, dynamic>> formFields() {
|
|
return {
|
|
"code": {},
|
|
"description": {},
|
|
};
|
|
}
|
|
|
|
String get code => getString("code");
|
|
}
|