Jump to content
  • 0

Text Replacement In Pdf Footer


PhatPixel

Question

In Blesta v2.5, I modified ~/inc/invoice-tcpdf.class.php to replace the text "[crn]" in the invoice footer with a client-specific code for the BPAY payment system used in Australia.  In my instance, the CRN (or Customer Reference Number) is a zero-padded five-digit Client ID plus a MOD 10 check digit.  Which file would I need to edit in v3 to allow me to achieve the same result?

 

It would be great if there could be a new Type of Client Custom Field such as "Formula" which allowed the automatic calculation of this, but this field would also need to be accessible as a variable in the invoice.

 

Any suggestions?

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

I can't find it, however I believe you will probably end up editing: /components/invoice_templates/default_invoice/default_invoice_pdf.php or the language file in /components/invoice_templates/default_invoice/language/en_us/default_invoice.php

 

Paul, Cody and Tyson can help you though :).

Link to comment
Share on other sites

  • 0

Any changes to the invoice template should be requested as a feature request.

 

Editing the invoice template as suggested would be the way to go. You could also create your own invoice template, since v3 supports additional templates.. and make the changes to your new template. This would prevent it from being overwritten in any upgrades.

Link to comment
Share on other sites

  • 0

I'm not quite sure if any changes to the invoice templte are possible. But maybe there are some ways how  it can be manifested. Usually I use Adobe Acrobat, because it's easy to figure out how to use it ( at least for me). I've also ran into this site  https://pdfliner.com/ds_11_form but I still prefer to use adobe rather then this one. But you could try both. Maybe it will help you and something'll be more convenient.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...