Hello to everyone,
There are different types of invoices in our country, the numbering for these invoice types is different. however, only one model can be applied to sales and purchase invoices in Dolibarr.
The above grouping only needs different numbering for sales invoices. How can there be a solution to this issue, what is your suggestion, thanks in advance for your help.
thanks for your answer…
but this module is the combination of the generated invoice as far as I can see.
In the expected invoice type, each combination must continue with the same numeric. In short, it doesn’t exactly do our job.
the differentiation of species according to the billing feature we are looking for.
I’m the developer of the module, it does exactly that
e.g for domestic e-invoice you will get consecutive numbering each time
COM20230001
COM20230002
COM20230003
…
COM20231001
COM20231002
respectively for domestic e-archive
COA20230001
COA20230002
COA20230003
…
COA20231001
COA20231002 and so on
This is what you want right?
The way to do it is by creating 4 entries in the Third Party Types dictionary
code
label
TE_COM
domestic e-invoice
TE_COA
domestic e-archive
TE_COE
overseas e-invoice
TE_COR
overseas e-archive
and in the mercure model in standard invoice {ttt}{yyyy}{000000000} assuming 2023 is the current year and 9 digits same as number of x in your example.
please excuse the delay! independent double numbering does not work.
the problem could be because I need the numbers to start from different numbers?: example
{00000+0013@1}
{00000+0002@1}
Hi @serioga9964 ,
Your mask example is wrong it gives Error, can’t use option @ to reset counter each year if sequence {yy} or {yyyy} is not in mask.
Please provide your Third Party Types dictionary setup and your desired mercure mask setup.
You should change your masks to
{t}{yyyy}-{S}-{00000+0013@1}
{t}{yyyy}-{S}-{00000+002@1}
{t}{yyyy}-{S}-{00000+0013@1}
{t}{yyyy}-{S}-{00000+0013@1}
So for example in standard invoice when you choose “Mask A” you will get T2023-{S}-00014 and when you choose “Mask I” you will get I2023-{S}-00014
Done, but the problem remain!
i change the mask (see file prova3) but the number remain for both the 14.
i fill an invoice first with the mask I and the software give me the number 14 (it correct). (see file prova1)
Theu i fill an invoice and choose the mask A but the number remain the 14 (see the file prova2)
It is the same number because you chose for them to start from 14. So if you make another 3 invoices with mask I it will go to number 15 then 16 then17, then after that if you make 1 invoice with mask A it will go to number 15
Hi @michalhana99,
Everything seems ok from your screenshots!
Did you choose A or B from the series combo box in the invoice creation card?
If yes check also the wiki Support · sonikf/ctpt Wiki · GitHub
Hi @sonikf
It is set according to the instructions posted above. When I set the group for the subject, the invoice number is generated correctly.
I’m trying it on version 18.0.3