Jump to content

comprido

Member
  • Posts

    1
  • Joined

  • Last visited

About comprido

comprido's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hola chic@s, soy Pedro de fcsites.com y una de las incidencias que como autónomo (marca comercial registrada) he de suplir para que WHMCS se adapte a la Ley en España respecto a la información que muestran los pdfs de presupuestos y facturas me han llevado a aplicar una serie de cambios en esta fantástica aplicación con la que trabajo hace años. Os pongo lo que hago y una captura. ----------------------------------------------------------------------- ----------------------------------------------------------------------- ----------------------------------------------------------------------- ABRIR lang/spanish.php. ----------------------------------------------------------------------- REEMPLAZAR palabra "Cotización" por "Presupuesto". ----------------------------------------------------------------------- ----------------------------------------------------------------------- INCLUIR NOTA LEGAL ----------------------------------------------------------------------- BUSCAR $_LANG['invoicesnotes'] = "Notas"; DESPUES PEGAR: $_LANG["invoicesmessage"] = "RECUERDE: Algunos medios de comunicación a través de Internet no garantizan el cumplimiento de todos los requisitos exigidos en el régimen de facturación telemática (autenticidad e integridad) según la legislación española por lo que esta factura no será válida a efectos fiscales si carece de sello y firma. Le enviaremos la factura original a la dirección postal asociada a su cuenta de cliente."; $_LANG["quotemessage"] = "Esperamos que el presupuesto sea de su agrado. Para proceder con la realización del trabajo ingrese la cantidad mencionada en el número de cuenta de ING DIRECT - IBAN ES22 1465 *********** facilitando: nombre completo, DNI/CIF y la referencia indicada en la parte superior del presente."; HACER LO MISMO EN english.php $_LANG["invoicesmessage"] = "NOTE: Some media over the Internet do not guarantee compliance with all requirements of the electronic invoicing system (authenticity and integrity) under Spanish law so this bill will not be valid for tax purposes if no seal and signature. We will send the original invoice to the address associated with your account."; $_LANG["quotemessage"] = "We hope you enjoy this quote. To proceed with the job we need you to transfer the amount mentioned in the account number ING DIRECT - IBAN ES22 1465 *********** providing: full name, ID / CIF and quote reference.."; GUARDAR Y SUBIR VIA FTP lang/spanish.php. ----------------------------------------------------------------------- Dar anchura a columna en quotepdf.tpl para que aparezca bien "Presupuesto #" ----------------------------------------------------------------------- BUSCAR $pdf->Cell(20,6,$_LANG['quotenumber'],1,0,'C'); REEMPLAZAR POR $pdf->Cell(30,6,$_LANG['quotenumber'],1,0,'C'); BUSCAR $pdf->MultiCell(30,$height,$quotenumber,1,'C',0,0); REEMPLAZAR POR $pdf->MultiCell(30,$height,$quotenumber,1,'C',0,0); ----------------------------------------------------------------------- INCLUIR EL CIF EN PRESUPUESTOS Y FACTURAS ----------------------------------------------------------------------- ABRIR templates/portal/quotepdf.tpl: ABRIR templates/portal/invoicepdf.tpl: BUSCAR $pdf->Cell(0,4,$clientsdetails["address1"],0,1,'L'); JUSTO ANTES PEGAR: $pdf->Cell(0,4,$clientsdetails["customfields2"],0,1,'L'); ----------------------------------------------------------------------- PONER MENSAJE BAJO LOS PRESUPUESTOS ----------------------------------------------------------------------- ABRIR templates/portal/quotepdf.tpl: BUSCAR ?> JUSTO ANTES PEGAR: # CONDICIONES ! $pdf->Ln(); $pdf->MultiCell(180,5,$_LANG["quotemessage"],1,'L',1); ----------------------------------------------------------------------- INCLUIR EL IRPF EN FACTURA ----------------------------------------------------------------------- ABRIR templates/portal/invoicepdf.tpl: buscar: if ($taxname) $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">'.$taxrate.'% '.$taxname.'</td> <td align="center">'.$tax.'</td> </tr>'; REEMPLAZAR POR: if ($taxname) $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">'.$taxrate.'% '.$taxname.'</td> <td align="center">'.$tax.'</td> </tr> <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">-21% I.R.P.F</td> <td align="center">'.$tax2.'</td> </tr>'; BUSCAR # Generation Date JUSTO ENCIMA PEGAR: # NO ES FACTURA! $pdf->Ln(); $pdf->MultiCell(180,5,$_LANG["invoicesmessage"],1,'L',1); ----------------------------------------------------------------------- TRUCO PARA INCLUIR EL IRPF EN PRESUPUESTOS ----------------------------------------------------------------------- ABRIR templates/portal/quotepdf.tpl: BUSCAR: $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right" colspan="4">'.$_LANG['invoicessubtotal'].'</td> <td align="center">'.$subtotal.'</td> </tr>'; if ($taxlevel1['rate']>0) $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right" colspan="4">'.$taxlevel1['name'].' @ '.$taxlevel1['rate'].'%</td> <td align="center">'.$tax1.'</td> </tr>'; if ($taxlevel2['rate']>0) $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right" colspan="4">'.$taxlevel2['name'].' @ '.$taxlevel2['rate'].'%</td> <td align="center">'.$tax2.'</td> </tr>'; $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right" colspan="4">'.$_LANG['invoicestotal'].'</td> <td align="center">'.$total.'</td> </tr> </table>'; Y REEMPLAZAR POR: $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right" colspan="4">'.$_LANG['invoicessubtotal'].'</td> <td align="center">'.$subtotal.'</td> </tr>'; if ($taxlevel1['rate']>0) $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right" colspan="4">'.$taxlevel1['name'].' @ '.$taxlevel1['rate'].'%</td> <td align="center">'.$tax1.'</td> </tr> <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right" colspan="4">'.$taxlevel2['name'].' @ '.$taxlevel2['rate'].'%</td> <td align="center">-'.$tax1.'</td> </tr>'; $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right" colspan="4">'.$_LANG['invoicestotal'].'</td> <td align="center">'.$subtotal.'</td> </tr> </table>'; GUARDAR AMBOS ARCHIVOS templates/portal/quotepdf.tpl Y templates/portal/invoicepdf.tpl Y SUBIR VIA FTP ----------------------------------------------------------------------- ----------------------------------------------------------------------- ----------------------------------------------------------------------- Espero que os sea de ayuda. Saludos.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated