2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-17 20:55:26 +00:00

Add 'tests' button for part

This commit is contained in:
Oliver Walters
2020-05-23 14:28:43 +10:00
parent 952f98d78b
commit 687b5ed8c7
2 changed files with 12 additions and 0 deletions

View File

@ -98,6 +98,8 @@ class InvenTreePart extends InvenTreeModel {
bool get isVirtual => jsondata['virtual'] ?? false;
bool get isTrackable => jsondata['trackable'] ?? false;
// Get the IPN (internal part number) for the Part instance
String get IPN => jsondata['IPN'] as String ?? '';