MoonworksMedia Posted July 15, 2016 Share Posted July 15, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 15, 2016 Share Posted July 15, 2016 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 To enable this feature, begin by going to Setup > General Settings Then click on the Invoices tab Next, tick the box labelled "Sequential Paid Invoice Numbering" 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 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. 0 Quote Link to comment Share on other sites More sharing options...
MoonworksMedia Posted July 15, 2016 Author Share Posted July 15, 2016 Thank you once again I went for the first option, as we do them in a specific style for each client, such as MW-HT-01 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.