Jump to content

Remove or replace invoice # on invoice bank info


MoonworksMedia

Recommended Posts

When I create an invoice and the user chooses to pay by bank transfer, it gives the invoice number in the system as the reference, for example:

 

Reference: 3

 

We are using a different way of numbering invoices, doing this in the options tab.

 

Is there a way to either remove the line that gives the system reference number or, better for us, replace it with the custom reference # we have given it?

 

Thanks.

Link to comment
Share on other sites

When I create an invoice and the user chooses to pay by bank transfer, it gives the invoice number in the system as the reference, for example:

Reference: 3

We are using a different way of numbering invoices, doing this in the options tab.

Is there a way to either remove the line that gives the system reference number or, better for us, replace it with the custom reference # we have given it?

one way, would be to modify the bank transfer gateway code (it's not encrypted) @ /modules/gateways/banktransfer.php and change...

 

    $code = '<p>'.nl2br($params['instructions']).'<br />'.$_LANG['invoicerefnum'].': '.$params['invoiceid'].'</p>';

to...

 

    $code = '<p>'.nl2br($params['instructions']).'<br />'.$_LANG['invoicerefnum'].': '.$params['invoicenum'].'</p>';

that will change the output to show the invoice number you've added in the options tab, rather than it's reference ID.

 

watch out when you upgrade WHMCS in the future, that this file doesn't get overwritten.

 

alternatively, you may want to look at Sequential Invoice Numbering (depending on your existing invoice number structure)...

 

http://docs.whmcs.com/Invoicing_Setup#Proforma_Invoicing.2FSequential_Invoice_Numbering

 

This feature is primarily aimed at EU based companies where for accounting reasons, it is sometimes necessary to ensure paid invoice numbers are sequential. This feature in WHMCS can of course be used by all though.

Enabling Sequential Invoice Numbering

 

 

  1. To enable this feature, begin by going to Setup > General Settings
  2. Then click on the Invoices tab
  3. Next, tick the box labelled "Sequential Paid Invoice Numbering"
  4. In the field below, you can then specify the format you want to use for the numbering - it doesn't just have to be a number - you could for example include your companies initials and the year to differentiate invoices for each year - eg. WHMCS2007-{NUMBER} - {NUMBER} placeholder gets replaced with that invoices number
  5. The final field allows you to set the next number to be assigned to an invoice. Each time an invoice is paid, the number increases by 1. You can alter the number here, such as when removing an invoice or at the beginning of a new year if you want to start at 1 again.

That's all there is to it! Sequential invoice numbering is now enabled and each time an invoice is paid, the next number in the sequence will be applied.

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
Reply to this topic...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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