Skip to content

Unable to allocate stock #7137

Closed as not planned
Closed as not planned

Description

@mabroens

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

Activity

  1. added
    bug
    question
    triage:not-checked
    on Apr 29, 2024
  2. mabroens commented on Apr 29, 2024

    @mabroens
    Author

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

  3. SchrodingersGat commented on May 2, 2024

    @SchrodingersGat
    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.

  4. SchrodingersGat commented on May 2, 2024

    @SchrodingersGat
    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?

  5. mabroens commented on May 2, 2024

    @mabroens
    Author

    @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?

  6. SchrodingersGat commented on May 2, 2024

    @SchrodingersGat
    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

  7. mabroens commented on May 2, 2024

    @mabroens
    Author

    Okay but consumed stock is empty:
    image

    or am i looking at the wrong location??

  8. mabroens commented on May 2, 2024

    @mabroens
    Author

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

    and Build Order Allocations stays on loading:
    image

  9. SchrodingersGat commented on May 3, 2024

    @SchrodingersGat
    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?

  10. mabroens commented on May 3, 2024

    @mabroens
    Author

    image
    this what your looking for?

  11. SchrodingersGat commented on May 3, 2024

    @SchrodingersGat
    Member

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

  12. mabroens commented on May 4, 2024

    @mabroens
    Author

    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??

  13. SchrodingersGat commented on May 8, 2024

    @SchrodingersGat
    Member

    @mabroens found some further issues - #7178

  14. github-actions commented on Jul 7, 2024

    @github-actions
    Contributor

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

  15. added
    inactive
    on Jul 7, 2024
  16. removed
    triage:not-checked
    on Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginactivequestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions