[ https://issues.apache.org/jira/browse/OFBIZ-4715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13214884#comment-13214884 ]
Markus M. May edited comment on OFBIZ-4715 at 2/23/12 5:55 PM: --------------------------------------------------------------- I am currently a little lost in this task. My current setup is as follows: 1) A groovy component to determine the countryCode and with this determines the ftl-name and if it is available, if not, it will return the usual PostalAddress.ftl 2) new PostalAddressScreen, which calls the above mentioned groovy component and calls the html-template PostalAddress* from the groovy script from the context 3) Adopt the Contact.ftl to call the new screen with the postalAddress in the context, so that I do have access to this in the screen <#assign postalAddress = contactMechMap.postalAddress> ${setRequestAttribute("postalAddress", postalAddress)} ${screens.render("component://party/widget/partymgr/PostalAddressScreens.xml#postalAddress")} 4) new PostalAddress.ftl, which can have several instances (PostalAddress_DE.ftl, PostalAddress_USA.ftl, ...) Am I walking in the right direction? was (Author: m...@apache.org): I am currently a little lost in this task. Guess I will push it back a little ;-( > Invoice PDF and Contact Information show Region Code instead of Country Code > before the Zip Code > ------------------------------------------------------------------------------------------------ > > Key: OFBIZ-4715 > URL: https://issues.apache.org/jira/browse/OFBIZ-4715 > Project: OFBiz > Issue Type: Bug > Components: party, specialpurpose/ecommerce > Affects Versions: SVN trunk > Reporter: Markus M. May > Priority: Minor > Fix For: SVN trunk > > Attachments: > OFBIZ-4715-add-locale-for-country-and-remove-countryGeo-if-not-us.patch > > > The Invoice PDF and the Contact Information in the Party application show the > Region Code instead of the Country Code before the Zip Code. This will be > fine for the US, here in Germany it is rather unusual. > I propose to avoid this by removing the Region Code if the country is > different then US. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira