mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +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->setPrice($dto->getPriceAsBigDecimal());
|
||||
$entity->setPriceRelatedQuantity($dto->price_related_quantity);
|
||||
|
||||
//Currency TODO
|
||||
if ($dto->currency_iso_code !== null) {
|
||||
|
@ -95,7 +96,6 @@ final class DTOtoEntityConverter
|
|||
$entity->setCurrency(null);
|
||||
}
|
||||
|
||||
|
||||
return $entity;
|
||||
}
|
||||
|
||||
|
@ -295,4 +295,4 @@ final class DTOtoEntityConverter
|
|||
return $tmp;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue