Niklas
3aad70934b
Support dynamic supplier SPNs in BOM import comments ( #1208 )
...
* Fix: Use correct field name for LCSC supplier part numbers in BOM import
The field mapping system uses 'LCSC SPN' as the target field name for LCSC
supplier part numbers (following the pattern SupplierName + ' SPN'), but the
code in parseKiCADSchematic() was incorrectly checking for 'LCSC'.
This caused LCSC supplier part numbers to be silently ignored and not included
in the BOM entry comments during schematic import.
Changed isset($mapped_entry['LCSC']) to isset($mapped_entry['LCSC SPN']) to
match the actual field name produced by the field mapping system.
* regression test: check for LCSC SPN in comment
* Support dynamic supplier SPNs in BOM import comments
Replace hardcoded LCSC SPN handling with dynamic supplier lookup to support all configured suppliers in BOM import. This allows any supplier defined in
Part-DB to have their SPN fields recognized and included in the BOM entry
comments during BOM import.
* Optimize BOM import by only calculating supplier SPN keys once
2026-01-25 21:32:14 +01:00
Jan Böhmer
ed1e51f694
Merge branch 'feature/batch-info-provider-import'
2025-09-21 23:14:09 +02:00
barisgit
7c1ab6460d
Add tests to cover new additions
2025-09-06 19:54:13 +02:00
barisgit
facfb37383
Implement excel based import/export
2025-08-31 22:15:58 +02:00
Jan Böhmer
3fcb5ce82e
Merge branch 'master' into v2
2025-08-13 16:07:20 +02:00
Jan Böhmer
e2735823a0
Fixed tests for new PHPunit 11.5
Build assets artifact / Build assets artifact (push) Has been cancelled
Docker Image Build / docker (push) Has been cancelled
Docker Image Build (FrankenPHP) / docker (push) Has been cancelled
Static analysis / Static analysis (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, sqlite) (push) Has been cancelled
2025-07-14 21:57:27 +02:00
Jan Böhmer
dc480f755c
Migrated phpunit annotations to attributes
2025-07-14 00:32:06 +02:00
Jan Böhmer
b88e5e27d8
Fixed tests
2024-06-22 23:01:40 +02:00
Jan Böhmer
b7b941e3a1
Fixed error handling of structural data import
...
This was the reason for the exception in #632
2024-06-22 22:55:15 +02:00
Jan Böhmer
20f32c7f12
Applied rector suggestions
2024-06-22 00:31:43 +02:00
Jan Böhmer
ed4728fdb1
Correcty handle already existing elements in mass creation
...
This fixes issue #543
2024-03-10 00:51:37 +01:00
Jan Böhmer
afcbbe0f43
Fixed phpunit tests
2023-07-17 00:34:00 +02:00
Jan Böhmer
bb510a9240
Fixed test failure, caused by validation on user element
2023-06-18 22:11:58 +02:00
Jan Böhmer
6a2ff9d153
Added declare strict types to all files
2023-06-11 18:59:07 +02:00
Jan Böhmer
fcbb1849ec
Applied rectors phpunit 9 migrations to tests
2023-06-11 15:15:55 +02:00
Jan Böhmer
98dc553938
Applied rector to test files
2023-06-11 14:18:53 +02:00
Jan Böhmer
d04d743520
Fixed typos
2023-04-15 23:14:53 +02:00
Jan Böhmer
63df16a369
Removed unused imports
2023-04-15 22:27:19 +02:00
Jan Böhmer
e444388517
Added tests for PCBnew BOM type
2023-03-16 23:32:12 +01:00
Jan Böhmer
fe5dd065ed
Added tests for EntityImporter service
2023-03-14 00:17:13 +01:00
Jan Böhmer
c7b9f9e50a
Fixed PHPunit tests
2023-03-12 22:07:48 +01:00
Jan Böhmer
508641d1e8
Added possibility to autoselect the import format
2023-03-12 21:43:40 +01:00
Jan Böhmer
3b36b2a4dc
Improved exporter service
2023-03-11 22:40:53 +01:00
Jan Böhmer
07f95bc6ea
Added possibility to create nested structures of elements using Mass Import
2023-01-28 23:24:45 +01:00
Jan Böhmer
8ae4e9fe05
Fixed some inspection issues
2022-12-18 19:45:04 +01:00
Jan Böhmer
a4eae19a1f
Improved organisation of Services
2022-12-18 17:28:42 +01:00