Jump to content

Inversed98

New Member
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Inversed98

  1. I understand, it looks like I won't be able to achieve this easily.
  2. Hello, thanks for taking your type to post here. Well the issue is this won't work due to the strict local laws. The invoices have to be numbered exactly as I explained otherwise they will not be valid. I was thinking about something else, can a hook be made to change the invoice number after every order ? It would work like this in my head: 1. Order 1 comes in with invoice number 1 2. Hook detects the order and changes the invoice number to 0000000001 in the database and then it increases for every following one.
  3. Hey guys, due to recent changes in laws in my country now we are obligated to use 10 digits as invoice numbering for example first invoice starts with 0000000001 and I have no idea how to go about this. Also I need to delete all invoices and transactions and each new invoice should use the numbering system. Has anybody done this before ? I'm not a programmer so I have no idea how to go about this. I've contacted WHMCS and they suggested using InvoiceCreation hook point to execute custom code to add a new custom invoice number (with leading zeros) via the UpdateInvoice API command here: https://developers.whmcs.com/hooks-reference/invoices-and-quotes/#invoicecreation https://developers.whmcs.com/api-reference/updateinvoice/ However I can't do this by myself, is anybody able to help ?
×
×
  • 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