datosempImpresiones($_SESSION['idempresa']); //$datose = $datos->fetch_object(); //En el objeto $rspta Obtenemos los valores devueltos del método ventacabecera del modelo $rspta = $boleta->ventacabecera($_GET["id"], $_SESSION['idempresa']); //Recorremos todos los valores obtenidos $reg = $rspta->fetch_object(); $datose = $datos->fetch_object(); $cuotas = explode(",", $reg->cuotas); $logo = "../files\logo\\" . $datose->logo; //$logo = $datose->rutalogo.$datose->logo; $ext_logo = substr($datose->logo, strpos($datose->logo, '.'), -4); if ($reg->nombretrib == "IGV") { $nombretigv = $reg->subtotal; $nombretexo = "0.00"; } else if ($reg->nombretrib == "EXO") { $nombretigv = "0.00"; $nombretexo = $reg->subtotal; } else { // En caso de otros valores, puedes establecer un valor predeterminado o manejarlo como desees $nombretigv = "0.00"; $nombretexo = "0.00"; } ?>
.:: nombre_comercial)) ?> ::.
textolibre; ?>
R.U.C. numero_ruc; ?>
domicilio_fiscal) . ' - ' . $datose->telefono1 . "-" . $datose->telefono2; ?>
correo)); ?>
web)); ?>
-------------------------------------------------------
BOLETA DE VENTA ELECTRÓNICA
numeracion_07; ?>
-------------------------------------------------------
Cliente: cliente; ?>
Documento: DNI - numero_documento; ?>
Dirección: direccion; ?>
Fecha de emisión: fecha . " / " . $reg->hora; ?>
Moneda: SOLES
Atención: vendedorsitio; ?>
Tipo de pago: tipopago; ?>
Nro referencia: nroreferencia; ?>
Observación: descripcion_leyenda_26_2; ?>

tipopago == "Contado") { echo ""; echo ""; // Abrir fila de los nombres de los tipos de pago if ($reg->yape > 0) { echo ""; } if ($reg->visa > 0) { echo ""; } if ($reg->efectivo > 0) { echo ""; } if ($reg->plin > 0) { echo ""; } if ($reg->masterC > 0) { echo ""; } if ($reg->dep > 0) { echo ""; } echo ""; // Cerrar fila de los nombres echo ""; // Abrir fila de los montos if ($reg->yape > 0) { echo ""; } if ($reg->visa > 0) { echo ""; } if ($reg->efectivo > 0) { echo ""; } if ($reg->plin > 0) { echo ""; } if ($reg->masterC > 0) { echo ""; } if ($reg->dep > 0) { echo ""; } echo ""; // Cerrar fila de los montos } elseif ($reg->tipopago == "Credito") { echo ""; } ?>
Métodos de pago:
YapeVisaEfectivoPlinMasterCDep.
$reg->yape $reg->visa $reg->efectivo $reg->plin $reg->masterC $reg->dep
"; $cuotas = explode(",", $reg->cuotas); echo ""; echo ""; foreach ($cuotas as $c) { $detalles = explode("|", $c); echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
Nro CuotaMontoFecha
" . $detalles[0] . "" . $detalles[1] . "" . $detalles[2] . "
"; echo "
mostrar2($_SESSION['idempresa']); $Prutas = $Rrutas->fetch_object(); $rutafirma = $Prutas->rutafirma; // ruta de la carpeta FIRMA $data[0] = ""; if ($reg->estado == '5') { $boletaFirm = $reg->numero_ruc . "-" . $reg->tipo_documento_06 . "-" . $reg->numeracion_07; $sxe = new SimpleXMLElement($rutafirma . $boletaFirm . '.xml', null, true); $urn = $sxe->getNamespaces(true); $sxe->registerXPathNamespace('ds', $urn['ds']); $data = $sxe->xpath('//ds:DigestValue'); } else { $data[0] = ""; } //==================== PARA IMAGEN DEL CODIGO HASH ================================================ //set it to writable location, a place for temp generated PNG files $PNG_TEMP_DIR = dirname(__FILE__) . DIRECTORY_SEPARATOR . '/generador-qr/temp' . DIRECTORY_SEPARATOR; //html PNG location prefix $PNG_WEB_DIR = 'temp/'; include 'generador-qr/phpqrcode.php'; //ofcourse we need rights to create temp dir if (!file_exists($PNG_TEMP_DIR)) mkdir($PNG_TEMP_DIR); $filename = $PNG_TEMP_DIR . 'test.png'; //processing form input //remember to sanitize user input in real-life solution !!! $dataTxt = $reg->numero_ruc . "|" . $reg->tipo_documento_06 . "|" . $reg->serie . "|" . $reg->numerofac . "|0.00|" . $reg->Itotal . "|" . $reg->fecha2 . "|" . $reg->tipo_documento . "|" . $reg->numero_documento . "|"; ; $errorCorrectionLevel = 'H'; $matrixPointSize = '2'; // user data $filename = 'generador-qr/temp/test' . md5($dataTxt . '|' . $errorCorrectionLevel . '|' . $matrixPointSize) . '.png'; QRcode::png($dataTxt, $filename, $errorCorrectionLevel, $matrixPointSize, 2); $PNG_WEB_DIR . basename($filename); // //==================== PARA IMAGEN DEL CODIGO HASH ================================================ $logoQr = $filename; $ext_logoQr = substr($filename, strpos($filename, '.'), -4); //===============SEGUNDA COPIA DE BOLETA========================= $rsptad = $boleta->ventadetalle($_GET["id"]); $cantidad = 0; while ($regd = $rsptad->fetch_object()) { if ($regd->nombretribu == "IGV") { $pv = $regd->precio; $subt = $regd->subtotal; } else { $pv = $regd->precio; $subt = $regd->subtotal2; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $cantidad += $regd->cantidad_item_12; } ?>
-----------------------------------------------------
Cant. Producto P.u. Importe
-----------------------------------------------------
" . $regd->cantidad_item_12 . "" . strtolower($regd->articulo) . "" . number_format($pv, 2) . "" . $subt . "
-----------------------------------------------------"; echo ""; ?>
Descuento : tdescuento ?>
Op. Gravada :
Op. Exonerado :
Op. Inafecto : 0.00
ICBPER : icbper ?>
I.G.V. : igv ?>
Imp. Pagado: : ipagado ?>
Vuelto: : saldo ?>

ValorEnLetras($reg->Itotal, "NUEVOS SOLES")); echo "
Importe a pagar : Itotal ?>
"; echo "
-----------------------------------------------------

Son: " . $con_letra . "
"; ?>
width="90" height="90">