$reference =
$this->
calculateReferencePrice($unitPrice,
$definition->
getReferencePriceDefinition(),
$config);
return new CalculatedPrice( $unitPrice,
$price,
$calculatedTaxes,
$taxRules,
$definition->
getQuantity(),
$reference,
$this->
calculateListPrice($unitPrice,
$definition,
$config),
$this->
calculateRegulationPrice($definition,
$config) );
} private function calculateListPrice(float
$unitPrice, QuantityPriceDefinition
$definition, CashRoundingConfig
$config): ?ListPrice
{ $listPrice =
$definition->
getListPrice();
if (!
$listPrice) { return null;
} if (!
$definition->
isCalculated()) {