Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to allocate stock #7137

Closed
2 of 6 tasks
mabroens opened this issue Apr 29, 2024 · 13 comments
Closed
2 of 6 tasks

Unable to allocate stock #7137

mabroens opened this issue Apr 29, 2024 · 13 comments
Labels
bug Identifies a bug which needs to be addressed inactive Indicates lack of activity question This is a question

Comments

@mabroens
Copy link

mabroens commented Apr 29, 2024

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

After Cancelling a build order
image

image

im not able to allocate stock a new build order:
image

but if i understand correct: than i still have 1377 pcs availeble and require 1125 more. but for some reason i can not allocate them.

coudl you please advice what t check .

and its for many parts not this single item.

Steps to Reproduce

image

image

image

Expected behaviour

i would expect the 2799 pcs to be availeble:
image

Deployment Method

  • Docker
  • Package
  • Bare metal
  • Other - added info in Steps to Reproduce

Version Information

Version Information:

InvenTree-Version: 0.14.5
Django Version: 4.2.11
Commit Hash: b32f081
Commit Date: None
Commit Branch: stable
Database: sqlite3
Debug-Mode: False
Deployed using Docker: False
Platform: Linux-6.5.0-28-generic-x86_64-with-glibc2.35
Installer: PKG
Target: ubuntu:20.04
Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.0.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}, {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'}, {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.0.0'}, {'name': 'InvenTreeLabelMachine', 'slug': 'inventreelabelmachine', 'version': '1.0.0'}, {'name': 'InvenTreeLabelSheet', 'slug': 'inventreelabelsheet', 'version': '1.0.0'}, {'name': 'DigiKeyPlugin', 'slug': 'digikeyplugin', 'version': '1.0.0'}, {'name': 'LCSCPlugin', 'slug': 'lcscplugin', 'version': '1.0.0'}, {'name': 'MouserPlugin', 'slug': 'mouserplugin', 'version': '1.0.0'}, {'name': 'TMEPlugin', 'slug': 'tmeplugin', 'version': '1.0.0'}]

Please verify if you can reproduce this bug on the demo site.

  • I can reproduce this bug on the demo site.

Relevant log output

No response

@mabroens mabroens added bug Identifies a bug which needs to be addressed question This is a question triage:not-checked Item was not checked by the core team labels Apr 29, 2024
@mabroens
Copy link
Author

To add to this: when i select a part and go for Build ORder Allocations, that page keeps loading data and never finishes.

@SchrodingersGat
Copy link
Member

@mabroens if I am understanding what you are saying:

image

Selecting "Remove Allocated Stock" when cancelling a build order will actually remove that quantity of stock and it will be consumed by the build order. Thus, it will not be available any longer. So, I think that this is simply what has happened here - the quantity of stock has been consumed by the build order during cancellation.

@SchrodingersGat
Copy link
Member

To add to this: when i select a part and go for Build ORder Allocations, that page keeps loading data and never finishes.

Can you reproduce this on the demo server?

@mabroens
Copy link
Author

mabroens commented May 2, 2024

@SchrodingersGat ai. yes that is what i did but not how i thought it would work.
any way using admin or whatever to revert this?

@SchrodingersGat
Copy link
Member

You can go to the build order and for each "consumed stock item" you will need to open the admin view and set the "consumed_by" field to null. That should be enough to bring those stock items back into the system

@mabroens
Copy link
Author

mabroens commented May 2, 2024

Okay but consumed stock is empty:
image

or am i looking at the wrong location??

@mabroens
Copy link
Author

mabroens commented May 2, 2024

Also for each part that was in in these buildorders i see:
image

and Build Order Allocations stays on loading:
image

@SchrodingersGat
Copy link
Member

and Build Order Allocations stays on loading:

Can you open up the developer console in your browser, and in the "console" tab you will probably see an error message there?

@mabroens
Copy link
Author

mabroens commented May 3, 2024

image
this what your looking for?

@SchrodingersGat
Copy link
Member

@mabroens thanks, that was helpful. Bug fix incoming in #7153 which should handle most of the issues raised here...

@mabroens
Copy link
Author

mabroens commented May 4, 2024

Okay but consumed stock is empty: image

or am i looking at the wrong location??

@SchrodingersGat was this the right location or should i wait for a fix??

@SchrodingersGat
Copy link
Member

@mabroens found some further issues - #7178

Copy link
Contributor

github-actions bot commented Jul 7, 2024

This issue seems stale. Please react to show this is still important.

@github-actions github-actions bot added the inactive Indicates lack of activity label Jul 7, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2024
@matmair matmair removed the triage:not-checked Item was not checked by the core team label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies a bug which needs to be addressed inactive Indicates lack of activity question This is a question
Projects
None yet
Development

No branches or pull requests

3 participants