Allow to edit the vendor_barcode field of a PartLot

This commit is contained in:
Jan Böhmer 2023-11-17 23:05:47 +01:00
parent 3e6b80d1cf
commit 96a771e7ac
5 changed files with 74 additions and 2 deletions

View file

@ -80,7 +80,7 @@ class PartLotType extends AbstractType
'required' => false,
]);
$builder->add('expirationDate', DateType::class, [
$builder->add('expiration_date', DateType::class, [
'label' => 'part_lot.edit.expiration_date',
'attr' => [],
'widget' => 'single_text',
@ -102,6 +102,12 @@ class PartLotType extends AbstractType
'required' => false,
'help' => 'part_lot.owner.help',
]);
$builder->add('vendor_barcode', TextType::class, [
'label' => 'part_lot.edit.vendor_barcode',
'help' => 'part_lot.edit.vendor_barcode.help',
'required' => false,
]);
}
public function configureOptions(OptionsResolver $resolver): void