Part-DB / Part-DB-server

Part-DB is an Open source inventory management system for your electronic components
https://docs.part-db.de/
GNU Affero General Public License v3.0
782 stars 88 forks source link

Importing a previously exported part fails #591

Closed hkleen closed 2 months ago

hkleen commented 2 months ago

Describe the bug Currently it is not possible to import a previously exported part entry, if the part has any shopping information set.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Tools'
  2. Click on 'Import Parts'
  3. Choose export_CL10B104KO8NNNC_full.json
  4. Click on 'Import'
  5. See reported 'import violations': "orderdetails[0].pricedetails[0].price: This value should be positive."

Expected behavior The part should be imported correctly

Screenshots Screenshot 2024-04-12 at 13-30-39 Import parts

Server Side