public function busqueda($page = 1) { $i = $this->request("inicio"); $f = $this->request("fin"); $this->results = $this->Tiemposincomprar->getTsincomprar($i, $f); $this->campos = array('ORDEN' => 'max', 'CLIENTE' => 'company', 'RIF o CI' => 'vm_rif', 'TELEFONO' => 'phone_1', 'FECHA' => 'fecha'); $this->tfoot = '<tr><th></th><th></th><th></th><th></th><th></th></tr>'; $f = $this->Cfecha($f); $i = $this->Cfecha($i); Flash::gruposion("La Busqueda de Tiempo Sin Comprar\n se realizo desde {$i} hasta {$f}"); }
public function busqueda() { $vendedor = $this->request('vendedor'); $a = $this->Gsvendedor->find($vendedor); $this->results = $this->Asignar->getBuscar($vendedor); $cont = $this->Asignar->getContar($vendedor); $this->campos = array('CLIENTE' => 'company', 'RIF O CI' => 'vm_rif', 'NOMBRE' => 'first_name', 'APELLIDO' => 'last_name', 'USUARIO' => 'username', 'TELEFONO' => 'phone_1'); $this->tfoot = '<tr><th></th><th></th><th></th><th></th><th></th> <th></th></tr>'; $this->paginator = 'extended'; $this->url = 'gsquery/clientesporvendedor/busqueda'; Flash::gruposion("El Vendedor(a) " . $a->Nombres . " tiene " . $cont . " Clientes Asignados "); }
public function clientetotal($page = 1) { $i = $this->request("inicio"); $f = $this->request("fin"); $this->results = $this->Topcliente->getTopcliente($i, $f); $this->conteo = ''; $this->campos = array('COMPAÑIA' => 'nombre', 'TOTAL EN VENTAS' => 'suma'); $this->tfoot = '<tr><th></th><th></th></tr>'; $this->paginator = 'extended'; $this->url = 'top/clientetotal'; $f = $this->Cfecha($f); $i = $this->Cfecha($i); Flash::gruposion("La Busqueda de Top Cliente se realizo desde {$i} hasta {$f}"); }
public function calcular() { $vendedor = $this->request("vendedor"); $inicio = $this->request("inicio"); $fin = $this->request("fin"); if ($vendedor && $inicio && $fin) { $this->JosVmOrders->Upcomision($vendedor, $inicio, $fin); $this->results = $this->Comisionsp->getCalcula($vendedor, $inicio, $fin); $this->campos = array('Orden' => 'orden', 'Fecha' => 'Fecha', 'Cliente' => 'company', 'Vendedor' => 'Nombres', 'Venta' => 'montol', 'Comision' => 'tasa_comision', 'Total' => 'total'); $this->tfoot = '<tr><th></th><th></th><th></th><th></th><th></th> <th></th><th></th></tr>'; $contar = $this->Comisionsp->getContar($vendedor, $inicio, $fin); $total = $this->Comisionsp->getTotal($vendedor, $inicio, $fin); Flash::gruposion(' <div style="font-size: 13px; font-style: italic; font-weight: bold;"> El Total General de la Comision es de BsF. ' . $total . ' <br />El Total de Ordenes con que se Calculo la Comision es de: ' . $contar . '</div>'); } }