Update DTOtoEntityConverter.php

This commit is contained in:
d-buchmann 2023-10-25 14:01:46 +02:00 committed by GitHub
parent 7239aef47f
commit e6870c61ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}