����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 3.137.159.3 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 : /var/www/html/muebles/pos11/core/app/view/ |
Upload File : |
<?php //REVISAMOS DEV $payment = DevData::getById($_GET["id"]); //EXTRAEMOS EL Cliente $client = PersonData::getById($payment->person_id); //revisamos el registro de devolucion $datos = SpendData::getById_dev($_GET["sell_id"]); //extraemos los datos de la devolucion por folio de venta $devolucions= OperationData::getAllByProductIdAndDev2(1,$_GET["sell_id"]); $total = 0; ?> <div class="btn-group pull-right"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-download"></i> Ticket Devolucion<span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a onclick="thePDF()" id="makepdf" class=""><i class="fa fa-download"></i> Descargar PDF</a> <button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-search"></i>Generar Factura</button> </ul> </div> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> function imprimir() { if (window.print) { window.print(); } else { alert("La función de impresion no esta soportada por su navegador."); } } </script> </head> <body onload="imprimir();"> <br> <br> <br> <div class="row"> <div class="col-md-5"> <div class="box box-primary"> <table class="table table-bordered"> <h3 align="center">Resumen Operacion-Devolucion</h3> <tr> <td style="width:50px;">Cliente:</td> <td> <?php $client = $_GET['entrega']; if(isset($client)) { echo $client; } ?> </td> </tr> <tr> <td style="width:50px;">Cajero:</td> <td><?php echo UserData::getById($_SESSION["user_id"])->name;?> </td> </tr> <tr> </tr> </table> </div> </div> </div> <div class="row"> <div class="col-md-5"> <div class="box box-primary"> <table class="table table-bordered"> <tr> <td>Producto:</td> <td style="width:150px;">Monto:</td> <th>Fecha Dev</th> </tr> <tr> <?php $total=0; foreach($devolucions as $dato){ $total=$dato->price_out+ $total; ?> <td> <?php $product_name = ProductData::getById($dato->product_id); echo $product_name->name; ?> </td> <td style="width:150px;"><?php echo number_format(abs($dato->price_out),2); ?> </td> <th><?php echo $dato->created_at;?> </th> <?php } ?> </tr> </table> </div> </div> </div> <div class="row"> <div class="col-md-5"> <div class="box box-primary"> <table class="table table-bordered"> <tr> <th>Dinero devuelto</th> <th>Forma Pago</th> </tr> <tr> <th>$ <?php echo number_format($total,2,'.',','); ?></th> <td>Efectivo <td> </tr> </table> </div> </div> </div> </body>