decodeProperties(array ( 'file_dependency' => array ( '375cdd10b5589be6c18429a34bfb761a4e7e3f75' => array ( 0 => 'C:\\wamp64\\www\\sophalcrm\\includes\\runtime/../../layouts/v7\\modules\\Reports\\ReportContents.tpl', 1 => 1520586670, 2 => 'file', ), ), 'nocache_hash' => '218565d7a48ec617013-79411230', 'function' => array ( ), 'variables' => array ( 'CALCULATION_FIELDS' => 0, 'MODULE' => 0, 'CALCULATION_FIELD' => 0, 'CALCULATION_FIELD_KEYS' => 0, 'ESCAPE_CHAR' => 0, 'FIELD_IMPLODE' => 0, 'MODULE_NAME' => 0, 'FIELD_LABEL' => 0, 'CALCULATION_VALUE' => 0, 'REPORT_MODEL' => 0, 'BASE_CURRENCY_INFO' => 0, 'NEW_COUNT' => 0, 'DATA' => 0, 'HEADERS' => 0, 'NAME' => 0, 'REPORT_RUN_INSTANCE' => 0, 'RECORD_ID' => 0, 'REPORTRUN' => 0, 'GROUPBYFIELDS' => 0, 'GROUPBYFIELDSCOUNT' => 0, 'i' => 0, 'FIELD' => 0, 'FIELD_EXPLODE' => 0, 'FIELDNAMES' => 0, 'j' => 0, 'VALUES' => 0, 'FIRST_FIELD' => 0, 'FIRST_VALUE' => 0, 'VALUE' => 0, 'SECOND_FIELD' => 0, 'SECOND_VALUE' => 0, 'THIRD_FIELD' => 0, 'THIRD_VALUE' => 0, 'LIMIT_EXCEEDED' => 0, ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', 'unifunc' => 'content_5d7a48ed03db9', ),false); /*/%%SmartyHeaderCode%%*/?>
tpl_vars['CALCULATION_FIELDS']->value)){?>tpl_vars['ESCAPE_CHAR'] = new Smarty_variable(array('_SUM','_AVG','_MIN','_MAX'), null, 0);?>tpl_vars['CALCULATION_FIELD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->_loop = false; $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['CALCULATION_FIELDS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->key => $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->value){ $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->_loop = true; $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->key; ?>tpl_vars['CALCULATION_FIELD_KEYS'] = new Smarty_variable(array_keys($_smarty_tpl->tpl_vars['CALCULATION_FIELD']->value), null, 0);?>tpl_vars['CALCULATION_FIELD_KEYS'] = new Smarty_variable(smarty_modifier_replace($_smarty_tpl->tpl_vars['CALCULATION_FIELD_KEYS']->value,$_smarty_tpl->tpl_vars['ESCAPE_CHAR']->value,''), null, 0);?>tpl_vars['FIELD_IMPLODE'] = new Smarty_variable(explode('_',$_smarty_tpl->tpl_vars['CALCULATION_FIELD_KEYS']->value['0']), null, 0);?>tpl_vars['MODULE_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_IMPLODE']->value['0'], null, 0);?>tpl_vars['FIELD_LABEL'] = new Smarty_variable(implode(" ",$_smarty_tpl->tpl_vars['FIELD_IMPLODE']->value), null, 0);?>tpl_vars['FIELD_LABEL'] = new Smarty_variable(str_replace($_smarty_tpl->tpl_vars['MODULE_NAME']->value,'',$_smarty_tpl->tpl_vars['FIELD_LABEL']->value), null, 0);?>tpl_vars['CALCULATION_VALUE'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['CALCULATION_VALUE']->_loop = false; $_from = $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['CALCULATION_VALUE']->key => $_smarty_tpl->tpl_vars['CALCULATION_VALUE']->value){ $_smarty_tpl->tpl_vars['CALCULATION_VALUE']->_loop = true; ?>
tpl_vars['MODULE']->value);?> tpl_vars['MODULE']->value);?> tpl_vars['MODULE']->value);?> tpl_vars['MODULE']->value);?> tpl_vars['MODULE']->value);?>
tpl_vars['MODULE_NAME']->value,$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?> tpl_vars['FIELD_LABEL']->value),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?> tpl_vars['CALCULATION_VALUE']->value;?>
tpl_vars['REPORT_MODEL']->value->isInventoryModuleSelected()){?>
tpl_vars['BASE_CURRENCY_INFO'] = new Smarty_variable(Vtiger_Util_Helper::getUserCurrencyInfo(), null, 0);?>  tpl_vars['MODULE']->value);?> - tpl_vars['BASE_CURRENCY_INFO']->value['currency_name'];?> (tpl_vars['BASE_CURRENCY_INFO']->value['currency_code'];?> )
tpl_vars['DATA']->value!=''){?>tpl_vars['HEADERS'] = new Smarty_variable($_smarty_tpl->tpl_vars['DATA']->value[0], null, 0);?>tpl_vars['HEADER'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['HEADER']->_loop = false; $_smarty_tpl->tpl_vars['NAME'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['HEADERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['HEADER']->key => $_smarty_tpl->tpl_vars['HEADER']->value){ $_smarty_tpl->tpl_vars['HEADER']->_loop = true; $_smarty_tpl->tpl_vars['NAME']->value = $_smarty_tpl->tpl_vars['HEADER']->key; ?>tpl_vars['REPORTRUN'] = new Smarty_variable($_smarty_tpl->tpl_vars['REPORT_RUN_INSTANCE']->value, null, 0);?>tpl_vars['GROUPBYFIELDS'] = new Smarty_variable(array_keys($_smarty_tpl->tpl_vars['REPORTRUN']->value->getGroupingList($_smarty_tpl->tpl_vars['RECORD_ID']->value)), null, 0);?>tpl_vars['GROUPBYFIELDSCOUNT'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['GROUPBYFIELDS']->value), null, 0);?>tpl_vars['GROUPBYFIELDSCOUNT']->value>0){?>tpl_vars['FIELDNAMES'] = new Smarty_variable(array(), null, 0);?>tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? $_smarty_tpl->tpl_vars['GROUPBYFIELDSCOUNT']->value-1+1 - (0) : 0-($_smarty_tpl->tpl_vars['GROUPBYFIELDSCOUNT']->value-1)+1)/abs($_smarty_tpl->tpl_vars['i']->step)); if ($_smarty_tpl->tpl_vars['i']->total > 0){ for ($_smarty_tpl->tpl_vars['i']->value = 0, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){ $_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>tpl_vars['FIELD'] = new Smarty_variable(explode(':',$_smarty_tpl->tpl_vars['GROUPBYFIELDS']->value[$_smarty_tpl->tpl_vars['i']->value]), null, 0);?>tpl_vars['FIELD_EXPLODE'] = new Smarty_variable(explode('_',$_smarty_tpl->tpl_vars['FIELD']->value[2]), null, 0);?>tpl_vars['j'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['j']->step = 1;$_smarty_tpl->tpl_vars['j']->total = (int)ceil(($_smarty_tpl->tpl_vars['j']->step > 0 ? count($_smarty_tpl->tpl_vars['FIELD_EXPLODE']->value)-1+1 - (1) : 1-(count($_smarty_tpl->tpl_vars['FIELD_EXPLODE']->value)-1)+1)/abs($_smarty_tpl->tpl_vars['j']->step)); if ($_smarty_tpl->tpl_vars['j']->total > 0){ for ($_smarty_tpl->tpl_vars['j']->value = 1, $_smarty_tpl->tpl_vars['j']->iteration = 1;$_smarty_tpl->tpl_vars['j']->iteration <= $_smarty_tpl->tpl_vars['j']->total;$_smarty_tpl->tpl_vars['j']->value += $_smarty_tpl->tpl_vars['j']->step, $_smarty_tpl->tpl_vars['j']->iteration++){ $_smarty_tpl->tpl_vars['j']->first = $_smarty_tpl->tpl_vars['j']->iteration == 1;$_smarty_tpl->tpl_vars['j']->last = $_smarty_tpl->tpl_vars['j']->iteration == $_smarty_tpl->tpl_vars['j']->total;?>createLocalArrayVariable('FIELDNAMES', null, 0); $_smarty_tpl->tpl_vars['FIELDNAMES']->value[$_smarty_tpl->tpl_vars['i']->value] = (($_smarty_tpl->tpl_vars['FIELDNAMES']->value[$_smarty_tpl->tpl_vars['i']->value]).($_smarty_tpl->tpl_vars['FIELD_EXPLODE']->value[$_smarty_tpl->tpl_vars['j']->value])).(" ");?>tpl_vars['GROUPBYFIELDSCOUNT']->value==1){?>tpl_vars['FIRST_FIELD'] = new Smarty_variable(vtranslate(trim($_smarty_tpl->tpl_vars['FIELDNAMES']->value[0]),$_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?>tpl_vars['GROUPBYFIELDSCOUNT']->value==2){?>tpl_vars['FIRST_FIELD'] = new Smarty_variable(vtranslate(trim($_smarty_tpl->tpl_vars['FIELDNAMES']->value[0]),$_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?>tpl_vars['SECOND_FIELD'] = new Smarty_variable(vtranslate(trim($_smarty_tpl->tpl_vars['FIELDNAMES']->value[1]),$_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?>tpl_vars['GROUPBYFIELDSCOUNT']->value==3){?>tpl_vars['FIRST_FIELD'] = new Smarty_variable(vtranslate(trim($_smarty_tpl->tpl_vars['FIELDNAMES']->value[0]),$_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?>tpl_vars['SECOND_FIELD'] = new Smarty_variable(vtranslate(trim($_smarty_tpl->tpl_vars['FIELDNAMES']->value[1]),$_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?>tpl_vars['THIRD_FIELD'] = new Smarty_variable(vtranslate(trim($_smarty_tpl->tpl_vars['FIELDNAMES']->value[2]),$_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?>tpl_vars['FIRST_VALUE'] = new Smarty_variable(" ", null, 0);?>tpl_vars['SECOND_VALUE'] = new Smarty_variable(" ", null, 0);?>tpl_vars['THIRD_VALUE'] = new Smarty_variable(" ", null, 0);?>tpl_vars['VALUES'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['VALUES']->_loop = false; $_from = $_smarty_tpl->tpl_vars['DATA']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['VALUES']->key => $_smarty_tpl->tpl_vars['VALUES']->value){ $_smarty_tpl->tpl_vars['VALUES']->_loop = true; ?>tpl_vars['VALUE'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['VALUE']->_loop = false; $_smarty_tpl->tpl_vars['NAME'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['VALUES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['VALUE']->key => $_smarty_tpl->tpl_vars['VALUE']->value){ $_smarty_tpl->tpl_vars['VALUE']->_loop = true; $_smarty_tpl->tpl_vars['NAME']->value = $_smarty_tpl->tpl_vars['VALUE']->key; ?>tpl_vars['FIRST_FIELD']->value;?> tpl_vars['NAME']->value==$_smarty_tpl->tpl_vars['FIRST_FIELD']->value||strstr($_smarty_tpl->tpl_vars['NAME']->value,$_tmp1))&&($_smarty_tpl->tpl_vars['FIRST_VALUE']->value==$_smarty_tpl->tpl_vars['VALUE']->value||$_smarty_tpl->tpl_vars['FIRST_VALUE']->value==" ")){?>tpl_vars['FIRST_VALUE']->value==" "||$_smarty_tpl->tpl_vars['VALUE']->value=="-"){?>tpl_vars['VALUE']->value!=" "){?>tpl_vars['FIRST_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['VALUE']->value, null, 0);?>tpl_vars['NAME']->value==$_smarty_tpl->tpl_vars['SECOND_FIELD']->value||strstr($_smarty_tpl->tpl_vars['NAME']->value,$_smarty_tpl->tpl_vars['SECOND_FIELD']->value))&&($_smarty_tpl->tpl_vars['SECOND_VALUE']->value==$_smarty_tpl->tpl_vars['VALUE']->value||$_smarty_tpl->tpl_vars['SECOND_VALUE']->value==" ")){?>tpl_vars['SECOND_VALUE']->value==" "||$_smarty_tpl->tpl_vars['VALUE']->value=="-"){?>tpl_vars['VALUE']->value!=" "){?>tpl_vars['SECOND_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['VALUE']->value, null, 0);?>tpl_vars['NAME']->value==$_smarty_tpl->tpl_vars['THIRD_FIELD']->value||strstr($_smarty_tpl->tpl_vars['NAME']->value,$_smarty_tpl->tpl_vars['THIRD_FIELD']->value))&&($_smarty_tpl->tpl_vars['THIRD_VALUE']->value==$_smarty_tpl->tpl_vars['VALUE']->value||$_smarty_tpl->tpl_vars['THIRD_VALUE']->value==" ")){?>tpl_vars['THIRD_VALUE']->value==" "||$_smarty_tpl->tpl_vars['VALUE']->value=="-"){?>tpl_vars['VALUE']->value!=" "){?>tpl_vars['THIRD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['VALUE']->value, null, 0);?>tpl_vars['NAME']->value==$_smarty_tpl->tpl_vars['FIRST_FIELD']->value||strstr($_smarty_tpl->tpl_vars['NAME']->value,$_smarty_tpl->tpl_vars['FIRST_FIELD']->value)){?>tpl_vars['FIRST_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['VALUE']->value, null, 0);?>tpl_vars['NAME']->value==$_smarty_tpl->tpl_vars['SECOND_FIELD']->value||strstr($_smarty_tpl->tpl_vars['NAME']->value,$_smarty_tpl->tpl_vars['SECOND_FIELD']->value)){?>tpl_vars['SECOND_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['VALUE']->value, null, 0);?>tpl_vars['NAME']->value==$_smarty_tpl->tpl_vars['THIRD_FIELD']->value||strstr($_smarty_tpl->tpl_vars['NAME']->value,$_smarty_tpl->tpl_vars['THIRD_FIELD']->value)){?>tpl_vars['THIRD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['VALUE']->value, null, 0);?>tpl_vars['VALUES'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['VALUES']->_loop = false; $_from = $_smarty_tpl->tpl_vars['DATA']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['VALUES']->key => $_smarty_tpl->tpl_vars['VALUES']->value){ $_smarty_tpl->tpl_vars['VALUES']->_loop = true; ?>tpl_vars['VALUE'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['VALUE']->_loop = false; $_smarty_tpl->tpl_vars['NAME'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['VALUES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['VALUE']->key => $_smarty_tpl->tpl_vars['VALUE']->value){ $_smarty_tpl->tpl_vars['VALUE']->_loop = true; $_smarty_tpl->tpl_vars['NAME']->value = $_smarty_tpl->tpl_vars['VALUE']->key; ?>
tpl_vars['NAME']->value;?>
tpl_vars['VALUE']->value;?> tpl_vars['VALUE']->value;?> tpl_vars['VALUE']->value;?> tpl_vars['VALUE']->value;?>
tpl_vars['VALUE']->value;?>
tpl_vars['LIMIT_EXCEEDED']->value){?>
tpl_vars['MODULE']->value);?> tpl_vars['MODULE']->value);?>
tpl_vars['MODULE']->value);?>