Use the information from info provider whether prices includes VAT or not

This commit is contained in:
Jan Böhmer 2026-02-08 21:58:14 +01:00
parent 3bff5fa8bd
commit 5a47b15c97
3 changed files with 5 additions and 2 deletions

View file

@ -94,13 +94,14 @@ final class DTOtoEntityConverter
$entity->setPrice($dto->getPriceAsBigDecimal());
$entity->setPriceRelatedQuantity($dto->price_related_quantity);
//Currency TODO
if ($dto->currency_iso_code !== null) {
$entity->setCurrency($this->getCurrency($dto->currency_iso_code));
} else {
$entity->setCurrency(null);
}
$entity->setIncludesVat($dto->includes_tax);
return $entity;
}