1b.app
Link copied -

End-to-end numbering of documents from the beginning of the year

What is needed:

1. A new year begins and for each template that is used, you need to start numbering with 1 (one)

2. According to each of the available templates, a separate number of documents can be created

That is, there can be invoices from 1 to 10067, invoices from 1 to 8790, contracts from 1 to 287, for example

3. Each template requires end-to-end numbering of the documents we are creating.

Please tell me what variable should be for this, which should be written in the number formula template settings field

Fuel is paid.

I will be grateful for your help.
Original question is available on version: ua Вячеслав Легеза

Answers:

[template.number] - document number according to the template starting from 1 for all time
[template.numberyear] - document number according to the template starting from 1 within the current year
[template.number:3] - document number according to the template starting from 1 for all time in the format 0001
[template.numberyear:3] - - document number according to the template starting from 1 within the current year in format 0001
[template.number:3:100] - document number according to the template starting from 100, when we specify [template.number:3:100] this means that the number will start from 100, but the maximum length of this number is 3 symbol
if we specify [template.number:6:100] , then the resulting number on the left will be padded with zeros so that there is a 6-digit number - 000100
11.04.2024, 19:51
Original comment available on version: ru

Легеза Вячеслав iCOLOR OneBox
ФОП Легеза В.В.
Personal license
Leave a message in this thread and the user's contacts will be shown to you

Mulach Maryna Anatolyevna
SheBo wrote:
[template.number] - number of the document according to the template, starting from 1 all the time
[template.numberyear] - document number according to the template, starting from 1 within the current year
[template.number:3] - document number according to the template, starting from 1 for all time in the format 0001
[template.numberyear:3] - - template document number starting from 1 within the current year in the format 0001
[template.number:3:100] - document number according to the template starting from 100, when we specify [template.number:3:100] , it means that the number will start from 100, but the maximum length of this number is 3 characters
if we specify [template.number:6:100] , then the resulting number will be supplemented with zeros on the left so that it is a 6-digit number - 000100

Thank you sincerely
12.04.2024, 09:44
Вячеслав Легеза Original comment available on version: ua

Легеза Вячеслав iCOLOR OneBox
ФОП Легеза В.В.
Personal license
Leave a message in this thread and the user's contacts will be shown to you
I made a video, maybe it will be useful to someone

Please comment with your own results

https://youtu.be/TIpwaqF3mkI
12.04.2024, 10:20
Вячеслав Легеза Original comment available on version: ua

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment