From fc625f71d25aea598e137d9d2bf818e2769d5c96 Mon Sep 17 00:00:00 2001 From: Hans Bakker Date: Tue, 8 Feb 2011 07:10:36 +0000 Subject: [PATCH] remove log messages from image managment, correct sales report and popular categories git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068279 13f79535-47bb-0310-9956-ffa450edef68 --- .../order/entitydef/entitymodel_olap.xml | 4 + .../org/ofbiz/order/olap/FactServices.xml | 224 +++++++++------ .../ofbiz/order/reports/SalesReportEvent.xml | 269 ++++++++++++++++-- .../order/servicedef/services_olap.xml | 24 +- .../actions/reports/CheckReportBy.groovy | 47 ++- .../actions/reports/SalesReport.groovy | 3 +- .../webapp/ordermgr/WEB-INF/controller.xml | 54 +++- .../ordermgr/reports/SalesReport.rptdesign | 247 ++++++++++++++-- .../reports/SalesReportMonth.rptdesign | 226 +++++++++++++-- .../reports/SalesReportWeek.rptdesign | 252 ++++++++++++++-- .../order/widget/ordermgr/ReportForms.xml | 7 + .../product/category/CategoryServices.xml | 11 +- .../ImageManagementServices.xml | 1 - applications/product/servicedef/services.xml | 1 - .../imagemanagement/showPeopleApprove.ftl | 2 +- 15 files changed, 1154 insertions(+), 218 deletions(-) diff --git a/applications/order/entitydef/entitymodel_olap.xml b/applications/order/entitydef/entitymodel_olap.xml index 953bd1fe9a..97346b9e98 100644 --- a/applications/order/entitydef/entitymodel_olap.xml +++ b/applications/order/entitydef/entitymodel_olap.xml @@ -91,6 +91,10 @@ under the License. Gross Profit: Gross Merchandize Profit less Gross Shipping Profit. + + + Count of order. + diff --git a/applications/order/script/org/ofbiz/order/olap/FactServices.xml b/applications/order/script/org/ofbiz/order/olap/FactServices.xml index fe8ef2827b..c7f0fcff8b 100644 --- a/applications/order/script/org/ofbiz/order/olap/FactServices.xml +++ b/applications/order/script/org/ofbiz/order/olap/FactServices.xml @@ -120,11 +120,13 @@ under the License. - - - - - + + + + + + + @@ -193,6 +195,7 @@ under the License. + @@ -206,19 +209,20 @@ under the License. + + - - - - - - - - - + + + + + + + + - + @@ -230,34 +234,36 @@ under the License. - + - - - + + + - - + + - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - + + + + + + @@ -324,18 +330,17 @@ under the License. - - - - - - - - - + + + + + + + + - + @@ -372,45 +377,39 @@ under the License. - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - + @@ -420,11 +419,27 @@ under the License. + + + + + + + + + + + + + + + + - + - - + + + + + + - - + + - - + + @@ -461,4 +480,33 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/applications/order/script/org/ofbiz/order/reports/SalesReportEvent.xml b/applications/order/script/org/ofbiz/order/reports/SalesReportEvent.xml index e9e0d3cae1..d7fd18ec95 100644 --- a/applications/order/script/org/ofbiz/order/reports/SalesReportEvent.xml +++ b/applications/order/script/org/ofbiz/order/reports/SalesReportEvent.xml @@ -25,47 +25,258 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - diff --git a/applications/order/servicedef/services_olap.xml b/applications/order/servicedef/services_olap.xml index 347e6ef528..0adfd0f0d9 100644 --- a/applications/order/servicedef/services_olap.xml +++ b/applications/order/servicedef/services_olap.xml @@ -40,9 +40,25 @@ under the License. - - Import Sales Order Data. + + Load Sales Order Data Daily. - + + Import Sales Order Data. + + + + + + Import Sales Order Data. + + + + + + + \ No newline at end of file diff --git a/applications/order/webapp/ordermgr/WEB-INF/actions/reports/CheckReportBy.groovy b/applications/order/webapp/ordermgr/WEB-INF/actions/reports/CheckReportBy.groovy index 34ba9c7391..8c56cc782d 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/actions/reports/CheckReportBy.groovy +++ b/applications/order/webapp/ordermgr/WEB-INF/actions/reports/CheckReportBy.groovy @@ -21,19 +21,48 @@ import javax.servlet.http.HttpServletRequest; import org.ofbiz.base.util.UtilValidate; reportBy = parameters.reportBy; +exportType = parameters.exportType; if (UtilValidate.isEmpty(parameters.fromDate)) { request.setAttribute("_ERROR_MESSAGE_", "Please select From Date."); return "error"; } -if (reportBy == "day") { - return "day"; -} else if (reportBy == "week") { - return "week"; -} else if (reportBy == "month") { - return "month"; -} else { - request.setAttribute("_ERROR_MESSAGE_", "Please select Report By."); - return "error"; +if (exportType == "pdf") { + if (reportBy == "day") { + return "dayPDF"; + } else if (reportBy == "week") { + return "weekPDF"; + } else if (reportBy == "month") { + return "monthPDF"; + } else { + request.setAttribute("_ERROR_MESSAGE_", "Please select Report By."); + return "error"; + } +} + +if (exportType == "excel") { + if (reportBy == "day") { + return "dayExcel"; + } else if (reportBy == "week") { + return "weekExcel"; + } else if (reportBy == "month") { + return "monthExcel"; + } else { + request.setAttribute("_ERROR_MESSAGE_", "Please select Report By."); + return "error"; + } +} + +if (exportType == "html") { + if (reportBy == "day") { + return "dayHTML"; + } else if (reportBy == "week") { + return "weekHTML"; + } else if (reportBy == "month") { + return "monthHTML"; + } else { + request.setAttribute("_ERROR_MESSAGE_", "Please select Report By."); + return "error"; + } } diff --git a/applications/order/webapp/ordermgr/WEB-INF/actions/reports/SalesReport.groovy b/applications/order/webapp/ordermgr/WEB-INF/actions/reports/SalesReport.groovy index 2b2469ab72..8534510ccd 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/actions/reports/SalesReport.groovy +++ b/applications/order/webapp/ordermgr/WEB-INF/actions/reports/SalesReport.groovy @@ -30,8 +30,9 @@ int year = cal.get(Calendar.YEAR); birtParameters = [:]; try { birtParameters.reportBy = parameters.reportBy; - birtParameters.fromDate = (Date.valueOf(fromDateStr))-3; + birtParameters.fromDate = (Date.valueOf(fromDateStr))-2; birtParameters.thruDate = Date.valueOf(fromDateStr); + birtParameters.lastDate = (Date.valueOf(fromDateStr))-7; birtParameters.thruWeek = week; birtParameters.thruMonth = month; birtParameters.thisYear = year; diff --git a/applications/order/webapp/ordermgr/WEB-INF/controller.xml b/applications/order/webapp/ordermgr/WEB-INF/controller.xml index 54f7e7dcd0..44c821976c 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/controller.xml +++ b/applications/order/webapp/ordermgr/WEB-INF/controller.xml @@ -1160,9 +1160,15 @@ under the License. - - - + + + + + + + + + @@ -1170,15 +1176,39 @@ under the License. - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1935,9 +1965,15 @@ under the License. - - - + + + + + + + + + diff --git a/applications/order/webapp/ordermgr/reports/SalesReport.rptdesign b/applications/order/webapp/ordermgr/reports/SalesReport.rptdesign index 0f65d6e981..1c07814d00 100644 --- a/applications/order/webapp/ordermgr/reports/SalesReport.rptdesign +++ b/applications/order/webapp/ordermgr/reports/SalesReport.rptdesign @@ -124,6 +124,16 @@ under the License. /templates/blank_report.gif auto layout + + static + string + true + simple + text-box + + Unformatted + + static false @@ -146,9 +156,10 @@ under the License. Unformatted - + static - string + false + date true simple text-box @@ -243,31 +254,36 @@ under the License. 10 - quantity + countOrder integer 11 - GS + quantity integer 12 - GMS + GS integer 13 - GMP + GMS integer 14 - GSP + GMP integer 15 + GSP + integer + + + 16 GP integer @@ -309,6 +325,10 @@ under the License. orderDateDescription orderDateDescription + + countOrder + countOrder + quantity quantity @@ -383,31 +403,36 @@ under the License. 10 - quantity + countOrder integer 11 - GS + quantity integer 12 - GMS + GS integer 13 - GMP + GMS integer 14 - GSP + GMP integer 15 + GSP + integer + + + 16 GP integer @@ -427,6 +452,7 @@ try reportBy = params["reportBy"].value; fromDate = params["fromDate"].value; thruDate = params["thruDate"].value; + lastDate = params["lastDate"].value; thruWeek = params["thruWeek"].value; thruMonth = params["thruMonth"].value; thisYear = params["thisYear"].value; @@ -434,6 +460,7 @@ try methodContext.putEnv("reportBy", reportBy); methodContext.putEnv("fromDate", fromDate); methodContext.putEnv("thruDate", thruDate); + methodContext.putEnv("lastDate", lastDate); methodContext.putEnv("thruWeek", thruWeek); methodContext.putEnv("thruMonth", thruMonth); methodContext.putEnv("thisYear", thisYear); @@ -468,6 +495,7 @@ if (starschemas) pod = starschema.getString("pod"); account = starschema.getString("account"); + countOrder = starschema.getString("countOrder"); quantity = starschema.getString("quantity"); GS = starschema.getString("GS"); GMS = starschema.getString("GMS"); @@ -484,6 +512,7 @@ if (starschemas) row["orderDateWeekOfYear"] = orderDateWeekOfYear; row["orderDateDayName"] = orderDateDayName; row["orderDateDescription"] = orderDateDescription; + row["countOrder"] = countOrder; row["quantity"] = quantity; row["GS"] = GS; row["GMS"] = GMS; @@ -558,6 +587,10 @@ return true;]]> + + dataSetRow["countOrder"] + integer + dataSetRow["quantity"] integer @@ -643,12 +676,14 @@ return true;]]> - us-legal + custom + 10in + 20in landscape - 0.25in - 0.25in - 0.25in - 0.25in + 0.5in + 0.5in + 0.5in + 0.5in sans-serif @@ -670,6 +705,91 @@ return true;]]> + + countOrder + + + Account/Account + Date/orderDateDescription + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + countOrder_Account/Account_Date/orderDateDescription + + + + + + + Account/Brand + Date/orderDateDescription + sans-serif + #87CEFA + center + + + + Fixed + #,##0 + + countOrder_Account/Brand_Date/orderDateDescription + + + + + Account/Pod + Date/orderDateDescription + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + countOrder_Account/Pod_Date/orderDateDescription + + + + + Date/orderDateDescription + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + countOrder_Date/orderDateDescription + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + quantity @@ -935,7 +1055,7 @@ return true;]]> #FFEBCD center - + Fixed #,##0 @@ -954,12 +1074,12 @@ return true;]]> #87CEFA center - + Fixed #,##0 - GP_Account/Brand_Date/orderDateDescription + Brand_GP @@ -970,12 +1090,12 @@ return true;]]> #B0C4DE center - + Fixed #,##0 - GP_Account/Pod_Date/orderDateDescription + Pod_GP @@ -985,12 +1105,12 @@ return true;]]> #6495ED center - + Fixed #,##0 - GP_Date/orderDateDescription + Grand_GP @@ -1461,6 +1581,20 @@ return true;]]> + + Date/orderDateMonthOfYear + + + + + orderDateMonthOfYear + + + #FFEBCD + center + + + Date/orderDateMonthName @@ -1515,6 +1649,7 @@ return true;]]> + sans-serif #FFFFFF BIC_DataCube @@ -2123,6 +2258,70 @@ return true;]]> } float + + Account_GP + data["GMP_Account/Account_Date/orderDateDescription"]+data["GSP_Account/Account_Date/orderDateDescription"] + integer + + + Pod_GP + data["GMP_Account/Pod_Date/orderDateDescription"]+data["GSP_Account/Pod_Date/orderDateDescription"] + integer + + + Brand_GP + data["GMP_Account/Brand_Date/orderDateDescription"]+data["GSP_Account/Brand_Date/orderDateDescription"] + integer + + + Grand_GP + data["GMP_Date/orderDateDescription"]+data["GSP_Date/orderDateDescription"] + integer + + + countOrder_Account/Brand_Date/orderDateDescription + measure["countOrder"] + integer + + Account/Brand + Date/orderDateDescription + + SUM + + + countOrder_Account/Pod_Date/orderDateDescription + measure["countOrder"] + integer + + Account/Pod + Date/orderDateDescription + + SUM + + + countOrder_Date/orderDateDescription + measure["countOrder"] + integer + + Date/orderDateDescription + + SUM + + + countOrder_Account/Account_Date/orderDateDescription + measure["countOrder"] + integer + + Account/Account + Date/orderDateDescription + + SUM + + + orderDateMonthOfYear + dimension["Date"]["orderDateMonthOfYear"] + string + diff --git a/applications/order/webapp/ordermgr/reports/SalesReportMonth.rptdesign b/applications/order/webapp/ordermgr/reports/SalesReportMonth.rptdesign index 28c320f55e..c1429dc829 100644 --- a/applications/order/webapp/ordermgr/reports/SalesReportMonth.rptdesign +++ b/applications/order/webapp/ordermgr/reports/SalesReportMonth.rptdesign @@ -124,6 +124,16 @@ under the License. /templates/blank_report.gif auto layout + + static + string + true + simple + text-box + + Unformatted + + static false @@ -146,9 +156,10 @@ under the License. Unformatted - + static - string + false + date true simple text-box @@ -228,31 +239,36 @@ under the License. 7 - quantity + countOrder integer 8 - GS + quantity integer 9 - GMS + GS integer 10 - GMP + GMS integer 11 - GSP + GMP integer 12 + GSP + integer + + + 13 GP integer @@ -282,6 +298,10 @@ under the License. orderDateMonthName orderDateMonthName + + countOrder + countOrder + quantity quantity @@ -341,31 +361,36 @@ under the License. 7 - quantity + countOrder integer 8 - GS + quantity integer 9 - GMS + GS integer 10 - GMP + GMS integer 11 - GSP + GMP integer 12 + GSP + integer + + + 13 GP integer @@ -385,6 +410,7 @@ try reportBy = params["reportBy"].value; fromDate = params["fromDate"].value; thruDate = params["thruDate"].value; + lastDate = params["lastDate"].value; thruWeek = params["thruWeek"].value; thruMonth = params["thruMonth"].value; thisYear = params["thisYear"].value; @@ -392,6 +418,7 @@ try methodContext.putEnv("reportBy", reportBy); methodContext.putEnv("fromDate", fromDate); methodContext.putEnv("thruDate", thruDate); + methodContext.putEnv("lastDate", lastDate); methodContext.putEnv("thruWeek", thruWeek); methodContext.putEnv("thruMonth", thruMonth); methodContext.putEnv("thisYear", thisYear); @@ -426,6 +453,7 @@ if (starschemas) pod = starschema.getString("pod"); account = starschema.getString("account"); + quantity = starschema.getString("quantity"); quantity = starschema.getString("quantity"); GS = starschema.getString("GS"); GMS = starschema.getString("GMS"); @@ -439,6 +467,7 @@ if (starschemas) row["orderDateYearName"] = orderDateYearName; row["orderDateMonthOfYear"] = orderDateMonthOfYear; row["orderDateMonthName"] = orderDateMonthName; + row["countOrder"] = countOrder; row["quantity"] = quantity; row["GS"] = GS; row["GMS"] = GMS; @@ -501,6 +530,10 @@ return true;]]> + + dataSetRow["countOrder"] + integer + dataSetRow["quantity"] integer @@ -586,12 +619,14 @@ return true;]]> - us-legal + custom + 10in + 20in landscape - 0.25in - 0.25in - 0.25in - 0.25in + 0.5in + 0.5in + 0.5in + 0.5in sans-serif @@ -613,6 +648,90 @@ return true;]]> + + countOrder + + + Account/Account + Date/orderDateMonthName + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + countOrder_Account/Account_Date/orderDateMonthName + + + + + + + Account/Brand + Date/orderDateMonthName + sans-serif + #87CEFA + center + + + + Fixed + #,##0 + + countOrder_Account/Brand_Date/orderDateMonthName + + + + + Account/Pod + Date/orderDateMonthName + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + countOrder_Account/Pod_Date/orderDateMonthName + + + + + Date/orderDateMonthName + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + countOrder_Date/orderDateMonthName + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + quantity @@ -875,7 +994,7 @@ return true;]]> #FFEBCD center - + Fixed #,##0 @@ -893,12 +1012,12 @@ return true;]]> #87CEFA center - + Fixed #,##0 - GP_Account/Brand_Date/orderDateMonthName + Brand_GP @@ -909,12 +1028,12 @@ return true;]]> #B0C4DE center - + Fixed #,##0 - GP_Account/Pod_Date/orderDateMonthName + Pod_GP @@ -924,12 +1043,12 @@ return true;]]> #6495ED center - + Fixed #,##0 - GP_Date/orderDateMonthName + Grand_GP @@ -1984,6 +2103,65 @@ return true;]]> } float + + Account_GP + data["GMP_Account/Account_Date/orderDateMonthName"]+data["GSP_Account/Account_Date/orderDateMonthName"] + integer + + + Pod_GP + data["GMP_Account/Pod_Date/orderDateMonthName"]+data["GSP_Account/Pod_Date/orderDateMonthName"] + integer + + + Brand_GP + data["GMP_Account/Brand_Date/orderDateMonthName"]+data["GSP_Account/Brand_Date/orderDateMonthName"] + integer + + + Grand_GP + data["GMP_Date/orderDateMonthName"]+data["GSP_Date/orderDateMonthName"] + integer + + + countOrder_Account/Brand_Date/orderDateMonthName + measure["countOrder"] + integer + + Account/Brand + Date/orderDateMonthName + + SUM + + + countOrder_Account/Pod_Date/orderDateMonthName + measure["countOrder"] + integer + + Account/Pod + Date/orderDateMonthName + + SUM + + + countOrder_Date/orderDateMonthName + measure["countOrder"] + integer + + Date/orderDateMonthName + + SUM + + + countOrder_Account/Account_Date/orderDateMonthName + measure["countOrder"] + integer + + Account/Account + Date/orderDateMonthName + + SUM + diff --git a/applications/order/webapp/ordermgr/reports/SalesReportWeek.rptdesign b/applications/order/webapp/ordermgr/reports/SalesReportWeek.rptdesign index c435a10817..376bdad7c0 100644 --- a/applications/order/webapp/ordermgr/reports/SalesReportWeek.rptdesign +++ b/applications/order/webapp/ordermgr/reports/SalesReportWeek.rptdesign @@ -124,6 +124,16 @@ under the License. /templates/blank_report.gif auto layout + + static + string + true + simple + text-box + + Unformatted + + static false @@ -146,9 +156,10 @@ under the License. Unformatted - + static - string + false + date true simple text-box @@ -233,31 +244,36 @@ under the License. 8 - quantity + countOrder integer 9 - GS + quantity integer 10 - GMS + GS integer 11 - GMP + GMS integer 12 - GSP + GMP integer 13 + GSP + integer + + + 14 GP integer @@ -291,6 +307,10 @@ under the License. orderDateWeekOfYear orderDateWeekOfYear + + countOrder + countOrder + quantity quantity @@ -355,31 +375,36 @@ under the License. 8 - quantity + countOrder integer 9 - GS + quantity integer 10 - GMS + GS integer 11 - GMP + GMS integer 12 - GSP + GMP integer 13 + GSP + integer + + + 14 GP integer @@ -399,6 +424,7 @@ try reportBy = params["reportBy"].value; fromDate = params["fromDate"].value; thruDate = params["thruDate"].value; + lastDate = params["lastDate"].value; thruWeek = params["thruWeek"].value; thruMonth = params["thruMonth"].value; thisYear = params["thisYear"].value; @@ -406,6 +432,7 @@ try methodContext.putEnv("reportBy", reportBy); methodContext.putEnv("fromDate", fromDate); methodContext.putEnv("thruDate", thruDate); + methodContext.putEnv("lastDate", lastDate); methodContext.putEnv("thruWeek", thruWeek); methodContext.putEnv("thruMonth", thruMonth); methodContext.putEnv("thisYear", thisYear); @@ -441,6 +468,7 @@ if (starschemas) account = starschema.getString("account"); quantity = starschema.getString("quantity"); + countOrder = starschema.getString("countOrder"); GS = starschema.getString("GS"); GMS = starschema.getString("GMS"); GMP = starschema.getString("GMP"); @@ -454,6 +482,7 @@ if (starschemas) row["orderDateMonthOfYear"] = orderDateMonthOfYear; row["orderDateMonthName"] = orderDateMonthName; row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["countOrder"] = countOrder; row["quantity"] = quantity; row["GS"] = GS; row["GMS"] = GMS; @@ -520,6 +549,10 @@ return true;]]> + + dataSetRow["countOrder"] + integer + dataSetRow["quantity"] integer @@ -605,12 +638,14 @@ return true;]]> - us-legal + custom + 10in + 20in landscape - 0.25in - 0.25in - 0.25in - 0.25in + 0.5in + 0.5in + 0.5in + 0.5in sans-serif @@ -632,6 +667,90 @@ return true;]]> + + countOrder + + + Account/Account + Date/orderDateWeekOfYear + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + countOrder_Account/Account_Date/orderDateWeekOfYear + + + + + + + Account/Brand + Date/orderDateWeekOfYear + sans-serif + #87CEFA + center + + + + Fixed + #,##0 + + countOrder_Account/Brand_Date/orderDateWeekOfYear + + + + + Account/Pod + Date/orderDateWeekOfYear + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + countOrder_Account/Pod_Date/orderDateWeekOfYear + + + + + Date/orderDateWeekOfYear + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + countOrder_Date/orderDateWeekOfYear + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + quantity @@ -894,7 +1013,7 @@ return true;]]> #FFEBCD center - + Fixed #,##0 @@ -912,12 +1031,12 @@ return true;]]> #87CEFA center - + Fixed #,##0 - GP_Account/Brand_Date/orderDateWeekOfYear + Brand_GP @@ -928,12 +1047,12 @@ return true;]]> #B0C4DE center - + Fixed #,##0 - GP_Account/Pod_Date/orderDateWeekOfYear + Pod_GP @@ -943,12 +1062,12 @@ return true;]]> #6495ED center - + Fixed #,##0 - GP_Date/orderDateWeekOfYear + Grand_GP @@ -1415,6 +1534,20 @@ return true;]]> + + Date/orderDateMonthOfYear + + + + + orderDateMonthOfYear + + + #FFEBCD + center + + + Date/orderDateMonthName @@ -1432,6 +1565,12 @@ return true;]]> Date/orderDateWeekOfYear + + + data["orderDateWeekOfYear"] + asc + + @@ -1454,6 +1593,7 @@ return true;]]> + sans-serif #FFFFFF BIC_DataCube @@ -2003,6 +2143,70 @@ return true;]]> } float + + Account_GP + data["GMP_Account/Account_Date/orderDateWeekOfYear"]+data["GSP_Account/Account_Date/orderDateWeekOfYear"] + integer + + + Pod_GP + data["GMP_Account/Pod_Date/orderDateWeekOfYear"]+data["GSP_Account/Pod_Date/orderDateWeekOfYear"] + integer + + + Brand_GP + data["GMP_Account/Brand_Date/orderDateWeekOfYear"]+data["GSP_Account/Brand_Date/orderDateWeekOfYear"] + integer + + + Grand_GP + data["GMP_Date/orderDateWeekOfYear"]+data["GSP_Date/orderDateWeekOfYear"] + integer + + + countOrder_Account/Brand_Date/orderDateWeekOfYear + measure["countOrder"] + integer + + Account/Brand + Date/orderDateWeekOfYear + + SUM + + + countOrder_Account/Pod_Date/orderDateWeekOfYear + measure["countOrder"] + integer + + Account/Pod + Date/orderDateWeekOfYear + + SUM + + + countOrder_Date/orderDateWeekOfYear + measure["countOrder"] + integer + + Date/orderDateWeekOfYear + + SUM + + + countOrder_Account/Account_Date/orderDateWeekOfYear + measure["countOrder"] + integer + + Account/Account + Date/orderDateWeekOfYear + + SUM + + + orderDateMonthOfYear + dimension["Date"]["orderDateMonthOfYear"] + string + diff --git a/applications/order/widget/ordermgr/ReportForms.xml b/applications/order/widget/ordermgr/ReportForms.xml index 9e73864697..91a846b8e9 100644 --- a/applications/order/widget/ordermgr/ReportForms.xml +++ b/applications/order/widget/ordermgr/ReportForms.xml @@ -207,6 +207,13 @@ under the License. + + + + + + + diff --git a/applications/product/script/org/ofbiz/product/category/CategoryServices.xml b/applications/product/script/org/ofbiz/product/category/CategoryServices.xml index 293969e984..e9f547d19e 100644 --- a/applications/product/script/org/ofbiz/product/category/CategoryServices.xml +++ b/applications/product/script/org/ofbiz/product/category/CategoryServices.xml @@ -889,6 +889,13 @@ under the License. + + + + + + + @@ -953,9 +960,7 @@ under the License. - - - + diff --git a/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementServices.xml b/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementServices.xml index 6cc6212ad5..d1ec80b914 100644 --- a/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementServices.xml +++ b/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementServices.xml @@ -213,7 +213,6 @@ under the License. - diff --git a/applications/product/servicedef/services.xml b/applications/product/servicedef/services.xml index 14a6c6d40e..08042fa37e 100644 --- a/applications/product/servicedef/services.xml +++ b/applications/product/servicedef/services.xml @@ -1515,7 +1515,6 @@ under the License. - <#assign userLoginAndPartyDetails = delegator.findByPrimaryKey("UserLoginAndPartyDetails", Static["org.ofbiz.base.util.UtilMisc"].toMap("partyId", userLoginApprover.partyId, "userLoginId", userLoginApprover.userLoginId))?if_exists> <#if userLoginAndPartyDetails != null && userLoginAndPartyDetails?has_content> - <#assign partyContentDetail = delegator.findByAnd("PartyContentDetail",Static["org.ofbiz.base.util.UtilMisc"].toMap("partyContentTypeId", "IMAGEAPPROVER", "statusId", "IM_PENDING", "partyId", userLoginAndPartyDetails.partyId))/> + <#assign partyContentDetail = delegator.findByAnd("ContentApproval",Static["org.ofbiz.base.util.UtilMisc"].toMap("roleTypeId", "IMAGEAPPROVER", "approvalStatusId", "IM_PENDING", "partyId", userLoginAndPartyDetails.partyId))/> <#assign imageApproveSize = partyContentDetail.size()> <#if userLoginAndPartyDetails.userLoginId == userLogin.userLoginId> <#if userMap.checkUser == userLoginAndPartyDetails.userLoginId>