Different Invoice type / reference number

Eldy:
Just one more question on this…
Ho do I change the counter to start at a certain invoice number.
this is because we have mass imported invoices up to now, and when I changed the mask type I have first invoice number 00001
I whould like to change the counter just one time to start from invoice
F{t}002621 for example or another number for the other type.
can I change a table value in database?
never mind if past invoices are with obsolete mask, We will start now with the right number and type.
Thanks a lot in advance.
Alejandro

When you define the new mask, try to use
{0000+123}
instead of
{0000}
This will start counter to 123

Many thanks again Eldy

Hi Eldy, It’s me again on this subject:
Something isn’t working ok now
my mask is: F{t}-{00000+269}
and my facture number result is: FA1001-0070…
And even when customer type is defined as C or B invoice keeps as FADDMM-0071 same type and next serial # (not different type and numbering as expected)
Maybe I do not fully tested it as it seemed to me to be working at first glance…
I’m not sure if the test where made on 2.6 and now when using 2.7… things doesn’t work.
or maybe I changed something with 2.7 installation, but I have checked it and do not find any wrong file version.
I will try to reinstall from the very beggining but it could be very helpful if anyone could reproduce the error or not.
I’ll keep trying changin masks to see what happens and i’ll check mercure 2 module to see if I could understand where is the fault. but as always any help could save me a lot of time.
Regards
Alejandro

Check in your invoice module setup that the “default” module (with green tick) is mercure and not terre.

Ok i’ll do it and report back here

It’s ok
the module is configured as mercure2
should I replace mercure files by mercure2 ones?
it is not working here
i’ll upgrade my test installation to 2.8 and chek it again
meanwhile the production installation gives me wrong invoice number
(editable by phpmyadmin)

mercure2 was a test i think. You should be able to do what you want with “mercure” in 2.8

Alejandro,
remember that the letter (A/B/C) is taken from the Type Code. Try with {tttt} and you will see the effect. The same happens to my at the beginning. I created 3 codes: TE_A, TE_B, and TE_C, and works PERFECT.

Regards
Victor
Buenos Aires
Argentina

Alejandro pudiste solucionar el tema de la discriminacion entre factuas A y B?

Saludos
Catriel

Ya solucione el problema de la facturación A y B, cualquier consulta sera bienvenida.

The numbering of invoices every month beginning from 1
eg.
INV 001/02/2016
INV 002/02/2016
INV 001/03/2016

What is the “mask” you used for your invoice numbering ?

Is possible to have this solution on Dolibarr 4.0.4?
I tryed but not works!

Hi a newbie to dolibarr here

It is possible sir to make different sequence of number in different customer like cus1 should be start in 1 and cus 2 also should start in 1?

Thanks and best regard

You can use the numbering rule “mercure” so you can include the tag {t] to have the type of customer inside the number.
If you really need also a number specifi to each cutomer, you can also include the tag {ccc0000} to include also a counter dedicated to customer code

hello,

This is very nice software(Dolibarr5.2). i But i need to chenge something and i’m stuck for few hours.
I want to change invoice name/namber from FA1705-0001 to 3DPM0050.

I’m very new, maybe it is very simple, and it is a stupid question.

Pease can you help me… with some steps to make the modification. Wich is the file or line where should i make the modification?

Thank you

multiple invoice type…not on customer basis it will factory location specific…is it feasible?

for example:
Factory A having invoice no. as A-0001
Factory B having invoice no. as B-0001

or department wise numbering i.e.if having 2 departments X & Y…

this invoice number should be X-0001 for department X
and Y-0001 for department Y

Hello.

Is it possible to translate {ttt} because in Greece we need Greek characters on invoice.

I need to make {ttt}-{0000}

TE_APY to export on invoice ΑΠΥ-0001
TE_TPY to export on invoice TΠΥ-0001
TE_DA to export on invoice ΔΑ-0001
.
.

etc

Thanks in advance.

George

hi! do you have resolve= i need also for me this solution please