Y+0.35+0.40+0.8); $pdf->Cell(1.7, 0.30, utf8_decode($moneda), 0, 1,'L', 0); $pdf->SetFont('arial','B',9); $pdf->SetXY($X+1,$Y+0.35+0.40+1.3); $pdf->Cell(1.7, 0.30, utf8_decode("Método de pago:"), 0, 1,'L', 0); $pdf->SetFont('arial','',9); $pdf->SetXY($X+3.76,$Y+0.35+0.40+1.3); $pdf->Cell(1.7, 0.30, utf8_decode($metodoDePago), 0, 1,'L', 0); $pdf->SetFont('arial','B',9); $pdf->SetXY($X+8,$Y+0.35+0.40+1.3); $pdf->Cell(1.7, 0.30, utf8_decode("Tipo de Cambio:"), 0, 1,'L', 0); $pdf->SetFont('arial','',9); $pdf->SetXY($X+10.7,$Y+0.35+0.40+1.3); $pdf->Cell(1.7, 0.30, number_format($tipoCambio,4), 0, 1,'L', 0); $pdf->SetDrawColor(128,0,0); $pdf->SetLineWidth(0.05); $pdf->RoundedRect($X+1, $Y+0.15, 19.4, 2.60, 0.2, ''); $pdf->SetDrawColor(0,0,0); $pdf->SetLineWidth(0.02); if (strlen($NumCtaPago)>0){ $pdf->SetFont('arial','B',9); $pdf->SetXY($X+1,$Y+0.35+0.40+1.8); $pdf->Cell(1.7, 0.30, utf8_decode("Número de cuenta:"), 0, 1,'L', 0); $pdf->SetFont('arial','',9); $pdf->SetXY($X+3.76+0.3,$Y+0.35+0.40+1.8); $pdf->Cell(1.7, 0.30, $NumCtaPago, 0, 1,'L', 0); } } function DatosInf($pdf, $filename, $Y, $selloCFD, $selloSAT, $CadOri, $PaginaWeb){ $pdf->SetFont('arial','B',9); $pdf->SetXY(1.2,22.9+$Y-0.2 -0.7); $pdf->Cell(1.7,0.30, "Sello digital del CFDI:", 0, 1,'L', 0); $pdf->SetFont('arial','',7); $pdf->SetXY(1.2,+22.9+0.35+$Y-0.2 -0.7); $pdf->MultiCell(19.4, 0.25, $selloCFD, 0, 'L', 0); $pdf->SetFont('arial','B',9); $pdf->SetXY(4.2,21.9+2+$Y -0.7); $pdf->Cell(1.7, 0.30, "Sello del SAT:", 0, 1,'L', 0); $pdf->SetFont('arial','',7); $pdf->SetXY(4.2,21.9+0.35+2+$Y -0.7); $pdf->MultiCell(16.1, 0.25, $selloSAT, 0, 'L', 0); $pdf->SetFont('arial','B',9); $pdf->SetXY(4.2,25+0.5+$Y -0.7); $pdf->Cell(1.7, 0.30, utf8_decode("Cadena original del complemento de certificación digital del SAT:"), 0, 1,'L', 0); $pdf->SetFont('arial','',7); $pdf->SetXY(4.2,25.1+0.5+0.25+$Y -0.7); $pdf->MultiCell(16.1, 0.25, $CadOri, 0, 'L', 0); if ($filename != "") { $pdf->Image($filename,1.2,23.8+$Y -0.7,3,3,'PNG'); } } function ProcesImpTot($ImpTot){ $ImpTot = number_format($ImpTot, 4); $ArrayImpTot = explode(".", $ImpTot); $NumEnt = $ArrayImpTot[0]; $NumDec = ProcesDecFac($ArrayImpTot[1]); return $NumEnt.".".$NumDec; } function ProcesDecFac($Num){ $FolDec = ""; if ($Num < 10){$FolDec = "00000".$Num;} if ($Num > 9 and $Num < 100){$FolDec = $Num."0000";} if ($Num > 99 and $Num < 1000){$FolDec = $Num."000";} if ($Num > 999 and $Num < 10000){$FolDec = $Num."00";} if ($Num > 9999 and $Num < 100000){$FolDec = $Num."0";} return $FolDec; } function VerifStatusCFDI($pdf, $StatusCFDI){ if ($StatusCFDI=="CANCELADO"){ $pdf->SetLineWidth(0.1); $pdf->SetDrawColor(200,0,0); $pdf->SetTextColor(200,0,0); $pdf->SetFont('verdana','',53); $pdf->RoundedRect(4.4, 7.4-2.5, 12.6, 2.05, 0.4, ''); $pdf->SetXY(1,8.4-2.5); $pdf->Cell(19.4, 0.30, "CANCELADO", 0, 1,'C', 0); $pdf->SetLineWidth(0.02); $pdf->SetDrawColor(0,0,0); $pdf->SetTextColor(0,0,0); } }