Example #1
0
function numero($n)
{
    if (strpos($n, ".") == true) {
        $pos = (int) strpos($n, ".") + 1;
        $decimal = substr($n, $pos);
        $enteros = str_replace("." . $decimal, "", $n);
        return num2letras($enteros) . " " . $decimal . "/100 M.N";
    }
    return num2letras($n);
}
Example #2
0
            ?>
</span></div>
        <div class="total"><span class="letrafactura"><?php 
            echo $rss["cantidad"] * $rss["valor"];
            ?>
</span></div>
        
        
        <?php 
        }
        ?>
        
        
        <div class="total2"><span class="letrafactura"><?php 
        $numero = $rs["total"];
        echo num2letras($numero);
        ?>
</span></div>
      <div class="neto"><span class="letrafactura"><?php 
        echo $rs["neto"];
        ?>
</span></div>
      <div class="iva"><span class="letrafactura"><?php 
        echo $rs["iva"];
        ?>
</span></div>
      <div class="total3"><span class="letrafactura"><?php 
        echo $rs["total"];
        ?>
</span></div>
</div>
     $Precio = $Cantidad * $PrecioUnitario;
     $HTMLCode .= '
                                 <tr>
                                     <td><center>' . $x . '</center></td>' . '<td><center>' . $Cantidad . '</center></td>' . '<td><center>' . $Descripcion . '</center></td>' . '<td><center>$' . number_format((double) $PrecioUnitario, 2, '.', '') . '</center></td>' . '<td><center>$' . number_format((double) $Precio, 2, '.', '') . '</center></td>' . '</tr>';
     $SubTotal += $Precio;
     $x++;
 }
 $HTMLCode .= '<tr>
                             <td colspan="5" style="height: 10px;"></td>
                         </tr>
                         <tr>
                             <td colspan="4" style="text-align:right;">Subtotal</td>
                             <td><center>' . number_format((double) $SubTotal, 2, '.', '') . '</center></td>
                         </tr>
                         <tr>
                             <td colspan="3"><center>' . num2letras(number_format((double) $SubTotal * 1.16, 2, '.', '')) . '</center></td>
                             <td style="text-align:right;">IVA (' . number_format((double) $IVA, 2, '.', '') . '%)</td>
                             <td><center>$' . number_format((double) $SubTotal * ($IVA / 100), 2, '.', '') . '</center></td>
                         </tr>
                         <tr>
                             <td colspan="3"><center>Pago mediante ' . $FormaPago . '</center></td>
                             <td style="text-align:right;"><b>Total</b></td>
                             <td><center>$' . number_format((double) $SubTotal * 1.16, 2, '.', '') . '</center></td>
                         </tr>
                     </table>';
 $HTMLCode .= '
                 </td>
             </tr>
             <tr>
                 <td colspan="2" style="width:100%; height: 20px; ">
                 </td>
        <tr>
          <td align="center"><span style="text-transform:uppercase"><?php 
echo $data['proveedor'];
?>
</span></td>
        </tr>
      </table>
      <br />
      <table width="800" border="1">
        <tr>
          <td>$<?php 
echo number_format($data['cantidad'], 2);
?>
</td>
          <td style="text-transform:uppercase"><?php 
echo num2letras($data['cantidad']);
?>
 PESOS </td>
        </tr>
      </table>
      <br />
      <table width="800" border="0">
        <tr>
          <td>POR LOS CONCEPTOS SIGUIENTES:</td>
        </tr>
      </table>
      <table width="800" height="70" border="1">
        <tr>
          <td align="center" style=" text-transform:uppercase"><?php 
