Fix Install Stock Items shows only selected parts (#12596)

* Bug Fix Install Stock Item showing variant stock when BOM disallows variants

* Add regression test for include_variants stock filter

---------

Co-authored-by: Siddhartha Ravilla <ravilla.si@northeastern.edu>
This commit is contained in:
siddhartha28
2026-08-09 17:57:18 +10:00
committed by GitHub
co-authored by Siddhartha Ravilla
parent 214f472ec9
commit 76bce6a7b1
2 changed files with 45 additions and 1 deletions
+2 -1
View File
@@ -411,7 +411,8 @@ export function useStockItemInstallFields({
in_stock: true,
available: true,
tracked: true,
part: selectedPart ? selectedPart : undefined
part: selectedPart ? selectedPart : undefined,
include_variants: false
}
},
quantity: {},