Jump to content

Concept invoice - continues numbering after deletation?!


JohnnyL

Recommended Posts

Guys,

Another weird behavior i've noticed, or just not noticed before all the time..

Lets say the current invoice is '50'  .. When i create an concept  > it makes '51'  .. thats correct. BUT if i delete that concept invoice (unpublished).. it still keeps the number '51' .. So when i generate another one or when a real invoice is generated, it generates '52' .. thats annoying, because '51' was deleted.. and not used..

Is this normal behavior? To continue numbering the invoices, even if the invoice was a concept and not published?

please clarify, how to handle this correctly, because sometimes i like to make up concept invoices to see how it going to look like, or to use it later on.

 

Thanks guys!!

 

Link to comment
Share on other sites

1 hour ago, JohnnyL said:

Is this normal behavior? To continue numbering the invoices, even if the invoice was a concept and not published?

yes.

1 hour ago, JohnnyL said:

please clarify, how to handle this correctly, because sometimes i like to make up concept invoices to see how it going to look like, or to use it later on.

one option would be not to delete but keep them as drafts - that way, you'll have a record of the invoice for your booky, and the client will never see them.

deleting an invoice (which I think is disabled in admin roles by default ... and also illegal in some jurisdictions - though not yours obviously!) only deletes the entry from the tblinvoices database table - it doesn't delete the detailed entries from the tblinvoiceitems table... so even if you reset the next invoice number in WHMCS (assuming you haven't created any invoices since), it could cause errors and corruption in the database, so best avoided - unless you know exactly what you're doing.

Link to comment
Share on other sites

38 minutes ago, JohnnyL said:

i see.. well weird..  i think the correct way would be,  if you delete the concept (unpublished) it should delete the number with it aswell.. makes sense

if you haven't already, you'll have to get used to WHMCS doing some weird things and considering them to be "normal" practice... besides, they brought in Draft Invoicing over 3 years ago, and if they haven't introduced a foolproof way for the user to fully delete an invoice, I wouldn't hold your breath.

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