mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-22 19:09:31 +00:00
Use BigDecimal for Pricedetail price field.
This commit is contained in:
parent
db4d7dc5fc
commit
b1db89e3b4
8 changed files with 116 additions and 49 deletions
|
|
@ -44,10 +44,11 @@ namespace App\Form\Part;
|
|||
|
||||
use App\Entity\Parts\MeasurementUnit;
|
||||
use App\Entity\PriceInformations\Pricedetail;
|
||||
use App\Form\Type\BigDecimalMoneyType;
|
||||
use App\Form\Type\BigDecimalNumberType;
|
||||
use App\Form\Type\CurrencyEntityType;
|
||||
use App\Form\Type\SIUnitType;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\NumberType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
|
|
@ -70,7 +71,7 @@ class PricedetailType extends AbstractType
|
|||
'class' => 'form-control-sm',
|
||||
],
|
||||
]);
|
||||
$builder->add('price', NumberType::class, [
|
||||
$builder->add('price', BigDecimalNumberType::class, [
|
||||
'label' => false,
|
||||
'scale' => 5,
|
||||
'html5' => true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue