����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 216.73.216.193 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/var/www/html/t/sae/appsae/core/app/view/ |
Upload File : |
<section class="content"> <div class="row"> <div class="col-md-12"> <!-- Single button --> <div class="btn-group pull-right"> <a href="./index.php?view=boxhistory" class="btn btn-default"><i class="fa fa-clock-o"></i> Historial</a> <div class="btn-group"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-download"></i> Descargar <span class="caret"></span> </button> <ul class="dropdown-menu pull-right" role="menu"> <li><a href="report/box-word.php?id=<?php echo $_GET["id"];?>">Word 2007 (.docx)</a></li> </ul> </div> </div> <h1><i class='fa fa-archive'></i> Corte de Caja #<?php echo $_GET["id"]; ?></h1> <div class="clearfix"></div> <script> function contarFilas() { var $num = document.getElementById('tblUsuario').getElementsByTagName('tr').length - 1; alert("Numero de ventas: " + $num); } </script> <?php $fecha_actual=date("YYYY/mm/dd"); ?> <?php $operations = array(); //$operations = PaymentData::getAllByDate($fecha_actual,$fecha_actual); ?> <?php $products = SellData::getByBoxId($_GET["id"]); if(count($products)>0){ $total_total = 0; ?> <br> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title"> Detalle De las Ventas </h3></div> <div class="box-body"> <table class="table table-bordered table-hover table-responsive datatable"> <thead> <th>Factura</th> <th>Folio</th> <th>Id</th> <th>Pago</th> <th>Entrega</th> <th>Total</th> <th>Cliente</th> <th>Vendedor</th> <th>Almacen</th> <th>Fecha</th> <th></th> </thead> <?php foreach($products as $sell): if($sell->total > 0){ ?> <tr> <td style="width:130px;"> <?php $facturada = FacturaData::getByIdFacturada($sell->id); //print_r($facturada); if(!isset($facturada->sell_id)){ ?> <?php }else{?> <label>Facturada</label> <?php }?> </td> <?php if($sell->getP()->id != 4):?> <td style="width:130px;"> <a href="index.php?view=onesell1&id=<?php echo $sell->id;?>&sale_id=<?php echo $sell->sale_id;?>" class="btn btn-xs btn-default"><i class="glyphicon glyphicon-eye-open"></i></a><?php echo $sell->sale_id; ?> </td> <?php else:?> <td style="width:130px;"> <a href="index.php?view=onesellN&id=<?php echo $sell->sale_id;?>" class="btn btn-xs btn-default"><i class="glyphicon glyphicon-file"></i></a><?php echo $sell->sale_id; ?> </td> <?php endif;?> <td><?php echo $sell->id; ?></td> <td><?php echo $sell->getP()->name; ?></td> <td><?php echo $sell->getD()->name; ?></td> <td> <?php $total= $sell->total-$sell->discount; $total_total += $sell->total; echo "<b>$ ".number_format($sell->total,2,".",",")."</b>"; ?> </td> <td> <?php //buscamos al cliente echo $sell->getPerson()->name; ?> </td> <td> <?php if($sell->user_id!=null){ $c= $sell->getUser(); if(isset($c->name)){ echo $c->name." ".$c->lastname; }else{ echo "Vendedor Eliminado"; } } ?> <?php if(isset($sell->id_seller)){ $c1= UserData::getById2($sell->id_seller); if(isset($c1->username)){ echo $sell->id_seller."-".$c1->username; }else{ echo "Id Vendedor: ".$sell->id_seller; } }else{ echo "sin vendedor"; } ?> </td> <td><?php if( $sell->id_seller != NULL){ //verificamos el valor de stock_id en tabla user- $user = UserData::getById($sell->id_seller); if( $sell->id_seller != 0){ echo utf8_encode(StockData::getById($user->stock_id)->name); }else{ echo "Sin Vendedor asignado"; } }else{ echo "Sin Almacen"; } ?></td> <?php $fecha = explode("-",$sell->created_at); $fecha2 = explode(":",$fecha[2]); $fecha3 = explode(" ",$fecha2[0]); ?> <td><b><?php echo $fecha3[0]; echo "/"; echo $fecha[1]; echo "/"; echo $fecha[0]; ?></b></td> <td style="width:30px;"> <a href="index.php?view=factura_demo&id=<?php echo $sell->id;?>&sale_id=<?php echo $sell->sale_id;?>" class="btn btn-xs btn-info" title="Demo de Facturacion Iva Agregado"><i class="glyphicon glyphicon-file"></i></a> <a href="index.php?view=factura_demo2&id=<?php echo $sell->id;?>&sale_id=<?php echo $sell->sale_id;?>" class="btn btn-xs btn-warning" title="Demo de Facturacion Iva Desglosado"><i class="glyphicon glyphicon-file"></i></a> <?php if(Core::$user->kind==1):?> <a href="index.php?view=delsellSeguridad&id=<?php echo $sell->id; ?>" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i></a> <?php endif;?> </td> </tr> <?php } endforeach; ?> </table> <h1>Total: <?php echo "$ ".number_format($total_total,2,".",","); ?></h1> </div> </div> <br> <script> contarFilas(); </script> </div> <?php }else { ?> <div class="jumbotron"> <h2>No hay ventas</h2> <p>No se ha realizado ninguna venta.</p> </div> <?php } ?> <br><br><br><br><br><br><br><br><br><br> </div> </div> </section></section>