Created
September 1, 2021 21:47
-
-
Save cesar4rroyo/84d7057638ae08f6a1128ffa1ad29fd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//PARA CONTCOMPROBANTE.PHP | |
$factura = array( | |
"numerofactura"=>$numerofactura, | |
"fechaemision"=>$fechaemision, | |
"horaemision"=>$horaemision, | |
"usuario"=>$nombre, | |
"codubigeo"=>$codUbigeo, | |
"tipodoc"=>$tipodoc, | |
"ruc"=>$ruc, | |
"moneda"=>$moneda, | |
"descuentototal"=>$descuentototal, | |
"percepcion"=>$percepcion, | |
"aplicacionpercepcion"=>$aplicacionpercepcion, | |
"documentosanexos"=>$documentosanexos, | |
"detalles"=>$detalles, | |
"formapago"=>"C" | |
); | |
//ALGORITMOS GENERAPDF Y GENERAPDF5 | |
if ($tipo_documento=="F") { | |
$pdf->SetXY(15, $pdf->GetY()+$alto); | |
$pdf->SetFont('Arial','B',10); | |
$pdf->Cell(40, $alto, utf8_decode("Forma Pago"), $borde, 0, "L"); | |
$pdf->SetFont('Arial','',10); | |
$pdf->Cell(140, $alto, utf8_decode('CONTADO'), $borde, 0, "L"); | |
} | |
$alto2 = $pdf->GetMultiCellHeight(140, $alto, utf8_decode($NombreCliente), $borde, "L"); | |
if ($tipo_documento=="F") { | |
$pdf->Rect(12, $pdf->GetY()-(4*$alto+$alto2)+3, 186, 5*$alto+$alto2-1); | |
}else{ | |
$pdf->Rect(12, $pdf->GetY()-(3*$alto+$alto2)+3, 186, 4*$alto+$alto2-1); | |
} | |
// PARA CONTIMPRIMIR | |
if($tipo_documento=="F"){ | |
$printer->text("F. Pago: Contado"); | |
$printer -> feed(); | |
} | |
//PARA AJAX PEDIDO | |
if($detalle->idtipodocumento=="5"){ | |
$printer -> text("F. Pago: Contado"); | |
$printer -> feed(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment