Skip to content
Snippets Groups Projects
Commit dd439656 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

added comments for fullAddress placeholder

parent afad3e5a
No related branches found
No related tags found
No related merge requests found
......@@ -434,7 +434,7 @@ function _formatAddrData( pAddrData, pFormat, pCountry )
"salutation_name": {dataPosition: 23},
"letter_salutation": {dataPosition: 24}
};
var format = pFormat || pAddrData[26];
var format = pFormat || pAddrData[26];//when no format is given, the default addressformat of the country is used
format = _mapFormatPlaceholderTitles(format, pAddrData, pCountry);
var res = format;
......
......@@ -39,7 +39,7 @@ PlaceholderUtils.getPlaceholders = function (pLocale, pIsExportTemplateField)
_addAddressFormat("region", "{region}", null , translate.text("Region", locale));
_addAddressFormat("country", "{country}", null , translate.text("Country", locale));
_addAddressFormat("letterSalutation", "{letter_salutation}", null);
_addAddressFormat("fullAddress", "", null, translate.text("FullAddress", locale));
_addAddressFormat("fullAddress", "", null, translate.text("FullAddress", locale));//empty string is automatically transformed into the address format of the recrods country (the format is stored in the the db table AB_COUNTRYINFO)
_addAddressFormat("senderOrgname", "{organisation_name}", Placeholder.targets.SENDER);
_addAddressFormat("senderAddress", "{street} {buildingno}", Placeholder.targets.SENDER);
_addAddressFormat("senderZipCity", "{country} - {zip} {city}", Placeholder.targets.SENDER);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment