Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic invoice number generation #8

Open
BeyerMart opened this issue Apr 7, 2020 · 3 comments
Open

Automatic invoice number generation #8

BeyerMart opened this issue Apr 7, 2020 · 3 comments
Labels
discussion Brainstorming some ideas

Comments

@BeyerMart
Copy link
Contributor

Currently, the invoices are numbered consecutively, but what happens when we have to add a digit?
Should all other invoice numbers then get leading zeros?
What if someone wants a suffix (or "midfix") instead of a prefix?
Should these cases be considered?

This issue is for general discussion about this feature, if and how we should implement it. @overheadhunter @tobihagemann What are your thoughts about this?

@overheadhunter
Copy link
Contributor

overheadhunter commented Apr 7, 2020

Can't we use

String.format("%s-%03d", invoiceNumberPrefix, sequenceNumber); // results in "example-003"

With the prefix being configurable via the UI?

@BeyerMart
Copy link
Contributor Author

After a call with @tobihagemann we agreed to drop this feature because every company will have a completely different setup of their invoices numbers. There isn't any kind of specification on how companies need to count them. It is basically a "random" String, which the users should input themself.

@infeo
Copy link
Contributor

infeo commented Apr 8, 2020

On the other hand, from the user view as a "simple developer", i would like to wish a feature to use a simple default invoice scheme which is more than just a single number. It does not have to be configurable, but some good default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Brainstorming some ideas
Projects
None yet
Development

No branches or pull requests

3 participants