$this->
calculateRegulationPrice($definition,
$config) );
} private function getUnitPrice(QuantityPriceDefinition
$definition, CashRoundingConfig
$config): float
{ // item price already calculated?
if ($definition->
isCalculated()) { return $this->priceRounding->
cashRound($definition->
getPrice(),
$config);
} $price =
$this->taxCalculator->
calculateGross( $definition->
getPrice(),
$definition->
getTaxRules() );
return $this->priceRounding->
cashRound($price,
$config);
} private function calculateListPrice(float
$unitPrice, QuantityPriceDefinition
$definition, CashRoundingConfig
$config): ?ListPrice
{ $price =
$definition->
getListPrice();
if (!
$price) {