Skip to content

Exporting a Stock table does not include the "Stock value" column #6321

Closed

Description

@JambonLeVrai

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

The "Stock value" column, which is displayed when displaying the stock, is not exported when performing an export.

Steps to Reproduce

  1. Navigate to stock menu
  2. Click Download table data and download the data in any format
  3. Open and check the exported file

Expected behaviour

I would expect this column to be exported along with the rest. It seems pretty straightforward, since the export function exports pretty much all the info displayed on the table of the inventree frontend, that it would also export this column.
The "stock value" also includes some valuable information that cannot be obtained from the other columns, since it gives a value to a stock item even if it is not tied to a purchase order (and therefore does not have a purchase price) or if it is an assembly (where the value is computed from the components of the assembly).

Deployment Method

  • Docker
  • Bare metal

Version Information

Version Information:

InvenTree-Version: 0.13.3
Django Version: 3.2.23
Commit Hash: e81349e
Commit Date: 22/01/2024

Database: postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-5.15.0-91-generic-x86_64-with
Installer: DOC

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': '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 Jan 22, 2024
  2. SchrodingersGat commented on Jan 22, 2024

    @SchrodingersGat
    Member

    @JambonLeVrai can you please provide an example screenshot of the data you are looking to export here? I'm not sure exactly what you're asking for

  3. added
    import / export
    and removed
    bug
    triage:not-checked
    on Jan 22, 2024
  4. JambonLeVrai commented on Jan 23, 2024

    @JambonLeVrai
    Author

    On the image, the column I am talking about is the one I framed in red :
    image
    And whenever the stock is exported (here I took .xlsx as an example) we get all those columns :
    image
    Where the stock value column is missing. In this example, on the second line there is no purchase price, because the stock wasn't tied to a purchase order, but is still valued thanks to the other pricings available in the database ; this is the information I would like to keep when exporting the stock.

  5. added
    Seeking Funding
    on Jan 31, 2024
  6. SchrodingersGat commented on Jan 31, 2024

    @SchrodingersGat
    Member

    @JambonLeVrai I see what you are saying. This could be added in to the export feature. Would you be willing to sponsor this? There are a lot of other features on our development schedule :)

  7. github-actions commented on Mar 31, 2024

    @github-actions
    Contributor

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

  8. added
    inactive
    on Mar 31, 2024
  9. JackFGS commented on Apr 10, 2024

    @JackFGS

    Not Stale

  10. SchrodingersGat commented on Apr 10, 2024

    @SchrodingersGat
    Member

    @JackFGS @JambonLeVrai if you guys want to see attention given to this, I suggest that you check out this issue.

    The import / export framework is undergoing a major refactor which will allow us to support new features such as this. Is you would like to see this given priority you can sponsor either this issue or #3101

  11. added this to the horizon milestone on Apr 10, 2024
  12. SchrodingersGat commented on Jul 5, 2024

    @SchrodingersGat
    Member

    This is now implemented in #6911

  13. removed
    Seeking Funding
    on Mar 20, 2025
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

    import / exportinactivequestion

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions