From 56557bbecd5ddb507504f73cd16cbf2fcfbbfd59 Mon Sep 17 00:00:00 2001 From: Divesh Dutta Date: Sat, 18 Jun 2016 22:48:54 +0000 Subject: [PATCH] [OFBIZ-7385] Allowing user to select multiple options in - Sales By Store - report from basic search criteria while generating report. Thanks Mohammad Kathawala for the patch and thanks Swapnil Shah for suggesting the improvment. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749103 13f79535-47bb-0310-9956-ffa450edef68 --- .../reports/PurchasesByOrganizationReport.fo.ftl | 4 ++-- .../order/template/reports/SalesByStoreReport.fo.ftl | 11 +++++++++-- applications/order/widget/ordermgr/ReportForms.xml | 8 ++++---- applications/order/widget/ordermgr/ReportScreens.xml | 7 +++++-- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/applications/order/template/reports/PurchasesByOrganizationReport.fo.ftl b/applications/order/template/reports/PurchasesByOrganizationReport.fo.ftl index 66d3acf74c..891d750288 100644 --- a/applications/order/template/reports/PurchasesByOrganizationReport.fo.ftl +++ b/applications/order/template/reports/PurchasesByOrganizationReport.fo.ftl @@ -41,8 +41,8 @@ under the License. <#if !showToParty>${uiLabelMap.CommonFor}: ${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, toPartyId, false)} <#if !showFromParty>${uiLabelMap.CommonFrom}: ${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, fromPartyId, false)} ${uiLabelMap.FormFieldTitle_orderStatusId}: - <#if parameters.orderStatusIds?has_content> - <#list parameters.orderStatusIds as orderStatusId> + <#if orderStatusIds?has_content> + <#list orderStatusIds as orderStatusId> <#assign statusItem = delegator.findOne("StatusItem", {"statusId" : orderStatusId}, false)!/> ${statusItem.description} diff --git a/applications/order/template/reports/SalesByStoreReport.fo.ftl b/applications/order/template/reports/SalesByStoreReport.fo.ftl index 8b7745977a..421350f38f 100644 --- a/applications/order/template/reports/SalesByStoreReport.fo.ftl +++ b/applications/order/template/reports/SalesByStoreReport.fo.ftl @@ -38,10 +38,17 @@ under the License. ${uiLabelMap.OrderReportSalesByStore} - <#if !showProductStore>${uiLabelMap.CommonFor} ${uiLabelMap.ProductProductStore}: ${parameters.productStoreId} - ${productReportList.get(0).storeName!} + <#if !showProductStore>${uiLabelMap.CommonFor} ${uiLabelMap.ProductProductStore}: ${parameters.productStoreId} <#if !showToParty>${uiLabelMap.PartyParty}: ${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, toPartyId, false)} ${uiLabelMap.FormFieldTitle_orderStatusId}: - <#if parameters.orderStatusId?has_content>${parameters.orderStatusId}<#else>${uiLabelMap.CommonAny} + <#if orderStatusIds?has_content> + <#list orderStatusIds as orderStatusId> + <#assign statusItem = delegator.findOne("StatusItem", {"statusId" : orderStatusId}, false)!/> + ${statusItem.description} + + <#else> + ${uiLabelMap.CommonAny} + <#if parameters.fromOrderDate?has_content>${uiLabelMap.CommonFromDate}: ${parameters.fromOrderDate} (${uiLabelMap.OrderDate} >= ${uiLabelMap.CommonFrom}) <#if parameters.thruOrderDate?has_content>${uiLabelMap.CommonThruDate}: ${parameters.thruOrderDate} (${uiLabelMap.OrderDate} < ${uiLabelMap.CommonFrom}) diff --git a/applications/order/widget/ordermgr/ReportForms.xml b/applications/order/widget/ordermgr/ReportForms.xml index 93c63ed2bb..b6dda7ae4b 100644 --- a/applications/order/widget/ordermgr/ReportForms.xml +++ b/applications/order/widget/ordermgr/ReportForms.xml @@ -74,23 +74,23 @@ under the License.
- + + - + + diff --git a/applications/order/widget/ordermgr/ReportScreens.xml b/applications/order/widget/ordermgr/ReportScreens.xml index e4e41c14ec..4d70bf668c 100644 --- a/applications/order/widget/ordermgr/ReportScreens.xml +++ b/applications/order/widget/ordermgr/ReportScreens.xml @@ -194,19 +194,22 @@ under the License. + + + - + - +