diff --git a/ios/Flutter/flutter_export_environment.sh b/ios/Flutter/flutter_export_environment.sh index 0621fdd1..5e0b8351 100644 --- a/ios/Flutter/flutter_export_environment.sh +++ b/ios/Flutter/flutter_export_environment.sh @@ -7,8 +7,8 @@ export "FLUTTER_BUILD_DIR=build" export "SYMROOT=${SOURCE_ROOT}/../build\ios" export "OTHER_LDFLAGS=$(inherited) -framework Flutter" export "FLUTTER_FRAMEWORK_DIR=C:\flutter\bin\cache\artifacts\engine\ios" -export "FLUTTER_BUILD_NAME=0.1.0" -export "FLUTTER_BUILD_NUMBER=3" +export "FLUTTER_BUILD_NAME=0.1.1" +export "FLUTTER_BUILD_NUMBER=5" export "DART_OBFUSCATION=false" export "TRACK_WIDGET_CREATION=false" export "TREE_SHAKE_ICONS=false" diff --git a/lib/inventree/part.dart b/lib/inventree/part.dart index 90db15ef..a1c48486 100644 --- a/lib/inventree/part.dart +++ b/lib/inventree/part.dart @@ -172,6 +172,8 @@ class InvenTreePart extends InvenTreeModel { }); } + int get supplier_count => jsondata['suppliers'] as int ?? 0; + // Cached list of test templates List testingTemplates = List(); diff --git a/lib/widget/part_detail.dart b/lib/widget/part_detail.dart index 6d1418f2..c9e004b9 100644 --- a/lib/widget/part_detail.dart +++ b/lib/widget/part_detail.dart @@ -234,6 +234,19 @@ class _PartDisplayState extends RefreshableState { ), ); + if (false && part.isPurchaseable) { + + if (part.supplier_count > 0) { + tiles.add( + ListTile( + title: Text("Suppliers"), + leading: FaIcon(FontAwesomeIcons.industry), + trailing: Text("${part.supplier_count}"), + ) + ); + } + } + // TODO - Add link to parts on order // Parts on order if (false && part.isPurchaseable) { diff --git a/pubspec.yaml b/pubspec.yaml index 04287523..1e469703 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,7 +7,7 @@ description: InvenTree stock management # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.1.0+3 +version: 0.1.1+5 environment: sdk: ">=2.1.0 <3.0.0"