Different Invoice type / reference number

OK , as you said this is what I’ve done:
I’ve created 3 main types: A, B and C,
these are the main types we would use here.
so each time you create a customer you assign a type, and so the invoice type series and numbering format.
Is working very well… and is enough for aour regulations.
Many thanks Eldy again , and count on me for feedbacking! sure I’ll ask for help many times again.
I’m deploying Dolibarr for my Small Enterprise, and looks really very good.
I think Dolibarr is almost 100% argentina compliant! at least for general product and service companies. (and I’m advicing friends and collegues to give it a try)
Just very few details that I hope could be able to help and feedback on.
I could help to develop Dollibarr but my programming knowledge is very limited, just an advanced user(?)very little php and mysql.
But if necessary I could collaborate translating or checking translations.(mainly “neutral” Spanish and “Local” Spanish)
Regards
Alejandro

Thanks.
So i will include this change into official 2.8 version.

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