getID() === null; parent::additionalFormElements($builder, $options, $entity); $builder->add('default_currency', StructuralEntityType::class, [ 'class' => Currency::class, 'required' => false, 'label' => $this->trans->trans('supplier.edit.default_currency'), 'disable_not_selectable' => true, 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity), ]); $builder->add('shipping_costs', MoneyType::class, [ 'required' => false, 'currency' => $this->params->get('default_currency'), 'scale' => 3, 'label' => $this->trans->trans('supplier.shipping_costs.label'), 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity) ]); } }