Skip to content

[Bug]: DigiKey order import shows wrong currency #376

@jingsno

Description

@jingsno

Binner version

2.6.15

Operating System

Ubuntu

Describe the bug and the steps to reproduce it

This issue has previously been mentioned in a post in issue #344

v.2.6.13 Auth works great, thanks a lot for implementing this so quickly! During my first test, I noticed that the item cost and quantity is different when toggling the "request all product information". When this is off, cost is falsely given in USD (instead of EUR used in the order and set as the Binner currency), but the quantity is correct. Toggling this on, the cost is correctly given in EUR (values unchanged), but the quantity is wrong. Thus when importing the quantity of inventory managed by binner is not correct. I'm unsure whether that's related to handling of the new API version as I don't have access to Digikey's V3 API.

Image

Image

Edit: I just noticed that the false quantities displayed when "request all product information" is on are the number of units in-stock at Digikey, not the quantity I ordered

Parts of this has been corrected in #360 as the quantity of the parts, now is correct when "Request all Product information" is selected. The imported currency (in my case NOK) is also correct when "Request all Product information" is selected.

However, when "Request all Product information" is NOT selected, the reported currency for imported items, is (in my case) $/USD. (The currency values reported are the correct ones, in the local currency.)

Would you like to attach your appsetings.json configuration?

No response

Screenshots or Videos (Optional, but they help!)

Image

Image

Are you able to contribute a PR? (No is ok!)

None

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions