Repository navigation
Add bulk stock creation from the barcode scan page - #12648
mattstyles333 wants to merge 7 commits into
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@mattstyles333 can you please respond to the questions above |
Selected parts can be turned into stock items with a shared quantity and location. The same part may be scanned more than once so each physical package becomes its own stock item. Co-authored-by: Cursor <[email protected]>
Contributing requires user docs for new UI behaviour. Co-authored-by: Cursor <[email protected]>
BarcodeScanItem.pk is a string; convert it with Number() instead of a non-overlapping type assertion so tsc can build the Netlify preview. Co-authored-by: Cursor <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
9d3bfa0 to
10088de
Compare
|
@SchrodingersGat sorry for the delay, replied above. Reverted the unrelated changes and rebased on latest master. |
|
@mattstyles333 thanks for the changes. LMK if you need any pointers on getting the tests up and running |
|
Thanks! Got them running. Fixed the flaky scan test and merged master. Mind approving the workflows? (Price Breaks fails on master too, so ignore that one if it fails here.) |
|
@matmair are you happy with this? |
|
tbh not really a fan of the current code structure. The scan page in this diff creates a bunch of stock/part specific elements and states that set a band precedence if this was ever to be extended to support more actions/model types The general function itself looks fine but I have not tested this extensively. |

Description
The Scan page currently lists barcodes and has a stub action. This fills that in for parts: select scanned parts, then create stock items with a shared quantity and location.
The same part can be scanned more than once (each scan is a package). Other model types still de-duplicate.
Checklist
mastert/Trans)pui_scan.spec.tsTest plan
pui_scan.spec.ts(duplicate parts + create-stock modal)