2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00
This commit is contained in:
Oliver Walters 2021-02-22 22:05:50 +11:00
parent 9f5583ee68
commit d93f32ac2c
4 changed files with 18 additions and 3 deletions

View File

@ -7,8 +7,8 @@ export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build\ios" export "SYMROOT=${SOURCE_ROOT}/../build\ios"
export "OTHER_LDFLAGS=$(inherited) -framework Flutter" export "OTHER_LDFLAGS=$(inherited) -framework Flutter"
export "FLUTTER_FRAMEWORK_DIR=C:\flutter\bin\cache\artifacts\engine\ios" export "FLUTTER_FRAMEWORK_DIR=C:\flutter\bin\cache\artifacts\engine\ios"
export "FLUTTER_BUILD_NAME=0.1.0" export "FLUTTER_BUILD_NAME=0.1.1"
export "FLUTTER_BUILD_NUMBER=3" export "FLUTTER_BUILD_NUMBER=5"
export "DART_OBFUSCATION=false" export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=false" export "TRACK_WIDGET_CREATION=false"
export "TREE_SHAKE_ICONS=false" export "TREE_SHAKE_ICONS=false"

View File

@ -172,6 +172,8 @@ class InvenTreePart extends InvenTreeModel {
}); });
} }
int get supplier_count => jsondata['suppliers'] as int ?? 0;
// Cached list of test templates // Cached list of test templates
List<InvenTreePartTestTemplate> testingTemplates = List<InvenTreePartTestTemplate>(); List<InvenTreePartTestTemplate> testingTemplates = List<InvenTreePartTestTemplate>();

View File

@ -234,6 +234,19 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
), ),
); );
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 // TODO - Add link to parts on order
// Parts on order // Parts on order
if (false && part.isPurchaseable) { if (false && part.isPurchaseable) {

View File

@ -7,7 +7,7 @@ description: InvenTree stock management
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.1.0+3 version: 0.1.1+5
environment: environment:
sdk: ">=2.1.0 <3.0.0" sdk: ">=2.1.0 <3.0.0"