Skip to content

Commit

Permalink
[framework] fixed order editation error due to invalid type in vat ob…
Browse files Browse the repository at this point in the history
…ject (#2723)
  • Loading branch information
grossmannmartin committed Aug 18, 2023
1 parent a92f542 commit 7cdf1ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Form/Admin/Order/OrderItemFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
])->addModelTransformer(new InverseTransformer()),
)
->add('vatPercent', NumberType::class, [
'input' => 'string',
'constraints' => [
new Constraints\NotBlank(['message' => 'Please enter VAT rate']),
],
Expand Down
1 change: 1 addition & 0 deletions src/Form/Admin/Order/OrderPaymentFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'error_bubbling' => true,
])
->add('vatPercent', NumberType::class, [
'input' => 'string',
'constraints' => [
new Constraints\NotBlank(['message' => 'Please enter unit price without VAT']),
],
Expand Down
1 change: 1 addition & 0 deletions src/Form/Admin/Order/OrderTransportFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'error_bubbling' => true,
])
->add('vatPercent', NumberType::class, [
'input' => 'string',
'constraints' => [
new Constraints\NotBlank(['message' => 'Please enter VAT rate']),
],
Expand Down

0 comments on commit 7cdf1ea

Please sign in to comment.