Open dieselburner opened 4 months ago
Looks like you are scanning two different barcodes:
(This is from the barcode data).
Well, I tried my best to explain the issue, but seems like I failed.
To keep it simple:
Scan Received Items
Barcode matches existing item
Some more info:
Supplier items
shows that barcode*
field are not set at allI went with printing my own labels, but still think there's something blocking to assign DigiKey barcodes to stock items.
Ah okay, yeah sorry I might have skimmed over some parts. I don't have my own instance nor my InvenTree app updated to a somewhat recent version and this is kind of hard to debug without just trying it.
If required, I might be able to find these barcodes and attached them as images, along with supplier part info. Feel free to request.
@dieselburner please provide that info if you can, not sure how to reproduce the issue elsewise!
This seems to be largely identical with #7690 and also refers to the same area of code - @dieselburner do you think we can streamline discussions on either one and which would you prefer?
@matmair Yes, both this issue and that discussion (which @SchrodingersGat used to create issue you mentioned: https://github.com/inventree/InvenTree/issues/7690) was started by me. While I have used this issue to provide technical information and described the problem that clearly exists, the discussion was originally about how turn off supplier barcode check. But then discussion went into direction which addresses this issue, which is not what I was expecting really. In any case - I will find a bit of time sometime later to provide some more details, including barcode images along with supplier item data, which should be enough to reproduce the issue on your side.
@dieselburner I have since added a functionality that the server records scanned barcodes - to make debugging of scanning via the app much easier. Perhaps if you can update, enable barcode logging, and see what the scanned barcodes are reading as?
Please verify that this bug has NOT been raised before.
Describe the bug*
Linking barcodes via purchase order from DigiKey (Receive line item button) leads to following error:
While checking already linked barcode identifiers via admin panel I have found out server responds with:
41426d2aeca6432f71b14960f7a9fee5
belongs to existing stock component.But... I can receive item without linking barcode, and then I can link the same barcode to the same component which I just received via Stock tab, and it shows barcode identifier as
328370653459f52c520d85e49d3737b7
.Surprisingly, seems like I cannot reproduce this bug on demo site, but there's a chance I haven't followed that exact sequence? Or maybe DigiKey plugin is configured?
Steps to Reproduce
Following plugin is enabled: Supplier Integration - DigiKey Plugin has configured Supplier which points to DigiKey.
Just try to link barcodes to two different components (from the same order?) received from DigiKey.
Expected behaviour
InvenTree treats DigiKey barcodes as unique and successfully links to different stock components.
Deployment Method
Version Information
Version Information:
InvenTree-Version: 0.15.5 Django Version: 4.2.14 Commit Hash: cc45357 Commit Date: 2024-07-12
Database: sqlite3 Debug-Mode: False Deployed using Docker: True Platform: Linux-3.10.108-x86_64-with Installer: DOC
Please verify if you can reproduce this bug on the demo site.
Relevant log output
Component 2:
Hash:
328370653459f52c520d85e49d3737b7
Data: