• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

inventree / inventree-app / 12326848637

14 Dec 2024 04:24AM UTC coverage: 8.386% (-0.1%) from 8.518%
12326848637

push

github

web-flow
[refactor] Scan improvements (#577)

* 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

4 of 241 new or added lines in 17 files covered. (1.66%)

12 existing lines in 9 files now uncovered.

723 of 8621 relevant lines covered (8.39%)

0.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/inventree/project_code.dart
1
import "package:inventree/inventree/model.dart";
2

3

4
/*
5
 * Class representing the ProjectCode database model
6
 */
7
class InvenTreeProjectCode extends InvenTreeModel {
8

9
  InvenTreeProjectCode() : super();
×
10

11
  InvenTreeProjectCode.fromJson(Map<String, dynamic> json) : super.fromJson(json);
×
12

13
  @override
×
14
  InvenTreeModel createFromJson(Map<String, dynamic> json) => InvenTreeProjectCode.fromJson(json);
×
15

16
  @override
×
17
  String get URL => "project-code/";
18

19
  static const String MODEL_TYPE = "projectcode";
20

UNCOV
21
  @override
×
22
  Map<String, Map<String, dynamic>> formFields() {
23
    return {
×
24
      "code": {},
×
25
      "description": {},
×
26
    };
27
  }
28

29
  String get code => getString("code");
×
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc