Meta-fields for InvoiceTemplate, structured Customer address (#5519)
This commit is contained in:
@@ -10,10 +10,12 @@
|
||||
namespace App\Form;
|
||||
|
||||
use App\Entity\InvoiceTemplate;
|
||||
use App\Form\Type\CustomerType;
|
||||
use App\Form\Type\InvoiceCalculatorType;
|
||||
use App\Form\Type\InvoiceNumberGeneratorType;
|
||||
use App\Form\Type\InvoiceRendererType;
|
||||
use App\Form\Type\LanguageType;
|
||||
use App\Form\Type\MetaFieldsCollectionType;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\IntegerType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\NumberType;
|
||||
@@ -36,17 +38,6 @@ final class InvoiceTemplateForm extends AbstractType
|
||||
->add('title', TextType::class, [
|
||||
'label' => 'title',
|
||||
])
|
||||
->add('company', TextType::class, [
|
||||
'label' => 'company',
|
||||
])
|
||||
->add('vatId', TextType::class, [
|
||||
'label' => 'vat_id',
|
||||
'required' => false,
|
||||
])
|
||||
->add('address', TextareaType::class, [
|
||||
'label' => 'address',
|
||||
'required' => false,
|
||||
])
|
||||
->add('contact', TextareaType::class, [
|
||||
'label' => 'contact',
|
||||
'required' => false,
|
||||
@@ -70,6 +61,13 @@ final class InvoiceTemplateForm extends AbstractType
|
||||
->add('calculator', InvoiceCalculatorType::class)
|
||||
->add('numberGenerator', InvoiceNumberGeneratorType::class)
|
||||
->add('language', LanguageType::class)
|
||||
->add('customer', CustomerType::class, [
|
||||
'required' => true,
|
||||
'label' => 'sending_company',
|
||||
'placeholder' => '',
|
||||
'help' => 'sending_company.help',
|
||||
])
|
||||
->add('metaFields', MetaFieldsCollectionType::class)
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user