Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 2.1
-
Fix Version/s: 4.3.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
Basic process:
Each country can have its own format address, that should be used for formatting addresses coming from that country.
== Schema
New table, civicrm_address_format and foreign key pointing from civicrm_country to this table. DONE on i18n branch.
== User interface for managing list of addresses
Config screen for managing list of addresses should be separate from currently existing screens. It should be linked from Localisation and Address settings screens (Administer -> Configure -> Global Settings), with appropriate text explaining the purpose of this screen.
The screen itself should offer the list of available formats (just two fields: country and address format textarea) and a simple form allowing to add new items to the list.
== Places where and a way in which new address format should be applied
Currently defined system wide address settings (Administer -> Configure -> Global Settings -> Address Settings) should be used by default. If given contact has country defined, and there is a country-specific address format defined for this country, when exposing the address in one of the places listed below, the country specfic format should be used.
- PDF labels creation
- tokens (mailing, send email to contact, etc) - new token might need to be added: {contact.full_address}
- display in contact record
== As a part of work on this issue, new mailing/send mail token needs to be added, allowing people to display whole address according to the rules mentioned above.
== Potential future improvements:
- support for domestic and international address format (in some cases, people want to use different format when sending letters to domestic addresses and different one when sending internationally)
- applying the format to address editing fields in contact record