//$fecha_hora=$day."-".$month."-".$year." ".$hour.":".$minute;
$fecha_hora = $day . "-" . $month . "-" . $year;
if ($hour > 11) {
    $formato = "PM";
} else {
    $formato = "AM";
}
$formato_militar = array("13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24");
$formato_civil = array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12");
$hour = str_replace($formato_militar, $formato_civil, $hour);
$hora = $hour . ":" . $minute . " " . $formato;
$fecha_desde = $obj_generico->CleanText($_GET['fechadesde']);
$fecha_hasta = $obj_generico->CleanText($_GET['fechahasta']);
$fecha_desde = $obj_date->changeFormatDateII($fecha_desde);
$fecha_hasta = $obj_date->changeFormatDateII($fecha_hasta);
$resulta = $obj_modelo->GetBalancebyTaquillaAnulados($fecha_desde, $fecha_hasta, $id_taquilla);
$total_anulados = array();
$totales_anulados = 0;
$tickets_anulados = array();
$i = 0;
while ($ruw = $obj_conexion->GetArrayInfo($resulta)) {
    $fecha_anul = substr($ruw['fecha'], 0, 10);
    if (!isset($mismo_fecha)) {
        $mismo_fecha = $fecha_anul;
    }
    if ($mismo_fecha != $fecha_anul) {
        $mismo_fecha = $fecha_anul;
        $totales_anulados = $ruw['total_ticket'];
        $total_anulados[$ruw['fecha']] = $totales_anulados;
    } else {
        $totales_anulados = $totales_anulados + $ruw['total_ticket'];