echo $data['titulo'];
?>
Example #5
0
 $pdf->Cell(30, 10, mb_strtoupper($arren['CiEsposa']), "LRB", 0, "C");
 $pdf->ln(25);
 //$pdf->SetXY(10,25);
 $pdf->SetFont("Arial", "B", 12);
 $pdf->Cell(200, 10, "CONCEPTO", 1, 0, "C");
 $pdf->Cell(50, 10, "IMPORTE", 1, 0, "C");
 $pdf->Ln(10);
 $pdf->SetFont("Arial", "", 12);
 $pdf->MultiCell(200, 10, implode("\n", $valorConcepto), 1, "L", 0);
 $pdf->SetXY(210, 90);
 $pdf->MultiCell(50, 10, implode("\n", $valorImporte), 1, "C", 0);
 $pdf->Cell(200, 10, "TOTAL", $borde, 0, "C");
 $pdf->Cell(50, 10, $pagoTotal . " Bs.", $borde, 0, "C");
 $pdf->Ln(10);
 $pdf->Cell(20, 10, "SON:", 1, 0, "C");
 $pdf->Cell(200, 10, num2letras($pagoTotal, 0, 0), 1, 0, "C");
 $pdf->Cell(30, 10, " Bolivianos", 1, 0, "C");
 //$pdf->Rect(10,60,200,10);
 $pdf->SetXY(280, 80);
 $pdf->SetFont("Arial", "B", 12);
 $pdf->Cell(100, 10, "PAGO HISTORICO", 1, 10, "C");
 $pdf->SetFont("Arial", "", 12);
 $pdf->MultiCell(35, 10, implode("\n", array_reverse($valorHistoricoMes)), 1, "L", 0);
 $pdf->SetXY(315, 90);
 $pdf->MultiCell(35, 10, implode("\n", array_reverse($valorHistoricoFecha)), 1, "C", 0);
 $pdf->SetXY(350, 90);
 $pdf->MultiCell(30, 10, implode("\n", array_reverse($valorHistoricoBs)), 1, "R", 0);
 $pdf->Ln(10);
 $pdf->SetXY(280, 150);
 $pdf->SetFont("Arial", "B", 12);
 $pdf->Cell(50, 10, "MONTO PENDIENTE", 1, 0, "C");
Example #6
0
					</tbody>
				</table>
			</td>
		</tr>
		<tr>
			<td style="margin:0px;font-size:12px;">

				<br/>
				<table class="principal" width="100%">
					<tr>
						<td style="text-align:left;font-size:12px;" width="80%" valign="top">
							<b>IMPORTE EN LETRAS:</b>
							<br/>
							<center>
							<?php 
echo strtoupper(num2letras($encabezado['total']));
?>
							</center>
							<br/>
							<b>Metodo de Pago:</b> <?php 
echo $encabezado['metodoDePago'];
?>
							<br/>
							<b>Forma de Pago:</b> <?php 
echo $encabezado['formaDePago'];
?>
							<br/>
						</td>
						<td valign="top">
							<table class="principal" width="100%">
								<tr>
	
	$contenido = 'CONCESIONARIO: '.$f->nconcesionario.'
OFICINA: '.$f->oficina.'
ADJUNTO A LA PRESENTE SIRVASE ENCONTRAR LIQUIDACION CORRESPONDIENTE DE LA FECHA '.$f->fecha2.'


CON LOS SIGUIENTES IMPORTES A LIQUIDAR
VENTA DE FLETES ENVIADOS PAGADOS CONTADO                                                                                                          $ '.number_format($f->pagcont,2).'	
VENTA DE FLETES ENVIADOS PAGADOS CREDITO                                                                                                               $ '.number_format($f->pagcred,2).'
RECIBIDO DE FLETES RECIBIDOS POR COBRAR CONTADO                                                                                           $ '.number_format($f->cobcont,2).'
RECIBIDO DE FLETES RECIBIDOS POR COBRAR CREDITO                                                                                                  $ '.number_format($f->cobcred,2).'
';
$contenido2 = 'TOTAL A PAGAR                                                                                                                                                                    $ '.number_format($f->total,2).'
	
';	
$contenido3 = 'EL IMPORTE DE SUS COMISIONES ES DE: $ '.number_format($f->importe,2).' '.num2letras($f->importe).'

EL CUAL APLICARA DE LOS IMPORTES A LIQUIDAR Y ANEXARA FACTURA CORRESPONDIENTE A ESTE DOCUMENTO.
	
SALDO A LIQUIDAR $ '.number_format($f->liquidar,2).'
	
DICHO IMPORTE SERA CUBIERTO POR DEPOSITO EN CADA PLAZA A LA CUENTA ASIGNADA A NOMBRE DE ENTREGAS PUNTUALES S DE RL DE CV., CONVENIO CIE 941492 DE BANCOMER REFERENCIA 3608.
	
