The State Field - departement

After going through a lot of the screens and source code i have noticed that the State Field (departement) has been ignored in a very large way, for example in the add new contact form the state field is missing.

I suggest that the state field, be included and given equal importance as the address and city field as in countries, there are many cities that people dont know, and identify them only because of the State it is in. It is an essential part of any correspondence including emails and is a must to be displayed even in the generated pdf documents.

You’re right.
I added the management of state in contacts in the CVS version.
However to show the state on address on pdf i need to know which country need the state (US for example) to add them in list of countries to show the state in address (some country need it, other not).
For the moment I only added “US” but if you know other country that need state in address, tell me…

Definitely India is one country where, its very important for companies specify the state in any address used anywhere especially legal documents.

We use US_EN version of dolibarr. I personally have no issues using UK English or US English as they still are English and comprehendible. Moreover I dont see any point in having a separate version of dolibarr with Indian English in it.

OK, so i added country code “IN” to be processed like “US”.
With CVS version, now if country of third party is “India”, then the state is added into address into PDF. I speak about “country” in company setup, not language file.
So you can setup your country with india and use en_US or en_UK (you choose).

PS: If you have list of states for india, i can add them in default install…

Thanks a million Edly !!! I am sure its going to benefit a lot of us.

At the rate at which developments and enhancements are taking place in the development of Dolibarr, I am sure one day Dolibarr is going to be as popular as other great 100% authentic open source software like Firefox, phpBB etc.

I have already started recommending everyone in my friends circle to use Dolibarr.

This is the lists of states that I am using along with the codes

AN Andaman & Nicobar AP Andhra Pradesh AR Arunachal Pradesh AS Assam BR Bihar CG Chattisgarh CH Chandigarh DD Daman & Diu DL Delhi DN Dadra and Nagar Haveli GA Goa GJ Gujarat HP Himachal Pradesh HR Haryana JH Jharkhand JK Jammu & Kashmir KA Karnataka KL Kerala LD Lakshadweep MH` Maharashtra ML Meghalaya MN Manipur MP Madhya Pradesh MZ Mizoram NL Nagaland OR Orissa PB Punjab PY Puducherry RJ Rajasthan SK Sikkim TN Tamil Nadu TR Tripura UL Uttarakhand UP Uttar Pradesh WB West Bengal

State field needed for
New Members:
http://demo.dolibarr.org/adherents/fiche.php?leftmenu=members&action=create

New Warehouse
http://demo.dolibarr.org/product/stock/fiche.php?action=create

In short it would be best if all the elements needed for an address are saved and displayed where ever there is an address.

Done for members in CVS.
Provinces added in CVS too.

WOW Thanks eldy!!

I just hope the state and all other address elements are saved and used where ever an address needs to be saved or displayed on screen on in the PDF

cant wait for the beta :happy:

Even the Company Setup is missing the State field. :unhappy:
http://localhost/dolibarr/htdocs/admin/company.php?action=edit

So there is no way the Company Address can have the State field in the PDFs generated unless its hard coded. which is very important for us.

Thanks

I added the state in setup in CVS.
I will add it for company info into pdf soon.

Great!! Thank you for the quick updates. I am sure many of us are going to benefit from these updates

And now in CVS, state shoul appears on PDF even for your company (if indian or us company).
It miss warehouse but i will see after 2.9.

COOL !!! it is a relief that so much has been done to improve dolibarr

http://localhost/dolibarr/htdocs/compta/bank/bankid_fr.php?action=edit&id=1

Even the Account owner address needs State and Country field as bank accounts can be opened in any state and country and since we are already having a need to document the address then as well take down the complete address

Done also in bank account

Thanks!!! but small problem

State and country field is not visible in the Bank Edit mode.

http://localhost/dolibarr/htdocs/compta/bank/bankid_fr.php?action=edit&id=1

Yes, country and state must be set on other tab “Account card”.

Hello, I’m using es_mx in Mexico. How we can show the state on the address when PDF is generate?
Regards

Hi,
Why you don’t make it standart that State Field and Regions are on for every country. It would be useful for every country, I believe. For example address format in Turkey, there are Central Cities like regions and some smaller cities like States which belong to those Central Cities. So it would be necessary both the State and Regions are ON for every country on PDF outputs.
Please make it standart for every country so that if somebody needs to display both the region and state he can use.

Turkey address system needs state to be indicated in the addres and third party address cards.