It wil be the first time ever I use the groovy.
But I'll follow your advice and try this but meanwhile I'll try also to do
it using the ftl

That's what I've done till now:
<#assign orh =
Static["org.ofbiz.order.order.OrderReadHelper"].getHelper(orderHeader)>
            <#assign billToParty = orh.getBillToParty()?if_exists>
            <#assign billToPartyNameResult =
dispatcher.runSync("getPartyNameForDate",
Static["org.ofbiz.base.util.UtilMisc"].toMap("partyId", billToParty.partyId,
"compareDate", orderHeader.orderDate, "userLogin", userLogin))/>

I think that way I'm getting the customer now I want to check on certain
field that's how I tried to check it and it gave me exception:

            <#assign reqPrepayment = billToParty.requirePrepayment/>
 the exception is
Error on line 33, column 13 in
component://order/webapp/ordermgr/order/orderinfo.ftl
billToParty.requirePrepayment is undefined. It cannot be assigned to
reqPrepayment at freemarker.core.Assignment.accept(Assignment.java:111) 

where else should that field be declared and I'm really so thankful for your
help
-- 
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Check-on-party-fields-from-ftl-files-tp3015477p3015542.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to