Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/db/db_tag_processor.php
Show First 20 Lines • Show All 2482 Lines • ▼ Show 20 Line(s) | |||||
if (array_key_exists('currency', $params) && $params['currency']) { | if (array_key_exists('currency', $params) && $params['currency']) { | ||||
$iso = $this->GetISO($params['currency']); | $iso = $this->GetISO($params['currency']); | ||||
$original = $list->getTotal($field, $total_function); | $original = $list->getTotal($field, $total_function); | ||||
$value = $this->ConvertCurrency($original, $iso); | $value = $this->ConvertCurrency($original, $iso); | ||||
$list->setTotal($field, $total_function, $value); | $list->setTotal($field, $total_function, $value); | ||||
} | } | ||||
$value = $list->GetFormattedTotal($field, $total_function); | $format = array_key_exists('format', $params) ? $params['format'] : false; | ||||
if ( !$format || $format == '$format' ) { | |||||
$format = null; | |||||
} | |||||
$value = $list->GetFormattedTotal($field, $total_function, $format); | |||||
if (array_key_exists('currency', $params) && $params['currency']) { | if (array_key_exists('currency', $params) && $params['currency']) { | ||||
$value = $this->AddCurrencySymbol($value, $iso); | $value = $this->AddCurrencySymbol($value, $iso); | ||||
} | } | ||||
return $value; | return $value; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 598 Lines • Show Last 20 Lines |