mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-20 19:05:14 +02:00
Use BigDecimal object type for Supplier shipping costs, instead of bcmath string.
This commit is contained in:
parent
ae23a82105
commit
08267b88b0
10 changed files with 312 additions and 14 deletions
|
@ -44,6 +44,7 @@ namespace App\Form\AdminPages;
|
|||
|
||||
use App\Entity\Base\AbstractNamedDBElement;
|
||||
use App\Entity\PriceInformations\Currency;
|
||||
use App\Form\Type\BigDecimalMoneyType;
|
||||
use App\Form\Type\StructuralEntityType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\MoneyType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
@ -73,7 +74,7 @@ class SupplierForm extends CompanyForm
|
|||
'disabled' => ! $this->security->isGranted($is_new ? 'create' : 'move', $entity),
|
||||
]);
|
||||
|
||||
$builder->add('shipping_costs', MoneyType::class, [
|
||||
$builder->add('shipping_costs', BigDecimalMoneyType::class, [
|
||||
'required' => false,
|
||||
'currency' => $this->default_currency,
|
||||
'scale' => 3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue