'#template#' =>
$template,
'#decimals#' =>
$context->
getRounding()->
getDecimals(),
];
$template =
str_replace( array_keys($variables),
array_values($variables),
'(ROUND(CAST(#template# as DECIMAL(30, 20)), #decimals#))'
);
$multiplier = '';
if ($this->
useCashRounding($context)) { $multiplier = 100 /
($context->
getRounding()->
getInterval() * 100
);
$template = '(ROUND(' .
$template . ' * #multiplier#, 0) / #multiplier#)';
} $select =
[];
foreach ($keys as $ruleId) { $parameters =
[ '#root#' =>
$root,
'#field#' => 'cheapest_price_accessor',
'#rule_key#' => 'rule' .
$ruleId,