DEBO Y PAGARE INCONDICIONALMENTE EN ESTA PLAZA A LA ORDEN DE ENTREGAS PUNTUALES S DE RL DE CV, LA CANTIDAD DE $ '.number_format($f->liquidar,2).' A MAS TARDAR 15 DIAS DESPUES DE EMITIDO EL PRESENTE DOCUMENTO. ESTE PAGARE ES MERCANTIL Y ESTA REGIDO POR LA LEY GENERAL DE TITULOS Y OPERACIONES DE CREDITO EN SU ARTICULO 173 EN SU PARTE FINAL Y ARTICULOS CORRELATIVOS POR NO SER PAGARE DOMICILIADO.
DE NO HACER EL PAGO QUE ESTE PAGARE EXPRESA A SU VENCIMIENTO, CAUSARA INTERES MORATORIOS DEL C.P.P. MAS 50% DEL MISMO.,	MAS LOS GASTOS QUE POR ELLO SE ORIGINEN.
	';
	
	$pdf -> MultiCell(177,4,$contenido,0,'J');
	$pdf -> SetFont("Arial","B",8);
	$pdf -> MultiCell(177,4,$contenido2,0,'J');
	$pdf -> SetFont("Arial","",8);
Example #8
0
             default:
                 $cuo = $cuota->mostrarTodoCuota($fd['CodCuota']);
                 $cuo = array_shift($cuo);
                 break;
         }
         $NombreAlumno = $al['Paterno'] . " " . $al['Materno'] . " " . $al['Nombres'];
         $NombreCurso = $cur['Abreviado'];
         $NombreCuota = cambiopalabra($cuo['Numero']) . " " . $idioma['Cuota'] . ($cuo['Numero'] == "Todo" ? " - " . $idioma['AlContado'] : '');
         $TextoDetalle = capitalizar($NombreAlumno . " - " . $NombreCurso) . " - " . $NombreCuota;
     }
     celda(115, $TextoDetalle, "", "9");
     celda(35, number_format($fd['Total'], 2), "", 10, "R");
 }
 $pdf->SetXY($x + 20, $y + 71);
 celda(10, $idioma['Son'] . ": ", "B");
 celda(110, mayuscula(num2letras($f['TotalBs'])) . " " . $idioma['Bolivianos'], "", "8");
 celda(15, $idioma['TotalBs'] . ": ", "B", "8");
 celda(20, number_format($f['TotalBs'], 2), "", 10, "R");
 $pdf->SetXY($x + 177, $y + 71);
 celda(12, $idioma['Cajero'] . ": ", "B", "8");
 celda(20, $Usuario, "", 8, "");
 $pdf->Ln();
 $pdf->SetXY($x + 140, $y + 74);
 celda(15, $idioma['Cancelado'] . ": ", "B", "8");
 celda(20, number_format($f['Cancelado'], 2), "", 10, "R");
 $pdf->SetXY($x + 20, $y + 77);
 celda(37, $idioma['FechaLimiteEmision'] . ": ", "B", "8");
 celda(15, fecha2Str($FechaLimiteEmision), "", 8, "R");
 if ($Credito) {
     $pdf->SetXY($x + 100, $y + 77);
     celda(35, $TextoCredito, "", "6");
Example #9
0
			<td align="right"><?php 
echo '$ ' . number_format($f->cobcred, 2);
?>
</td>
		</tr>
		<tr>
			<td class="titulo">TOTAL A PAGAR</td>
			<td align="right" class="titulo"><?php 
echo '$ ' . number_format($f->total, 2);
?>
</td>
		</tr>
		<tr><td colspan="2">&nbsp;</td></tr>
		<tr><td colspan="2">EL IMPORTE DE SUS COMISIONES ES DE: <?php 
echo '$ ' . number_format($f->importe, 2);
echo num2letras($f->importe);
?>
</td></tr>
		<tr><td colspan="2">&nbsp;</td></tr>
		<tr><td colspan="2" align="justify">EL CUAL APLICARA DE LOS IMPORTES A LIQUIDAR Y ANEXARA FACTURA CORRESPONDIENTE A ESTE DOCUMENTO.</td></tr>
		<tr><td colspan="2">&nbsp;</td></tr>
		<tr><td colspan="2">SALDO A LIQUIDAR <?php 
echo '$ ' . number_format($f->liquidar, 2);
?>
</td></tr>
		<tr><td colspan="2">&nbsp;</td></tr>
		<tr><td colspan="2" align="justify">DICHO IMPORTE SERA CUBIERTO POR DEPOSITO EN CADA PLAZA A LA CUENTA ASIGNADA A NOMBRE DE ENTREGAS 
		PUNTUALES S DE RL DE CV., CONVENIO CIE 941492 DE BANCOMER REFERENCIA 3608</td></tr>
		<tr><td colspan="2">&nbsp;</td></tr>
		<tr><td colspan="2" align="justify">DEBO Y PAGARE INCONDICIONALMENTE EN ESTA PLAZA A LA ORDEN DE ENTREGAS PUNTUALES S DE RL DE CV, LA CANTIDAD DE 
		<?php 
Example #10
0
 function Footer()
 {
     global $data;
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(1, 170);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(225, 225, 225);
     $this->SetTextColor(191, 81, 80);
     $this->SetLineWidth(0);
     $this->Cell(143, 5, 'Cantidad con letra:', 1, 1, 'L', true);
     $this->Ln(10);
     //Colonia
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(1, 175);
     $this->SetDrawColor(225, 225, 225);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(1);
     $this->MultiCell(143, 5, "( " . num2letras($data['Comprobante']['total']) . " )", 0, 'L', true);
     //RFC
     $this->Ln(10);
     global $data;
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(1, 180);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(225, 225, 225);
     $this->SetTextColor(191, 81, 80);
     $this->SetLineWidth(0);
     $this->Cell(143, 5, @$data['Comprobante']['formaDePago'], 1, 1, 'L', true);
     $this->Ln(10);
     //Colonia
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(1, 185);
     $this->SetDrawColor(225, 225, 225);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(1);
     $this->MultiCell(143, 5, "Metodo de Pago: " . @$data['Comprobante']['metodoDePago'], 0, 'L', true);
     //RFC
     $this->Ln(10);
     //Colonia
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(1, 185);
     $this->SetDrawColor(225, 225, 225);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(1);
     $this->MultiCell(143, 5, "Metodo de Pago: " . @$data['Comprobante']['metodoDePago'], 0, 'L', true);
     //RFC
     $this->Ln(10);
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(145, 170);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(225, 225, 225);
     $this->SetTextColor(191, 81, 80);
     $this->SetLineWidth(0);
     $this->Cell(30, 5, 'Subtotal:', 1, 1, 'R', true);
     $this->Ln(10);
     //Colonia
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(175, 170);
     $this->SetDrawColor(225, 225, 225);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(1);
     $this->Cell(30, 5, money_format('$%i', @$data['Comprobante']['subTotal']), 0, 1, 'R', true);
     //RFC
     $this->Ln(10);
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(145, 175);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(225, 225, 225);
     $this->SetTextColor(191, 81, 80);
     $this->SetLineWidth(0);
     $this->Cell(30, 5, 'Descuento:', 1, 1, 'R', true);
     $this->Ln(10);
     //Colonia
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(175, 175);
     $this->SetDrawColor(225, 225, 225);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(1);
     $this->Cell(30, 5, money_format('$%i', @$data['Comprobante']['descuento']), 0, 1, 'R', true);
     //RFC
     $this->Ln(10);
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(145, 180);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(225, 225, 225);
     $this->SetTextColor(191, 81, 80);
     $this->SetLineWidth(0);
     $this->Cell(30, 5, 'IVA (' . number_format(@$data['Traslado']['tasa'], 0) . '%):', 1, 1, 'R', true);
     $this->Ln(10);
     //Colonia
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(175, 180);
     $this->SetDrawColor(225, 225, 225);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(1);
     $this->Cell(30, 5, money_format('$%i', @$data['Traslado']['importe']), 0, 1, 'R', true);
     //RFC
     $this->Ln(10);
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(145, 185);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(225, 225, 225);
     $this->SetTextColor(191, 81, 80);
     $this->SetLineWidth(0);
     $this->Cell(30, 5, 'ISR Retenido:', 1, 1, 'R', true);
     $this->Ln(10);
     //Colonia
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(175, 185);
     $this->SetDrawColor(225, 225, 225);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(1);
     $this->Cell(30, 5, money_format('$%i', "0"), 0, 1, 'R', true);
     //RFC
     $this->Ln(10);
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(145, 190);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(225, 225, 225);
     $this->SetTextColor(191, 81, 80);
     $this->SetLineWidth(0);
     $this->Cell(30, 5, 'IVA Retenido:', 1, 1, 'R', true);
     $this->Ln(10);
     //Colonia
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(175, 190);
     $this->SetDrawColor(225, 225, 225);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(1);
     $this->Cell(30, 5, money_format('$%i', "0"), 0, 1, 'R', true);
     //RFC
     $this->Ln(10);
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(145, 195);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(225, 225, 225);
     $this->SetTextColor(191, 81, 80);
     $this->SetLineWidth(0);
     $this->Cell(30, 5, 'Total:', 1, 1, 'R', true);
     $this->Ln(10);
     //Colonia
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(175, 195);
     $this->SetDrawColor(225, 225, 225);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(1);
     $this->Cell(30, 5, money_format('$%i', @$data['Comprobante']['total']), 0, 1, 'R', true);
     //RFC
     $this->Ln(10);
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(43, 200);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(225, 225, 225);
     $this->SetTextColor(191, 81, 80);
     $this->SetLineWidth(0);
     $this->Cell(215.5, 5, 'Sello Digital del CFDI:', 1, 1, 'L', true);
     $this->Ln(10);
     //Colonia
     $this->SetFont('Arial', '', 8);
     $this->SetXY(45, 205);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(0);
     $this->MultiCell(0, 4, @$data['sellocfd'], 0, 'T', 'C', true);
     //RFC
     $this->Ln(10);
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(43, 215);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(225, 225, 225);
     $this->SetTextColor(191, 81, 80);
     $this->SetLineWidth(0);
     $this->Cell(215.5, 5, 'Sello SAT:', 1, 1, 'L', true);
     $this->Ln(10);
     //Colonia
     $this->SetFont('Arial', '', 8);
     $this->SetXY(45, 220);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(0);
     $this->MultiCell(0, 4, @$data['sellocfd'], 0, 'T', 'C', true);
     //RFC
     $this->Ln(10);
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(43, 230);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(225, 225, 225);
     $this->SetTextColor(191, 81, 80);
     $this->SetLineWidth(0);
     $this->Cell(215.5, 5, utf8_decode('Cadena Original del complemento de certificación digital del SAT:'), 1, 1, 'L', true);
     $this->Ln(10);
     $original = "||1.0|9B090610-3F15-417A-A1B0-6CF83939DA53|2015-02-08T11:23:40|KnjqSjLIt4M/BM6GgqgXn/IitYnrP6jP3843o5zFTl47C53daZd279Wx42WcyKYpD1G3cnOEcBQpn8khSdFwMLFSaqVIS/Olu4KlgtR5Ii70yXfDB/6Pzx1GHL7kjYAjHa8Les3GQGaBpZQMs1UM6aL8zkh7IVrUIZplAZEGbNA=|00001000000202865018||";
     //Colonia
     $this->SetFont('Arial', '', 8);
     $this->SetXY(45, 235);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(0);
     $this->MultiCell(0, 4, "{$original}", 0, 'T', 'C', true);
     //RFC
     $this->Ln(10);
     $this->SetFont('Arial', 'B', 9);
     $this->SetXY(0, 250);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(225, 225, 225);
     $this->SetTextColor(191, 81, 80);
     $this->SetLineWidth(0);
     $this->Cell(215.5, 5, utf8_decode('Este documento es una representación impresa de un cfdi'), 1, 1, 'C', false);
     $this->Ln(10);
     $qrcode = new QRcode($original, 'L');
     // error level : L, M, Q, H
     $qrcode->displayFPDF($this, 1, 205, 40);
     //RECEPTOR
     $this->SetDrawColor(191, 81, 80);
     $this->SetLineWidth(1);
     $this->Line(1, 200, 215, 200);
     // Información del receptor
     //RECEPTOR
     $this->SetDrawColor(191, 81, 80);
     $this->SetLineWidth(1);
     $this->Line(1, 258, 215, 258);
     //Colonia
     $this->SetFont('Arial', 'B', 6);
     $this->SetXY(0, 260);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(0);
     $this->Cell(0, 4, "HERRAMIENTASCONTABLES.COM | CUITLAHUAC NO. 537 INT. 12 | COL. ANALCO | GUADALAJARA, JALISCO | MEXICO", 1, 1, 'C', true);
     //RFC
     $this->Ln(10);
     //Colonia
     $this->SetFont('Arial', 'B', 6);
     $this->SetXY(0, 263);
     $this->SetDrawColor(255, 255, 255);
     $this->SetFillColor(255, 255, 255);
     $this->SetTextColor(0, 0, 0);
     $this->SetLineWidth(0);
     $this->Cell(0, 4, "TEL. (33) 12 10 1985 | E-MAIL: CONTACTO@HERRAMIENTASCONTABLES.COM", 1, 1, 'C', true);
     //RFC
     $this->Ln(10);
     // Pie de página
     $this->SetY(-15);
     $this->SetFont('Arial', 'I', 8);
     $this->SetTextColor(128);
     $this->Cell(0, 10, utf8_decode('Página ' . $this->PageNo()), 0, 0, 'C');
 }
Example #11
0
$pdf->Cell(93, 4, utf8_decode("en cualquier plaza donde se requiera el pago de la cantidad consignada"), 0, 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(30, 4, "Descuento: ", 0, 0, 'R');
$pdf->Cell(30, 4, "\$" . number_format($descuento, 2, '.', ','), 0, 1, 'C');
//subtotal 2
$pdf->SetFont('Arial', '', 6);
$pdf->Cell(42, 4, " ", 0, 0, 'L');
$pdf->Cell(93, 4, utf8_decode("en éste título de credito, en un plazo no mayor a {$dias_credito} dias a partir del {$fecha}"), 0, 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(30, 4, "Subtotal: ", 0, 0, 'R');
$pdf->Cell(30, 4, "\$" . number_format($subtotal2, 2, '.', ','), 0, 1, 'C');
//IVA y ejecutivo
$pdf->Cell(165, 4, "IVA: ", 0, 0, 'R');
$pdf->Cell(30, 4, "\$" . number_format($iva, 2, '.', ','), 0, 1, 'C');
//cantidad con letra y total
$letras = utf8_decode(num2letras($total, 0, 0) . " pesos  ");
$total_cadena = $total;
$total = "\$" . number_format($total, 2, '.', ',');
$ultimo = substr(strrchr($total, "."), 1);
//recupero lo que este despues del decimal
$letras = $letras . " " . $ultimo . "/100 M. N.";
$pdf->SetFont('Arial', '', 6);
$pdf->Cell(35, 4, "", 0, 0, 'R');
$pdf->Cell(100, 4, "____________________", 0, 0, 'C');
$pdf->SetFont('Arial', 'B', 8);
$pdf->Cell(30, 4, "Total: ", 0, 0, 'R');
$pdf->Cell(30, 4, $total, 0, 1, 'C');
$pdf->SetFont('Arial', '', 6);
$pdf->Cell(35, 4, "", 0, 0, 'R');
$pdf->Cell(100, 4, "Firma", 0, 1, 'C');
$pdf->Ln(3);
<?php

if (isset($_REQUEST['numero'])) {
    $num = $_REQUEST['numero'];
} else {
    $num = "";
}
if (isset($_REQUEST['lenguaje'])) {
    $lenguaje = $_REQUEST['lenguaje'];
} else {
    $lenguaje = "";
}
if ($lenguaje == 'esp') {
    echo num2letras($num, true, true);
}
if ($lenguaje == 'ing') {
    echo convert_number_to_words($num);
}
function num2letras($num, $fem = true, $dec = true)
{
    $matuni[2] = "dos";
    $matuni[3] = "tres";
    $matuni[4] = "cuatro";
    $matuni[5] = "cinco";
    $matuni[6] = "seis";
    $matuni[7] = "siete";
    $matuni[8] = "ocho";
    $matuni[9] = "nueve";
    $matuni[10] = "diez";
    $matuni[11] = "once";
    $matuni[12] = "doce";
Example #13
0
echo $sucursal->suc_direccion . ", " . $sucursal->suc_ciudad . " " . $sucursal->suc_estado . " Tel." . $sucursal->suc_tel;
?>
. </p>
	    <p> VENDEDOR: <?php 
echo $_SESSION['compra']['prov_nombre'] . " " . $_SESSION['compra']['prov_apellidos'] . " Dirección: " . $_SESSION['compra']['prov_dir1'] . " " . $_SESSION['compra']['prov_dir2'] . " " . $_SESSION['compra']['prov_dir3'] . " " . $_SESSION['compra']['prov_ciudad'] . " " . $_SESSION['compra']['prov_estado'] . " CP: " . $_SESSION['compra']['prov_cp'] . " Tel:" . $_SESSION['compra']['prov_tel'];
?>
. </p>
	    <p> VEHÍCULO: Marca <?php 
echo $mark . ", tipo " . $_SESSION['compra']['ve_tipo'] . ", modelo " . $_SESSION['compra']['ve_modelo'] . ", color " . $colorext[$_SESSION['compra']['att_colorext']] . ", número de motor " . $_SESSION['compra']['att_nummotor'] . ", con número de serie: " . $_SESSION['compra']['att_numserie'];
?>
. </p>
	    <p> Tanto comprador como vendedor pactan el precio del vehículo en la cantidad de $<?php 
echo number_format($_SESSION['compra']['att_preciocompra'], 2);
?>
  (SON: <?php 
echo strtoupper(num2letras($_SESSION['compra']['att_preciocompra']));
?>
  00/100 M.N.), cantidad que será tomada a cuenta para compra-venta de vehículo <?php 
echo $marcas[$_SESSION['compra']['ve_marca']] . " " . $_SESSION['compra']['ve_tipo'] . " " . $_SESSION['compra']['ve_modelo'] . " " . $colorext[$_SESSION['compra']['att_colorext']];
?>
. </p>
	    <p id="justicom">
	    	-Copia de factura de origen con número de folio <?php 
echo $_SESSION['compra']['att_folio'];
?>
, con fecha del  <?php 
echo strftime('%d de %B del %Y', strtotime($_SESSION['compra']['att_fechafac']));
?>
 expedida por <?php 
echo $_SESSION['compra']['att_expedida'];
?>
Example #14
0
								<?php 
}
?>
					</table>

				</td>
			</tr>

			<tr>
				<td width="100%">
					<table width="100%">
						<tr>
							<td width="70%" style="border:1px #CCC solid; padding:20px;" valign="top">
								<b>TOTAL CON LETRA:</b><br/>
								<?php 
echo strtoupper(num2letras($encabezado->total, $ext));
?>
							</td>

							<td width="30%" valign="top" style="padding-top:0px;margin-top:0px;">
								<table class="pure-table pure-table-striped" width="100%">

									<tr>
										<td width="50%">
											SUBTOTAL
										</td>

										<td width="50%">
											<?php 
echo comoMoneda($encabezado->subTotal);
?>
Example #15
0
                        
                    </tr>
                    <?php 
        $SubTotal += $Precio;
    }
    ?>
                    <tr>
                        <td colspan="4" style="text-align:right;">Subtotal</td>
                        <td><center>$<?php 
    echo $SubTotal;
    ?>
</center></td>
                    </tr>
                    <tr>
                        <td colspan="3"><center><?php 
    echo num2letras($SubTotal * 1.16);
    ?>
</center></td>
                        <td style="text-align:right;">IVA (<?php 
    echo $IVA;
    ?>
%)</td>
                        <td><center>$<?php 
    echo $SubTotal * ($IVA / 100);
    ?>
</center></td>
                    </tr>
                    <tr>
                        <td colspan="3"><center>Pago mediante transferencia electrónica.</center></td>
                        <td style="text-align:right;"><strong>Total</strong></td>
                        <td><center>$<?php