svn commit: r547287 - in /ofbiz/trunk/applications/party: config/PartyUiLabels.properties webapp/partymgr/party/editcontactmech.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r547287 - in /ofbiz/trunk/applications/party: config/PartyUiLabels.properties webapp/partymgr/party/editcontactmech.ftl

jacopoc
Author: jacopoc
Date: Thu Jun 14 08:51:14 2007
New Revision: 547287

URL: http://svn.apache.org/viewvc?view=rev&rev=547287
Log:
Added small message to inform the user if the postal address being edited is a USPS address or not.

Modified:
    ofbiz/trunk/applications/party/config/PartyUiLabels.properties
    ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl

Modified: ofbiz/trunk/applications/party/config/PartyUiLabels.properties
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/config/PartyUiLabels.properties?view=diff&rev=547287&r1=547286&r2=547287
==============================================================================
--- ofbiz/trunk/applications/party/config/PartyUiLabels.properties (original)
+++ ofbiz/trunk/applications/party/config/PartyUiLabels.properties Thu Jun 14 08:51:14 2007
@@ -298,6 +298,7 @@
 PartyInitialUserAgent=Initial User Agent
 PartyIpAddressSuccessfullyCreated=Web IP Address successfully created.
 PartyIpAddressSuccessfullyUpdated=Web IP Address successfully updated.
+PartyIsUsps=Is USPS
 PartyLastName=Last Name
 PartyLastNameMissingError=Lastname is Missing
 PartyLastVisit=Last Visit(s)

Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl?view=diff&rev=547287&r1=547286&r2=547287
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl Thu Jun 14 08:51:14 2007
@@ -182,6 +182,13 @@
         </select>
       </td>
     </tr>
+    <#assign isUsps = Static["org.ofbiz.party.contact.ContactMechWorker"].isUspsAddress(mechMap.postalAddress)>
+    <tr>
+      <td class="label">${uiLabelMap.PartyIsUsps}</td>
+      <td><#if isUsps>${uiLabelMap.CommonY}<#else>${uiLabelMap.CommonN}</#if>
+      </td>
+    </tr>
+    
   <#elseif "TELECOM_NUMBER" = mechMap.contactMechTypeId?if_exists>
     <tr>
       <td class="label">${uiLabelMap.PartyPhoneNumber}</td>