diff --git a/agc_2-X/trunk/www/vicidial/AST_agent_performance_detail_SALES.php b/agc_2-X/trunk/www/vicidial/AST_agent_performance_detail_SALES.php index e0964769..518e3bd4 100644 --- a/agc_2-X/trunk/www/vicidial/AST_agent_performance_detail_SALES.php +++ b/agc_2-X/trunk/www/vicidial/AST_agent_performance_detail_SALES.php @@ -951,8 +951,8 @@ while ($m < $k) $PAUSEtotal[$m] = $pfUSERtotPAUSE_MS; $total_hours=($Stime/3600); - $Ssales_per_call=sprintf("%.2f", (100*($Stotal_sales/$Scalls)))." %"; - $Ssales_per_hour=sprintf("%.2f", ($Stotal_sales/$total_hours)); + $Ssales_per_call=sprintf("%.2f", (100*MathZDC($Stotal_sales, $Scalls)))." %"; + $Ssales_per_hour=sprintf("%.2f", MathZDC($Stotal_sales, $total_hours)); $Ssales_per_call=sprintf("%13s", $Ssales_per_call); $Ssales_per_hour=sprintf("%14s", $Ssales_per_hour); diff --git a/agc_2-X/trunk/www/vicidial/AST_agent_time_detail.php b/agc_2-X/trunk/www/vicidial/AST_agent_time_detail.php index 889b13f8..71213d84 100644 --- a/agc_2-X/trunk/www/vicidial/AST_agent_time_detail.php +++ b/agc_2-X/trunk/www/vicidial/AST_agent_time_detail.php @@ -798,6 +798,7 @@ else $uc++; } $m=0; + $Scalls[$uc] = 0; while ( ($m < $uc) and ($m < 50000) ) { if ($user == "$Suser[$m]") @@ -817,7 +818,7 @@ else } if ($user_found < 1) { - $Scalls[$uc] = 0; + # $Scalls[$uc] = 0; $Suser[$uc] = $user; $Swait[$uc] = $wait; $Stalk[$uc] = $talk; diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 3a325b98..a185d3db 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -6225,12 +6225,13 @@ if ($SSscript_remove_js > 0) # 241206-1527 - Do not display inactive VDAD/VDCL users in Copy User screen # 241208-1747 - Changed DID filter_phone_group_id & pre_filter_phone_group_id to multi-selects # 250103-0843 - Added Enhanced Agent Monitoring system settings option, Changed copyright date +# 250210-1701 - Fix for PHP8 issue on User Modify page # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time -$admin_version = '2.14-934a'; -$build = '250103-0843'; +$admin_version = '2.14-935a'; +$build = '250210-1701'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -7603,7 +7604,7 @@ if ( ( (strlen($ADD)>4) and ($ADD < 99998) ) or ($ADD==3) or (($ADD>20) and ($AD ##### BEGIN get inbound groups listing for checkboxes ##### $xfer_groupsSQL=''; - if ( (($ADD>20) and ($ADD<70)) and ($ADD!=41) or ( ($ADD==41) and ( (preg_match('/list_activation/i', $stage)) or (preg_match('/test_call/',$stage)) ) ) ) + if ( (($ADD>20) and ($ADD<70)) and ($ADD!="4A") and ($ADD!=41) or ( ($ADD==41) and ( (preg_match('/list_activation/i', $stage)) or (preg_match('/test_call/',$stage)) ) ) ) { $stmt="SELECT closer_campaigns,xfer_groups from vicidial_campaigns where campaign_id='$campaign_id' $LOGallowed_campaignsSQL;"; $rslt=mysql_to_mysqli($stmt, $link);