mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 19:46:25 +00:00
Display and edit project code for purchase orders
This commit is contained in:
parent
340c3ba766
commit
8d1f6161fa
6 changed files with 44 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ class InvenTreePart extends InvenTreeModel {
|
|||
double get building => getDouble("building");
|
||||
|
||||
// Get the number of BOMs this Part is used in (if it is a component)
|
||||
int get usedInCount => getInt("used_in");
|
||||
int get usedInCount => jsondata.containsKey("used_in") ? getInt("used_in", backup: 0) : 0;
|
||||
|
||||
bool get isAssembly => getBool("assembly");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue