mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Render link to "parent template part" (if it exists)
This commit is contained in:
parent
f34e9bb2aa
commit
60475f518e
3 changed files with 41 additions and 1 deletions
|
|
@ -305,6 +305,9 @@ class InvenTreePart extends InvenTreeModel {
|
|||
|
||||
String get units => (jsondata["units"] ?? "") as String;
|
||||
|
||||
// Get the ID of the Part that this part is a variant of (or null)
|
||||
int? get variantOf => jsondata["variant_of"] as int?;
|
||||
|
||||
// Get the number of units being build for this Part
|
||||
double get building => double.tryParse(jsondata["building"].toString()) ?? 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue