You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a web page with react to be able to scan a stock qr code of a part (box in our case) that still needs to be assembled, and then getting the list of items that need to go in, and again using the qr code of a compatible stock component to allocate it. I have authentication to inventree working and the qr code scanner. I was wondering if someone could give some guidance with how to get the information via the api efficiently. It start with a stock pk number. There I can see if that part is being build. If so I want to retrieve the bom list for that item. But I believe when a build order is made the bom is copied (because if the bom is changed afterwards it is not reflected in the bom in the build order). how to get that bom list? And then I use endpoint build_allocate_create to allocate items right? Using the bom_item pk (how to get this from the stock item pk?) and the stock_item pk (which is obtained from the scan because all our stock items are qr labeled).
I hope this is a bit clear. Some help how to get the correct information via the initial stock pk of the item to be build is greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am writing a web page with react to be able to scan a stock qr code of a part (box in our case) that still needs to be assembled, and then getting the list of items that need to go in, and again using the qr code of a compatible stock component to allocate it. I have authentication to inventree working and the qr code scanner. I was wondering if someone could give some guidance with how to get the information via the api efficiently. It start with a stock pk number. There I can see if that part is being build. If so I want to retrieve the bom list for that item. But I believe when a build order is made the bom is copied (because if the bom is changed afterwards it is not reflected in the bom in the build order). how to get that bom list? And then I use endpoint
build_allocate_createto allocate items right? Using thebom_item pk(how to get this from the stock item pk?) and thestock_item pk(which is obtained from the scan because all our stock items are qr labeled).I hope this is a bit clear. Some help how to get the correct information via the initial stock pk of the item to be build is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions