CodeExplorer buildCurrencyPrice example
if ($listPriceGross !== null
) { $listPriceNet ??=
$listPriceGross / 115 * 100;
$price['listPrice'
] =
[ 'gross' =>
$listPriceGross,
'net' =>
$listPriceNet,
'linked' =>
$linked,
];
} $price =
$this->
buildCurrencyPrice($currencyKey,
$price);
$this->price
[$currencyKey] =
$price;
return $this;
} public function prices(string
$ruleKey, float
$gross, string
$currencyKey = 'default', ?float
$net = null, int
$start = 1, bool
$valid = false, ?float
$listPriceGross = null, ?float
$listPriceNet = null
): self
{ $net ??=
$gross / 115 * 100;
$listPrice = null;