Allow to read amazon labels for part retrieval and creation

This commit is contained in:
Jan Böhmer 2026-02-22 23:16:39 +01:00
parent 87919eb445
commit 0b9b2cbf58
7 changed files with 103 additions and 9 deletions

View file

@ -72,12 +72,7 @@ class ScanDialogType extends AbstractType
'placeholder' => 'scan_dialog.mode.auto',
'choice_label' => fn (?BarcodeSourceType $enum) => match($enum) {
null => 'scan_dialog.mode.auto',
BarcodeSourceType::INTERNAL => 'scan_dialog.mode.internal',
BarcodeSourceType::IPN => 'scan_dialog.mode.ipn',
BarcodeSourceType::USER_DEFINED => 'scan_dialog.mode.user',
BarcodeSourceType::EIGP114 => 'scan_dialog.mode.eigp',
BarcodeSourceType::GTIN => 'scan_dialog.mode.gtin',
BarcodeSourceType::LCSC => 'scan_dialog.mode.lcsc',
default => 'scan_dialog.mode.' . $enum->value,
},
]);