Jump to content

Question about custom proforma number


Recommended Posts

Hi. I have detected (although I believe that in the previous version it was already happening), that when using a custom proforma number in WHMCS, when viewing the proforma invoice by the customer, the custom proforma number appears correctly, but when choosing the transfer payment bank, it is indicated that when making the payment you must indicate the proforma number, but here the personalized one does not appear, but the original one. I think I remember that in previous versions the custom proforma number also appeared here. Somebody could help me? Thank you.

Link to comment
Share on other sites

possibly still solvable by editing the banktransfer.php file...

Quote

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 custom invoice numbe, rather than it's reference ID.

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

ideally, you should probably duplicate banktransfer.php and use the duplicate, but that may be a lot of messing around - so just remember to keep a copy of the change and update it after each WHMCS upgrade... I doubt the incremental updates using FTP would touch this file, but the automatic updater might try to replace it with the original.

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.

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