Display and edit project code for purchase orders

This commit is contained in:
Oliver Walters 2023-04-21 21:05:03 +10:00
parent 340c3ba766
commit 8d1f6161fa
6 changed files with 44 additions and 1 deletions

View file

@ -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");