Fixed: Purchase by Organization report was broken, added check to avoid stack trace on fop.
@@ -20,10 +20,6 @@ under the License.
<#escape x as x?xml>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
-<#-- do not display columns associated with values specified in the request, ie constraint values -->
-<#assign showToParty = !parameters.toPartyId?has_content>
-<#assign showFromParty = !parameters.fromPartyId?has_content>
-
<fo:layout-master-set>
<fo:simple-page-master master-name="main" page-height="11in" page-width="8.5in"
margin-top="0.5in" margin-bottom="1in" margin-left="1in" margin-right="1in">
@@ -38,8 +34,14 @@ under the License.
<fo:page-sequence master-reference="main">
<fo:flow flow-name="xsl-region-body" font-family="Helvetica">
<fo:block font-size="14pt">${uiLabelMap.OrderReportPurchasesByOrganization}</fo:block>
- <#if !showToParty><fo:block font-size="10pt">${uiLabelMap.CommonFor}: ${Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, toPartyId, false)}</fo:block></#if>
- <#if !showFromParty><fo:block font-size="10pt">${uiLabelMap.CommonFrom}: ${Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, fromPartyId, false)}</fo:block></#if>
+ <#if partyIds?has_content>
+ <fo:block font-size="10pt">${uiLabelMap.CommonFor}:
+ <#list partyIds as toPartyId>
+ ${Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, toPartyId, false)!} <#sep>,
+ </#list>
+ </fo:block>
+ </#if>
+ <#if fromPartyId?has_content><fo:block font-size="10pt">${uiLabelMap.CommonFrom}: ${Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, fromPartyId, false)!}</fo:block></#if>
<fo:block font-size="10pt">${uiLabelMap.FormFieldTitle_orderStatusId}:
<#if orderStatusIds?has_content>
<#list orderStatusIds as orderStatusId>
