mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Update DTOtoEntityConverter.php
This commit is contained in:
parent
7239aef47f
commit
e6870c61ee
1 changed files with 2 additions and 2 deletions
|
@ -87,6 +87,7 @@ final class DTOtoEntityConverter
|
||||||
{
|
{
|
||||||
$entity->setMinDiscountQuantity($dto->minimum_discount_amount);
|
$entity->setMinDiscountQuantity($dto->minimum_discount_amount);
|
||||||
$entity->setPrice($dto->getPriceAsBigDecimal());
|
$entity->setPrice($dto->getPriceAsBigDecimal());
|
||||||
|
$entity->setPriceRelatedQuantity($dto->price_related_quantity);
|
||||||
|
|
||||||
//Currency TODO
|
//Currency TODO
|
||||||
if ($dto->currency_iso_code !== null) {
|
if ($dto->currency_iso_code !== null) {
|
||||||
|
@ -95,7 +96,6 @@ final class DTOtoEntityConverter
|
||||||
$entity->setCurrency(null);
|
$entity->setCurrency(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue