if ($context->
getCurrencyId() === Defaults::CURRENCY
) { continue;
} $parameters =
[ '#root#' =>
$root,
'#field#' => 'cheapest_price_accessor',
'#rule_key#' => 'rule' .
$ruleId,
'#currency_key#' => 'currency' . Defaults::CURRENCY,
'#property#' =>
$jsonAccessor,
'#factor#' =>
$context->
getCurrencyFactor(),
'#multiplier#' =>
$multiplier,
];
$select[] =
str_replace( array_keys($parameters),
array_values($parameters),
$template );
} return sprintf('COALESCE(%s)',
implode(',',
$select));
}