����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 18.224.136.160 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/t/sae/appsae/core/app/view/ |
Upload File : |
<section class="content"> <h1>Procesar Apartado</h1> <p class="btn btn-info">Convertir un Apartado en un venta real.</p> <?php if(isset($_GET["id"]) && $_GET["id"]!=""):?> <?php $sell = ApartData::getById($_GET["id"]); $operations = OperationData::getAllProductsBySellId($_GET["id"]); $total = 0; foreach($operations as $operation){ $product = $operation->getProduct(); $total+=$operation->q*$product->price_out; } //$total; ?> <form method="post" class="form-horizontal" id="processcotization" action="index.php?action=processapart"> <input type="hidden" name="cotization_id" value="<?php echo $_GET["id"]; ?>"> <input type="hidden" name="total" value="<?php echo $total; ?>" class="form-control" placeholder="Total"> <div class="row"> <div class="col-md-3"> <label class="control-label">Almacen</label> <div class="col-lg-12"> <h4 class=""><?php echo StockData::getPrincipal()->name; ?></h4> </div> </div> <div class="col-md-3"> <label class="control-label">Cliente</label> <div class="col-lg-12"> <?php $clients = PersonData::getClients(); ?> <select name="client_id" class="form-control"> <option value="">-- NINGUNO --</option required> <?php foreach($clients as $client):?> <option value="<?php echo $client->id;?>"><?php echo $client->name." ".$client->lastname;?></option> <?php endforeach;?> </select> </div> </div> <div class="col-md-3"> <label class="control-label">Descuento</label> <div class="col-lg-12"> <input type="text" name="discount" class="form-control" required value="0" id="discount" placeholder="Descuento"> </div> </div> <div class="col-md-3"> <label class="control-label">Efectivo</label> <div class="col-lg-12"> <input type="text" name="money" required class="form-control" value="0" id="money" placeholder="Efectivo"> </div> </div> </div> <div class="row"> <div class="col-md-4"> <label class="control-label">Pago</label> <div class="col-lg-12"> <?php $clients = PData::getAll(); ?> <select name="p_id" class="form-control" required readonly="readonly"> <option value="4">Credito</option> </select> </div> </div> <div class="col-md-4"> <label class="control-label">Entrega</label> <div class="col-lg-12"> <?php $clients = DData::getAll(); ?> <select name="d_id" class="form-control" required> <option value="2">Pendiente</option> </select> </div> </div> <div class="col-md-4"> <label class="control-label"> </label> <div class="col-lg-12"> <button class="btn btn-primary btn-block"><i class="glyphicon glyphicon-usd"></i><i class="glyphicon glyphicon-usd"></i> Procesar</button> </div> </div> </div> </form> <br> <div class="box box-primary"> <br><table class="table table-bordered table-hover"> <thead> <th>Codigo</th> <th>Cantidad</th> <th>Nombre del Producto</th> <th>Precio Unitario</th> <th>Total</th> </thead> <?php foreach($operations as $operation){ $product = $operation->getProduct(); ?> <tr> <td><?php echo $product->id ;?></td> <td><?php echo $operation->q ;?></td> <td><?php echo $product->name ;?></td> <td>$ <?php echo number_format($product->price_out,2,".",",") ;?></td> <td><b>$ <?php echo number_format($operation->q*$product->price_out,2,".",","); //$total+=$operation->q*$product->price_out;?></b></td> </tr> <?php } ?> </table> </div> <br><br><h1>Total: $ <?php echo number_format($total,2,'.',','); ?></h1> <?php ?> <?php else:?> 501 Internal Error <?php endif; ?> </section>