t_url); // // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // curl_setopt($ch, CURLOPT_POST, true); // curl_setopt($ch, CURLOPT_POSTFIELDS, $post); // curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Zoho-oauthtoken ' . $boa_access_token)); // $r = curl_exec($ch); // # Usamos la funcion curl_errno() para atrapar cualquier error relacionado con la llamada. // if (curl_errno($ch)) // { // $error_msg = curl_error($ch); // } // curl_close ($ch); // if (isset($error_msg)) // { // $j_array = array('code' => '666', 'message' => "Error en la llamada curl " . $error_msg); // $Resultado = json_encode($j_array); // echo $Resultado; // return; // } // else // { // $ra = json_decode($r); // $resultPDF = $ra->code.' - '.$ra->message; // $code = (int)$ra->code; // if ($code != 0) // { // $j_array = array('code' => $ra->code, 'message' => "No se pudo adjuntar el archivo a Books, contacte al administrador " . $ra->message); // $Resultado = json_encode($j_array); // echo $Resultado; // return; // } // } // } // $j_array = array('code' => "200", 'message' => "Proceso de creacion de Orden de Cobro fue exitoso. OCob No. ".$prebill_InvoNumb); // $Resultado = json_encode($j_array); // echo $Resultado; // return; // #============================================================================================================ // #== FUNCIONES GENERALES // #============================================================================================================ // function TitulosTie($pdf, $Y, $lblAboFec, $lblHoras, $lblTarifa, $lblImport){ // $Y = $Y + 0.24; // $pdf->SetFont('arial','',10); // $pdf->SetXY(1.0,$Y); // $pdf->SetFillColor(60,61,58); // $pdf->Cell(19.0, 0.60, "", 0, 1,'L', 1); // $pdf->SetTextColor(255,255,255); // $pdf->SetXY(1.25,$Y); // $pdf->Cell(19.0, 0.60, utf8_decode($lblAboFec), 0, 1,'L', 1); // $pdf->SetFont('arial','',10); // $pdf->SetXY(20.0,$Y); // $pdf->SetFillColor(60,61,58); // $pdf->SetTextColor(255,255,255); // $pdf->Cell(2.00, 0.60, $lblHoras, 0, 1,'R', 1); // $pdf->SetFont('arial','',10); // $pdf->SetXY(22.0,$Y); // $pdf->SetFillColor(60,61,58); // $pdf->SetTextColor(255,255,255); // $pdf->Cell(2.50, 0.60, $lblTarifa, 0, 1,'R', 1); // $pdf->SetFont('arial','',10); // $pdf->SetXY(24.5,$Y); // $pdf->SetFillColor(60,61,58); // $pdf->SetTextColor(255,255,255); // $pdf->Cell(2.45, 0.60, $lblImport, 0, 1,'R', 1); // } // function TitulosGas($pdf, $Y, $lblAboFec, $lblCantid, $lblTarifa, $lblImport){ // $Y = $Y + 0.24; // $pdf->SetFont('arial','',10); // $pdf->SetXY(1.0,$Y); // $pdf->SetFillColor(60,61,58); // $pdf->Cell(19.0, 0.60, "", 0, 1,'L', 1); // $pdf->SetTextColor(255,255,255); // $pdf->SetXY(1.25,$Y); // $pdf->Cell(19.0, 0.60, utf8_decode($lblAboFec), 0, 1,'L', 1); // $pdf->SetFont('arial','',10); // $pdf->SetXY(20.0,$Y); // $pdf->SetFillColor(60,61,58); // $pdf->SetTextColor(255,255,255); // $pdf->Cell(2.00, 0.60, $lblCantid, 0, 1,'R', 1); // $pdf->SetFont('arial','',10); // $pdf->SetXY(22.0,$Y); // $pdf->SetFillColor(60,61,58); // $pdf->SetTextColor(255,255,255); // $pdf->Cell(2.50, 0.60, $lblTarifa, 0, 1,'R', 1); // $pdf->SetFont('arial','',10); // $pdf->SetXY(24.5,$Y); // $pdf->SetFillColor(60,61,58); // $pdf->SetTextColor(255,255,255); // $pdf->Cell(2.45, 0.60, $lblImport, 0, 1,'R', 1); // }