Repository navigation
Description
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
- Navigate to stock menu
- Click Download table data and download the data in any format
- 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
SchrodingersGat commentedon Jan 22, 2024
@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
JambonLeVrai commentedon Jan 23, 2024
On the image, the column I am talking about is the one I framed in red :


And whenever the stock is exported (here I took .xlsx as an example) we get all those columns :
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.
SchrodingersGat commentedon Jan 31, 2024
@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 :)
github-actions commentedon Mar 31, 2024
This issue seems stale. Please react to show this is still important.
JackFGS commentedon Apr 10, 2024
Not Stale
SchrodingersGat commentedon Apr 10, 2024
@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
SchrodingersGat commentedon Jul 5, 2024
This is now implemented in #6911