Allow to edit the GTIN property of a part and validate the GTIN

This commit is contained in:
Jan Böhmer 2026-02-08 14:44:56 +01:00
parent 7fd7697c02
commit 57c8368b5e
10 changed files with 236 additions and 6 deletions

View file

@ -216,7 +216,13 @@ class PartBaseType extends AbstractType
'disable_not_selectable' => true,
'label' => 'part.edit.partCustomState',
])
->add('ipn', TextType::class, $ipnOptions);
->add('ipn', TextType::class, $ipnOptions)
->add('gtin', TextType::class, [
'required' => false,
'empty_data' => null,
'label' => 'part.gtin',
])
;
//Comment section
$builder->add('comment', RichTextEditorType::class, [