Author: ashish
Date: Wed Nov 3 10:14:25 2010
New Revision: 1030385
URL: http://svn.apache.org/viewvc?rev=1030385&view=rev
Log:
Bug fix - Thanks Akash.
Code for shipping address related info exists in FTL & PDF file but the
fetching logic doesn't exists in groovy. So added the same.
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/ReturnHeader.groovy
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/ReturnHeader.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/ReturnHeader.groovy?rev=1030385&r1=1030384&r2=1030385&view=diff
==============================================================================
---
ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/ReturnHeader.groovy
(original)
+++
ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/ReturnHeader.groovy
Wed Nov 3 10:14:25 2010
@@ -116,4 +116,12 @@ if (returnHeader) {
postalAddressTo = delegator.findOne("PostalAddress", [contactMechId :
contactMechTo.contactMechId], true);
context.postalAddressTo = postalAddressTo;
}
+
+ party = delegator.findOne("Party", [partyId : partyId], true);
+ if (party) {
+ shippingContactMechList = ContactHelper.getContactMech(party,
"SHIPPING_LOCATION", "POSTAL_ADDRESS", false);
+ if (shippingContactMechList) {
+ context.postalAddressFrom = delegator.findOne("PostalAddress",
[contactMechId : EntityUtil.getFirst(shippingContactMechList).contactMechId],
true);
+ }
+ }
}