示例#1
0
    $fecha_hoy = $ano . "-" . $mes . "-" . $dia_hoy;
}
$fecha_desde = $obj_generico->CleanText($fecha_ayer);
$fecha_hasta = $obj_generico->CleanText($fecha_hoy);
/*
$fecha_desde=$obj_date->changeFormatDateII($fecha_desde);
$fecha_hasta=$obj_date->changeFormatDateII($fecha_hasta);

//echo $fecha_desde, $fecha_hasta;
*/
$comision = $obj_modelo->GetComision();
$data = "";
$data .= "URL ?fechadesde=" . $fecha_ayer . "&fechahasta=" . $fecha_hoy;
$data .= "<br><br>";
$total_cuadre = 0;
if ($result = $obj_modelo->GetBalance($fecha_desde, $fecha_hasta, $comision)) {
    if ($obj_conexion->GetNumberRows($result) > 0) {
        // ENCABEZADO DEL TICKET
        $data .= "SISTEMA LOTTOMAX";
        $data .= "<br>";
        $data .= "CUADRE CON BANCA";
        $data .= "<br>";
        $data .= "Ayer y Hoy";
        $data .= "<br>";
        while ($row = $obj_conexion->GetArrayInfo($result)) {
            $data .= "<br>FECHA: " . $row['fecha'];
            $data .= "<br>Total Ventas: " . round($row['total_ventas'], 2);
            $data .= "<br>Comision: " . round($row['comision'], 2);
            $data .= "<br>Total Premios: " . round($row['total_premiado'], 2);
            $data .= "<br>Balance: " . round($row['balance'], 2);
            $data .= "<br>";
示例#2
0
         if ($_GET['agencia'] != 0) {
             $param_extra = " AND id_agencia=" . $_GET['agencia'];
         } else {
             $group_extra = 1;
         }
     } else {
         $param_extra = "";
     }
 }
 if ($group_extra) {
     $result3 = $obj_modelo->getAgencias();
     while ($roww = $obj_conexion->GetArrayInfo($result3)) {
         $cuadre_agencia = 0;
         $sw = 0;
         $param_extra = " AND id_agencia=" . $roww['id_agencia'];
         if ($result = $obj_modelo->GetBalance($fecha_desde, $fecha_hasta, $comision, $tipo_comision, $param_extra)) {
             if ($obj_conexion->GetNumberRows($result) > 0) {
                 while ($row = $obj_conexion->GetArrayInfo($result)) {
                     if ($i % 2 > 0) {
                         if ($row['balance'] < 0) {
                             $obj_xtpl->assign('estilo_fila', 'evenred');
                         } else {
                             $obj_xtpl->assign('estilo_fila', 'even');
                         }
                     } else {
                         if ($row['balance'] < 0) {
                             $obj_xtpl->assign('estilo_fila', 'oddred');
                         } else {
                             $obj_xtpl->assign('estilo_fila', 'odd');
                         }
                     }