Skip to content

Purchase order doesn't find all components - and uses wrong currency #6647

Closed

Description

@tomse

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

So I'm trying out a purchase order and import a .csv - all the components are added beforehand.
Some components are shown in step 3 of the import, and some are not - red circles in the screenshots.

(should I make a new bug report for the currency?)
My currency default is Danish Kr., but for this supplier I've chosen USD. (see yellow circles)
How can I make a selection that everything should be in USD? having 20+ different components is tedious to change.

image

Here you can see one of the individual parts that aren't to find for the same supplier partnumber (column selection naming would be nice if they also are the same as Step 2 in the csv import).
image

Steps to Reproduce

Make an order, make sure all the components have been added beforehand.
Get a CSV with your order and upload it.

Expected behaviour

all the missing component fields should be filled out.

Deployment Method

  • Docker
  • Bare metal

Version Information

[0.13.5]

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 Mar 5, 2024
  2. tomse commented on Mar 5, 2024

    @tomse
    Author

    LCSC_Exported.csv

    Attached is my CSV file

  3. added
    import / export
    and removed
    triage:not-checked
    on Mar 6, 2024
  4. SchrodingersGat commented on Mar 6, 2024

    @SchrodingersGat
    Member

    (should I make a new bug report for the currency?)
    My currency default is Danish Kr., but for this supplier I've chosen USD. (see yellow circles)
    How can I make a selection that everything should be in USD? having 20+ different components is tedious to change.

    Please raise a new issue for this. The importer for purchase order items does not currently support switching currency AFAIK. So this would need to be implemented

  5. SchrodingersGat commented on Mar 6, 2024

    @SchrodingersGat
    Member

    Regarding this issue - For line number 4, in the drop-down menu can you find and select the c131154 component?

  6. tomse commented on Mar 7, 2024

    @tomse
    Author

    Regarding this issue - For line number 4, in the drop-down menu can you find and select the c131154 component?

    unfortunately no

    image

    image

  7. SchrodingersGat commented on Mar 12, 2024

    @SchrodingersGat
    Member

    unfortunately no

    That's very weird then. Can you find the supplier part in the global search drop-down (magnifying glass icon in the top right of the screen)?

  8. tomse commented on Mar 12, 2024

    @tomse
    Author

    very weird indeed..

    yes, I can also find it in "Parts" search/filter box

    here is a partial search for "c13"
    image

    The components have all been added using kintree (don't know if that helps).

    I'm really at a loss here.. I've been trying to see any differences between a found component and unfound component.

    Running in docker, are there any logs I can look in to supply more data?

  9. SchrodingersGat commented on Mar 14, 2024

    @SchrodingersGat
    Member

    @tomse I cannot think of any more tests to run for this. It is very strange.

    In the "import" window, when you type something (e.g. "C13") into the drop-down menu, can you show the API request and response data? This is available in the "developer" tab in your browser

  10. tomse commented on Mar 14, 2024

    @tomse
    Author

    @SchrodingersGat I hope the following screenshots are what you're requesting

    by import window I'm understanding this one?
    image

    image

    image

    image

    image

  11. SchrodingersGat commented on Mar 14, 2024

    @SchrodingersGat
    Member

    @tomse no that's just for notification fetching. You'll need to capture while you are typing into the box. It should send a search query with the text you type, back to the server

  12. tomse commented on Mar 14, 2024

    @tomse
    Author

    @SchrodingersGat I'm not sure if I'm doing this correctly
    Using firefox:
    Step 3 in uploading csv.

    Web Developer Tools

    • Network (is the only place I can find request/response)

    "ALL" seems messy - specially under Response where I get a truncated html output with 40k lines
    image

  13. 5 remaining items

  14. tomse commented on Mar 14, 2024

    @tomse
    Author

    I noticed a new webserver and settings in the docker .env file.. is that something to look into?

    is this what you're asking for?
    image

  15. SchrodingersGat commented on Mar 15, 2024

    @SchrodingersGat
    Member

    @tomse huh, looking into the code it appears that this import method does not make use of the API. The options for each drop-down are pre-rendered on the server...

    This is all going to be totally refactored as part of our roadmap to fix the import/export interface. Perhaps you would be willing to contribute funding towards this feature?

  16. tomse commented on Mar 15, 2024

    @tomse
    Author
  17. SchrodingersGat commented on Mar 15, 2024

    @SchrodingersGat
    Member

    @tomse thanks! In the mean time, you could also use the admin import functionality to get your data into the system? This one edge case is very strange.

  18. github-actions commented on May 15, 2024

    @github-actions
    Contributor

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

  19. added
    inactive
    on May 15, 2024
  20. tomse commented on May 16, 2024

    @tomse
    Author

    strange didn't get a notification other than the bot.. should we keep the issue open ?

  21. SchrodingersGat commented on May 16, 2024

    @SchrodingersGat
    Member

    @tomse I will keep it open as it is referenced by a PR which will address it: #6911

  22. removed
    inactive
    on May 16, 2024
  23. added this to the 0.16.0 milestone on May 16, 2024
  24. tomse commented on May 20, 2024

    @tomse
    Author

    @tomse I will keep it open as it is referenced by a PR which will address it: #6911

    Thanks mate :-)

  25. modified the milestones: 0.16.0, 0.17.0 on Aug 10, 2024
  26. SchrodingersGat commented on Nov 3, 2024

    @SchrodingersGat
    Member

    This has now been addressed in #6911

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

    bugimport / exportquestion

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions