# Auto-numbering invoices algorithm

**URL:** <https://forum.manager.io/t/auto-numbering-invoices-algorithm/6468>\
**Category:** Uncategorized\
**Created:** [July 28, 2016, 7:02pm UTC](https://forum.manager.io/t/auto-numbering-invoices-algorithm/6468 "2016-07-28T19:02:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jon](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/jon/32/1915_2.png) [@Jon](https://forum.manager.io/u/Jon)\
**Post date:** [July 29, 2016, 8:00pm UTC](https://forum.manager.io/t/auto-numbering-invoices-algorithm/6468/3 "2016-07-29T20:00:44Z")

</div>

There have been at least a couple of conversations here about custom sequences for invoice numbering, either by prepending the date to the invoice number (e.g., 20160729001) or by prepending the customer code (e.g., ABC-00001). Neither of these suggestions made it to the Roadmap.

> [@\[16.3.73\] Reference number is now generated when document is saved](https://forum.manager.io/t/16-3-73-reference-number-is-now-generated-when-document-is-saved/5378/2):
>
> Now that this is done (and presumably has fixed any problems people have had with invoice numbering), would it be possible to implement an option for random increments on invoice etc. numbers? By this I mean that instead of numbering invoices etc. consecutively (e.g. #101-#102-#103-#104), have an option for numbers to increase each time by some random number on a specified range (e.g. #101-#107-#121-#129-#131-#150 or #1005-#1197-#1332-#1520-#1888). The reason for this is that consecutive i…

> [@Customer code on Invoice](https://forum.manager.io/t/customer-code-on-invoice/5731):
>
> How can I pick up CustomerCode and display it on a customer invoice when creating new Sales Invoices.

---

_[View the full topic](https://forum.manager.io/t/auto-numbering-invoices-algorithm/6468)._
