����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 3.20.221.0 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 $settingsRFC = ConfigurationData::getByIdRFC(); $settings2 = ConfigurationData::getById1(); $settingsEmisor = ConfigurationData::getByIdEmisor(); $settingsCalle = ConfigurationData::getByIdCalle(); $settingsInt = ConfigurationData::getByIdInt(); $settingsExt = ConfigurationData::getByIdExt(); $settingsColonia = ConfigurationData::getByIdColonia(); $settingsCity = ConfigurationData::getByIdCity(); $settingsCP = ConfigurationData::getByIdCp(); ?> <section class="content"> <div class = "table-responsive"> <div class="box box-primary"> <table class="table table-bordered"> <tr> <td align="center"><img src="storage/products/logo.png" width="75" height="75"></td> </tr> <tr> <td colspan="2" align="center"><?php echo $settings2->val;?></td> </tr> <tr> <td colspan="2" align="center"><?php echo $settingsCalle->val; echo " "; echo $settingsInt->val; echo " "; echo $settingsExt->val; echo " "; echo $settingsColonia->val;?> </td> </tr> <div align="center"><h1>Cotizacion</h1><div> <?php if(isset($_GET["id"]) && $_GET["id"]!=""):?> <?php $sell = SellData::getBycCot($_GET["id"]); $operations = OperationData::getAllProductsBySellId($_GET["id"]); $total = 0; ?> <?php /* if(isset($_COOKIE["selled"])){ foreach ($operations as $operation) { print_r($operation); $qx = OperationData::getQYesF($operation->product_id); // print "qx=$qx"; $p = $operation->getProduct(); if($qx==0){ echo "<p class='alert alert-danger'>El producto <b style='text-transform:uppercase;'> $p->name</b> no tiene existencias en inventario.</p>"; }else if($qx<=$p->inventary_min/2){ echo "<p class='alert alert-danger'>El producto <b style='text-transform:uppercase;'> $p->name</b> tiene muy pocas existencias en inventario.</p>"; }else if($qx<=$p->inventary_min){ echo "<p class='alert alert-warning'>El producto <b style='text-transform:uppercase;'> $p->name</b> tiene pocas existencias en inventario.</p>"; } } setcookie("selled","",time()-18600); } */ ?> <div class = "table-responsive"> <div class="box box-primary"> <table class="table table-bordered"> <?php if(isset($sell->person_id)): if($sell->person_id!=""): $client = $sell->getPerson(); ?> <tr> <td style="width:150px;">Cliente:</td> <td><?php echo $client->name." ".$client->lastname;?></td> </tr> <?php endif; endif; ?> <?php if(isset($sell->user_id)): if($sell->user_id!=""): $user = $sell->getUser(); ?> <tr> <td>Atendido por</td> <td><?php echo $user->name." ".$user->lastname;?></td> </tr> <?php endif; endif; ?> </table> </div> <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> <th></th> </thead> <?php foreach($operations as $operation){ $product = $operation->getProduct(); //$r=OperationData::getRByStock($product->id,1); //$q=OperationData::getQByStock($product->id,1); //$d=OperationData::getDByStock($product->id,1); $qty=0; ?> <tr> <td><?php echo $product->barcode ;?></td> <td><?php echo $operation->qty ;?></td> <td><?php echo $product->item_name ;?></td> <td>$ <?php echo number_format($product->price,2,".",",") ;?></td> <td><b>$ <?php echo number_format($operation->qty*$product->price,2,".",",");$total+=$operation->qty*$product->price;?></b></td> </tr> <?php } ?> </table> </div> <div class="row"> <div class="box box-primary"> <table class="table table-bordered"> <div align="center"><h1>Total: $ <?php echo number_format($total,2,'.',','); ?></h1></div> </table> </div> </div> </div> </div> </div> </div> <?php else:?> 501 Internal Error <?php endif; ?> </section>