mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Code cleanup
This commit is contained in:
parent
2a5bb4631b
commit
d2ce3fadf1
19 changed files with 36 additions and 81 deletions
|
|
@ -35,8 +35,7 @@ class InvenTreeStockItemTestResult extends InvenTreeModel {
|
|||
|
||||
InvenTreeStockItemTestResult() : super();
|
||||
|
||||
InvenTreeStockItemTestResult.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
||||
}
|
||||
InvenTreeStockItemTestResult.fromJson(Map<String, dynamic> json) : super.fromJson(json);
|
||||
|
||||
@override
|
||||
InvenTreeStockItemTestResult createFromJson(Map<String, dynamic> json) {
|
||||
|
|
@ -388,9 +387,8 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||
}
|
||||
|
||||
String get locationPathString {
|
||||
String path = '';
|
||||
|
||||
if (locationId == -1 || !jsondata.containsKey('location_detail')) return 'No location specified';
|
||||
if (locationId == -1 || !jsondata.containsKey('location_detail')) return L10().locationNotSet;
|
||||
|
||||
return jsondata['location_detail']['pathstring'] ?? '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue