diff --git a/birt/build.xml b/birt/build.xml new file mode 100644 index 000000000..b8a4c8fac --- /dev/null +++ b/birt/build.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/birt/config/BirtUiLabels.xml b/birt/config/BirtUiLabels.xml new file mode 100644 index 000000000..c0a4b7adc --- /dev/null +++ b/birt/config/BirtUiLabels.xml @@ -0,0 +1,61 @@ + + + + + OFBiz: Eclipse BIRT + OFBiz : Eclipse BIRT + + + Part of the Open For Business Family of Open Source Software + Un modulo della famiglia di software open source Open For Business + เป็นส่วนหนึ่งของธุรกิจแบบครอบครัวที่เป็นซอฟต์แวร์โอเพนซอส + + + Eclipse BIRT Application + Eclipse BIRT Application + + + Framework Eclipse BIRT + Framework Eclipse BIRT + + + + BIRT Examples + ตัวอย่าง BIRT + + + HTML chart report + Graphiques HTML + + + PDF chart report + Graphiques PDF + + + Send any format through Mail + + + HTML + + + PDF + + diff --git a/birt/data/BirtHelpData.xml b/birt/data/BirtHelpData.xml new file mode 100644 index 000000000..6e517f7fc --- /dev/null +++ b/birt/data/BirtHelpData.xml @@ -0,0 +1,28 @@ + + + + + + + + diff --git a/birt/data/OrderPortletData.xml b/birt/data/OrderPortletData.xml new file mode 100644 index 000000000..c74fc49d4 --- /dev/null +++ b/birt/data/OrderPortletData.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/birt/data/helpdata/HELP_BIRT.xml b/birt/data/helpdata/HELP_BIRT.xml new file mode 100644 index 000000000..146b7827b --- /dev/null +++ b/birt/data/helpdata/HELP_BIRT.xml @@ -0,0 +1,86 @@ + + +
+ + OFBiz BIRT Overview + + Welcome to OFBiz BIRT. The part installed within OFBiz allows you to run the reports which are prepared using Eclipse with the BIRT plugin installed. + As a demo we have prepared a product report as an example. + Look at the Eclipse BIRT web site for more information. + + + This is a short document to help you get started using BIRT to make a report. + +
+ 1. HTML tab + When you click on this tab. It will show the complete report in an iframe. +
+
+ 2. PDF tab + When you click on this tab. It will render the report in a pdf format +
+
+ 3. Send any format through Mail tab + When you click on this tab. It will show a form that can send the report per email. +
+
+ Examine the Example Report + + The example report that run in OFBiz is in the file component://birt/webapp/birt/report/product.rptdesign. When you have started Eclipse BIRT, open this document. + This report show how a report receives data from OFBiz through Scripted Data Source using the OFBiz delegator. + This report has the scripted data source name "OFBiz" and the data set that use the script data source name is called "Product". + Open the script editor for Product data set, it uses the delegator object query data from the Product entity. + A report that runs on the OFBiz platform can use the delegator object, dispatcher object, security object and classpath of OFBiz environment in the script. +
+
+ Important file for using BIRT's jsp tags + + If a web applications wants to use the report in a screen, copy birt.tld file to [WEB APP]/WEB-INF/ directory and assign in in ftl + like <#assign birt = JspTaglibs["/WEB-INF/birt.tld"]/> +
+
+ Important tag's attribute in ftl. + + The BIRT uses some servlets for rendering the report. + When you use the report tag in a ftl file you must add a specific "baseURL" attribute to the birt webapp for these resources like baseURL="/birt". + +
+
+ How do I send parameter to report. + If a report is to be rendered through a view map, you can send a parameter through attribute of the request object, the attribute's name is "birtParameters" which is a map. + If a report is to be rendered through an e-mail, you can send the parameter through the service's parameter name called birtParameters. +
+
+ Which are the supported content types? + text/html + application/pdf + application/postscript + application/vnd.ms-excel + application/vnd.ms-word + application/vnd.ms-powerpoint + application/vnd.oasis.opendocument.text + application/vnd.oasis.opendocument.spreadsheet + application/vnd.oasis.opendocument.presentation +
+
diff --git a/birt/documents/Birt.xml b/birt/documents/Birt.xml new file mode 100644 index 000000000..79790a9bb --- /dev/null +++ b/birt/documents/Birt.xml @@ -0,0 +1,31 @@ + + + + BIRT report generator. + + An example report sales can be found in the example component. + + + + + \ No newline at end of file diff --git a/birt/lib/Tidy.jar b/birt/lib/Tidy.jar new file mode 100644 index 000000000..0f621ccf1 Binary files /dev/null and b/birt/lib/Tidy.jar differ diff --git a/birt/lib/flute.jar b/birt/lib/flute.jar new file mode 100644 index 000000000..39a55d4fa Binary files /dev/null and b/birt/lib/flute.jar differ diff --git a/birt/lib/jaxrpc.jar b/birt/lib/jaxrpc.jar new file mode 100644 index 000000000..a2c13d9a2 Binary files /dev/null and b/birt/lib/jaxrpc.jar differ diff --git a/birt/lib/js.jar b/birt/lib/js.jar new file mode 100644 index 000000000..f18c53359 Binary files /dev/null and b/birt/lib/js.jar differ diff --git a/birt/lib/org.apache.xml.resolver_1.2.0.v201005080400.jar b/birt/lib/org.apache.xml.resolver_1.2.0.v201005080400.jar new file mode 100644 index 000000000..f5e59e435 Binary files /dev/null and b/birt/lib/org.apache.xml.resolver_1.2.0.v201005080400.jar differ diff --git a/birt/lib/org.apache.xml.serializer_2.7.1.v201005080400.jar b/birt/lib/org.apache.xml.serializer_2.7.1.v201005080400.jar new file mode 100644 index 000000000..147d390d0 Binary files /dev/null and b/birt/lib/org.apache.xml.serializer_2.7.1.v201005080400.jar differ diff --git a/birt/lib/org.eclipse.birt.runtime_3.7.2.v20120214-1408.jar b/birt/lib/org.eclipse.birt.runtime_3.7.2.v20120214-1408.jar new file mode 100755 index 000000000..78706e3df Binary files /dev/null and b/birt/lib/org.eclipse.birt.runtime_3.7.2.v20120214-1408.jar differ diff --git a/birt/lib/org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar b/birt/lib/org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar new file mode 100644 index 000000000..4288805b7 Binary files /dev/null and b/birt/lib/org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar differ diff --git a/birt/lib/org.eclipse.core.expressions_3.4.300.v20110228.jar b/birt/lib/org.eclipse.core.expressions_3.4.300.v20110228.jar new file mode 100644 index 000000000..fd4687f3b Binary files /dev/null and b/birt/lib/org.eclipse.core.expressions_3.4.300.v20110228.jar differ diff --git a/birt/lib/org.eclipse.core.filesystem_1.3.100.v20110423-0524.jar b/birt/lib/org.eclipse.core.filesystem_1.3.100.v20110423-0524.jar new file mode 100644 index 000000000..c8fbee7a0 Binary files /dev/null and b/birt/lib/org.eclipse.core.filesystem_1.3.100.v20110423-0524.jar differ diff --git a/birt/lib/org.eclipse.core.jobs_3.5.101.v20120113-1953.jar b/birt/lib/org.eclipse.core.jobs_3.5.101.v20120113-1953.jar new file mode 100755 index 000000000..acd096f03 Binary files /dev/null and b/birt/lib/org.eclipse.core.jobs_3.5.101.v20120113-1953.jar differ diff --git a/birt/lib/org.eclipse.core.resources_3.7.101.v20120125-1505.jar b/birt/lib/org.eclipse.core.resources_3.7.101.v20120125-1505.jar new file mode 100755 index 000000000..b5b7dfc4a Binary files /dev/null and b/birt/lib/org.eclipse.core.resources_3.7.101.v20120125-1505.jar differ diff --git a/birt/lib/org.eclipse.core.runtime_3.7.0.v20110110.jar b/birt/lib/org.eclipse.core.runtime_3.7.0.v20110110.jar new file mode 100644 index 000000000..0f4a83144 Binary files /dev/null and b/birt/lib/org.eclipse.core.runtime_3.7.0.v20110110.jar differ diff --git a/birt/lib/org.eclipse.datatools.connectivity.oda_3.3.3.v201110130935.jar b/birt/lib/org.eclipse.datatools.connectivity.oda_3.3.3.v201110130935.jar new file mode 100755 index 000000000..53cb4d3f2 Binary files /dev/null and b/birt/lib/org.eclipse.datatools.connectivity.oda_3.3.3.v201110130935.jar differ diff --git a/birt/lib/org.eclipse.emf.common_2.7.0.v20120123-0926.jar b/birt/lib/org.eclipse.emf.common_2.7.0.v20120123-0926.jar new file mode 100755 index 000000000..562b3fdc0 Binary files /dev/null and b/birt/lib/org.eclipse.emf.common_2.7.0.v20120123-0926.jar differ diff --git a/birt/lib/org.eclipse.emf.ecore.change_2.7.1.v20120123-0926.jar b/birt/lib/org.eclipse.emf.ecore.change_2.7.1.v20120123-0926.jar new file mode 100755 index 000000000..53faf43d4 Binary files /dev/null and b/birt/lib/org.eclipse.emf.ecore.change_2.7.1.v20120123-0926.jar differ diff --git a/birt/lib/org.eclipse.emf.ecore.xmi_2.7.0.v20120123-0926.jar b/birt/lib/org.eclipse.emf.ecore.xmi_2.7.0.v20120123-0926.jar new file mode 100755 index 000000000..570c1fc3d Binary files /dev/null and b/birt/lib/org.eclipse.emf.ecore.xmi_2.7.0.v20120123-0926.jar differ diff --git a/birt/lib/org.eclipse.emf.ecore_2.7.0.v20120123-0926.jar b/birt/lib/org.eclipse.emf.ecore_2.7.0.v20120123-0926.jar new file mode 100755 index 000000000..b10e5e658 Binary files /dev/null and b/birt/lib/org.eclipse.emf.ecore_2.7.0.v20120123-0926.jar differ diff --git a/birt/lib/org.eclipse.emf_2.6.0.v20120123-1045.jar b/birt/lib/org.eclipse.emf_2.6.0.v20120123-1045.jar new file mode 100755 index 000000000..cd94392ff Binary files /dev/null and b/birt/lib/org.eclipse.emf_2.6.0.v20120123-1045.jar differ diff --git a/birt/lib/org.eclipse.equinox.app_1.3.100.v20110321.jar b/birt/lib/org.eclipse.equinox.app_1.3.100.v20110321.jar new file mode 100644 index 000000000..d8b5f7546 Binary files /dev/null and b/birt/lib/org.eclipse.equinox.app_1.3.100.v20110321.jar differ diff --git a/birt/lib/org.eclipse.equinox.common_3.6.0.v20110523.jar b/birt/lib/org.eclipse.equinox.common_3.6.0.v20110523.jar new file mode 100644 index 000000000..9fb167cc8 Binary files /dev/null and b/birt/lib/org.eclipse.equinox.common_3.6.0.v20110523.jar differ diff --git a/birt/lib/org.eclipse.equinox.preferences_3.4.2.v20120111-2020.jar b/birt/lib/org.eclipse.equinox.preferences_3.4.2.v20120111-2020.jar new file mode 100755 index 000000000..386cbffe9 Binary files /dev/null and b/birt/lib/org.eclipse.equinox.preferences_3.4.2.v20120111-2020.jar differ diff --git a/birt/lib/org.eclipse.equinox.registry_3.5.101.R37x_v20110810-1611.jar b/birt/lib/org.eclipse.equinox.registry_3.5.101.R37x_v20110810-1611.jar new file mode 100644 index 000000000..c2732f442 Binary files /dev/null and b/birt/lib/org.eclipse.equinox.registry_3.5.101.R37x_v20110810-1611.jar differ diff --git a/birt/lib/org.eclipse.osgi.services_3.3.0.v20110513.jar b/birt/lib/org.eclipse.osgi.services_3.3.0.v20110513.jar new file mode 100644 index 000000000..2fcf66852 Binary files /dev/null and b/birt/lib/org.eclipse.osgi.services_3.3.0.v20110513.jar differ diff --git a/birt/lib/org.eclipse.osgi_3.7.2.v20120110-1415.jar b/birt/lib/org.eclipse.osgi_3.7.2.v20120110-1415.jar new file mode 100755 index 000000000..25f118068 Binary files /dev/null and b/birt/lib/org.eclipse.osgi_3.7.2.v20120110-1415.jar differ diff --git a/birt/lib/org.eclipse.update.configurator_3.3.100.v20100512.jar b/birt/lib/org.eclipse.update.configurator_3.3.100.v20100512.jar new file mode 100644 index 000000000..3a8abe539 Binary files /dev/null and b/birt/lib/org.eclipse.update.configurator_3.3.100.v20100512.jar differ diff --git a/birt/lib/org.w3c.css.sac_1.3.0.v200805290154.jar b/birt/lib/org.w3c.css.sac_1.3.0.v200805290154.jar new file mode 100644 index 000000000..fde33906c Binary files /dev/null and b/birt/lib/org.w3c.css.sac_1.3.0.v200805290154.jar differ diff --git a/birt/lib/org.w3c.dom.smil_1.0.0.v200806040011.jar b/birt/lib/org.w3c.dom.smil_1.0.0.v200806040011.jar new file mode 100644 index 000000000..a1c8a8355 Binary files /dev/null and b/birt/lib/org.w3c.dom.smil_1.0.0.v200806040011.jar differ diff --git a/birt/lib/org.w3c.dom.svg_1.1.0.v201011041433.jar b/birt/lib/org.w3c.dom.svg_1.1.0.v201011041433.jar new file mode 100644 index 000000000..99cfac18b Binary files /dev/null and b/birt/lib/org.w3c.dom.svg_1.1.0.v201011041433.jar differ diff --git a/birt/lib/saaj.jar b/birt/lib/saaj.jar new file mode 100644 index 000000000..4ea696e74 Binary files /dev/null and b/birt/lib/saaj.jar differ diff --git a/birt/lib/viewservlets.jar b/birt/lib/viewservlets.jar new file mode 100644 index 000000000..75e1124e9 Binary files /dev/null and b/birt/lib/viewservlets.jar differ diff --git a/birt/ofbiz-component.xml b/birt/ofbiz-component.xml new file mode 100644 index 000000000..ed256991c --- /dev/null +++ b/birt/ofbiz-component.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/birt/servicedef/services.xml b/birt/servicedef/services.xml new file mode 100644 index 000000000..95c466ed7 --- /dev/null +++ b/birt/servicedef/services.xml @@ -0,0 +1,42 @@ + + + + + OFBiz BIRT Services + OFBiz + 1.0 + + + + BIRT Email Service + + + + + + + + + + + + + diff --git a/birt/src/org/ofbiz/birt/BirtFactory.java b/birt/src/org/ofbiz/birt/BirtFactory.java new file mode 100644 index 000000000..5112344b0 --- /dev/null +++ b/birt/src/org/ofbiz/birt/BirtFactory.java @@ -0,0 +1,93 @@ +/******************************************************************************* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + *******************************************************************************/ +package org.ofbiz.birt; + +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; + +import javax.xml.parsers.ParserConfigurationException; + +import org.eclipse.birt.report.engine.api.IReportEngine; +import org.ofbiz.base.location.FlexibleLocation; +import org.ofbiz.base.util.Debug; +import org.ofbiz.widget.screen.ScreenFactory; +import org.xml.sax.SAXException; + +/** + * BIRT Factory + * @author chatree + * + */ +public class BirtFactory { + + public final static String module = BirtFactory.class.getName(); + + protected static IReportEngine engine; + + /** + * set report engine + * @param engine + */ + public static void setReportEngine(IReportEngine engine) { + BirtFactory.engine = engine; + } + + /** + * get report engine + * @return + */ + public static IReportEngine getReportEngine() { + return engine; + } + + /** + * get report input stream from location + * @param resourceName + * @return returns the input stream from location + * @throws IOException + * @throws SAXException + * @throws ParserConfigurationException + */ + public static InputStream getReportInputStreamFromLocation(String resourceName) + throws IOException, SAXException, ParserConfigurationException{ + + InputStream reportInputStream = null; + synchronized (BirtFactory.class) { + long startTime = System.currentTimeMillis(); + ClassLoader loader = Thread.currentThread().getContextClassLoader(); + if (loader == null) { + loader = ScreenFactory.class.getClassLoader(); + } + URL reportFileUrl = null; + reportFileUrl = FlexibleLocation.resolveLocation(resourceName, loader); + if (reportFileUrl == null) { + throw new IllegalArgumentException("Could not resolve location to URL: " + resourceName); + } + reportInputStream = reportFileUrl.openStream(); + double totalSeconds = (System.currentTimeMillis() - startTime)/1000.0; + Debug.logInfo("Got report in " + totalSeconds + "s from: " + reportFileUrl.toExternalForm(), module); + } + + if (reportInputStream == null) { + throw new IllegalArgumentException("Could not find report file with location [" + resourceName + "]"); + } + return reportInputStream; + } +} diff --git a/birt/src/org/ofbiz/birt/BirtWorker.java b/birt/src/org/ofbiz/birt/BirtWorker.java new file mode 100644 index 000000000..d0910f2ff --- /dev/null +++ b/birt/src/org/ofbiz/birt/BirtWorker.java @@ -0,0 +1,190 @@ +/******************************************************************************* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + *******************************************************************************/ +package org.ofbiz.birt; + +import java.io.OutputStream; +import java.sql.SQLException; +import java.util.Locale; +import java.util.Map; + +import javax.servlet.ServletContext; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; + +import org.eclipse.birt.report.engine.api.EXCELRenderOption; +import org.eclipse.birt.report.engine.api.EngineException; +import org.eclipse.birt.report.engine.api.HTMLRenderOption; +import org.eclipse.birt.report.engine.api.HTMLServerImageHandler; +import org.eclipse.birt.report.engine.api.IPDFRenderOption; +import org.eclipse.birt.report.engine.api.IReportEngine; +import org.eclipse.birt.report.engine.api.IReportRunnable; +import org.eclipse.birt.report.engine.api.IRunAndRenderTask; +import org.eclipse.birt.report.engine.api.PDFRenderOption; +import org.eclipse.birt.report.engine.api.RenderOption; +import org.ofbiz.base.util.Debug; +import org.ofbiz.base.util.GeneralException; +import org.ofbiz.base.util.UtilGenerics; +import org.ofbiz.base.util.UtilValidate; +import org.ofbiz.entity.Delegator; +import org.ofbiz.security.Security; +import org.ofbiz.service.LocalDispatcher; + +public class BirtWorker { + + public final static String module = BirtWorker.class.getName(); + + public final static String BIRT_PARAMETERS = "birtParameters"; + public final static String REPORT_ENGINE = "reportEngine"; + public final static String BIRT_LOCALE = "birtLocale"; + public final static String BIRT_IMAGE_DIRECTORY = "birtImageDirectory"; + public final static String BIRT_CONTENT_TYPE = "birtContentType"; + public final static String BIRT_OUTPUT_FILE_NAME = "birtOutputFileName"; + + private static HTMLServerImageHandler imageHandler = new HTMLServerImageHandler(); + + /** + * export report + * @param design + * @param context + * @param contentType + * @param output + * @throws EngineException + * @throws GeneralException + * @throws SQLException + */ + public static void exportReport(IReportRunnable design, Map context, String contentType, OutputStream output) + throws EngineException, GeneralException, SQLException { + + Locale birtLocale = (Locale)context.get(BIRT_LOCALE); + String birtImageDirectory = (String)context.get(BIRT_IMAGE_DIRECTORY); + + if (contentType == null) { + contentType = "text/html"; + } + if (birtImageDirectory == null) { + birtImageDirectory = "/"; + } + Debug.logInfo("Get report engine", module); + IReportEngine engine = BirtFactory.getReportEngine(); + + IRunAndRenderTask task = engine.createRunAndRenderTask(design); + if (birtLocale != null) { + Debug.logInfo("Set BIRT locale:" + birtLocale, module); + task.setLocale(birtLocale); + } + + // set parameters if exists + Map parameters = UtilGenerics.cast(context.get(BirtWorker.BIRT_PARAMETERS)); + if (parameters != null) { + Debug.logInfo("Set BIRT parameters:" + parameters, module); + task.setParameterValues(parameters); + } + + // set output options + RenderOption options = new RenderOption(); + if ("text/html".equalsIgnoreCase(contentType)) { // HTML + options.setOutputFormat(RenderOption.OUTPUT_FORMAT_HTML); + HTMLRenderOption htmlOptions = new HTMLRenderOption(options); + htmlOptions.setImageDirectory(birtImageDirectory); + htmlOptions.setBaseImageURL(birtImageDirectory); + options.setImageHandler(imageHandler); + } else if ("application/postscript".equalsIgnoreCase(contentType)) { // Post Script + options.setOutputFormat("postscript"); + } else if ("application/pdf".equalsIgnoreCase(contentType)) { // PDF + options.setOutputFormat(RenderOption.OUTPUT_FORMAT_PDF); + PDFRenderOption pdfOptions = new PDFRenderOption(options); + pdfOptions.setOption(IPDFRenderOption.PAGE_OVERFLOW, Boolean.TRUE ); + } else if ("application/vnd.ms-word".equalsIgnoreCase(contentType)) { // MS Word + options.setOutputFormat("doc"); + } else if ("application/vnd.ms-excel".equalsIgnoreCase(contentType)) { // MS Excel + options.setOutputFormat("xls"); + new EXCELRenderOption(options); + } else if ("application/vnd.ms-powerpoint".equalsIgnoreCase(contentType)) { // MS Power Point + options.setOutputFormat("ppt"); + } else if ("application/vnd.oasis.opendocument.text".equalsIgnoreCase(contentType)) { // Open Document Text + options.setOutputFormat("odt"); + } else if ("application/vnd.oasis.opendocument.spreadsheet".equalsIgnoreCase(contentType)) { // Open Document Spreadsheet + options.setOutputFormat("ods"); + } else if ("application/vnd.oasis.opendocument.presentation".equalsIgnoreCase(contentType)) { // Open Document Presentation + options.setOutputFormat("odp"); + } else { + throw new GeneralException("Unknown content type : " + contentType); + } + + options.setOutputStream(output); + task.setRenderOption(options); + + // run report + Debug.logInfo("BIRT's locale is: " + task.getLocale(), module); + Debug.logInfo("Run report's task", module); + task.run(); + task.close(); + } + + /** + * set web context objects + * @param appContext + * @param request + * @param response + */ + public static void setWebContextObjects(Map appContext, HttpServletRequest request, HttpServletResponse response) { + HttpSession session = request.getSession(); + ServletContext servletContext = session.getServletContext(); + + // set delegator + Delegator delegator = (Delegator) session.getAttribute("delegator"); + if (UtilValidate.isEmpty(delegator)) { + delegator = (Delegator) servletContext.getAttribute("delegator"); + } + if (UtilValidate.isEmpty(delegator)) { + delegator = (Delegator) request.getAttribute("delegator"); + } + if (UtilValidate.isNotEmpty(delegator)) { + appContext.put("delegator", delegator); + } + + // set JDBC connection + //appContext.put("OdaJDBCDriverPassInConnection", connection); + + // set dispatcher + LocalDispatcher dispatcher = (LocalDispatcher) session.getAttribute("dispatcher"); + if (UtilValidate.isEmpty(dispatcher)) { + dispatcher = (LocalDispatcher) servletContext.getAttribute("dispatcher"); + } + if (UtilValidate.isEmpty(dispatcher)) { + dispatcher = (LocalDispatcher) request.getAttribute("dispatcher"); + } + if (UtilValidate.isNotEmpty(dispatcher)) { + appContext.put("dispatcher", dispatcher); + } + + // set security + Security security = (Security) session.getAttribute("security"); + if (UtilValidate.isEmpty(security)) { + security = (Security) servletContext.getAttribute("security"); + } + if (UtilValidate.isEmpty(security)) { + security = (Security) request.getAttribute("security"); + } + if (UtilValidate.isNotEmpty(security)) { + appContext.put("security", security); + } + } +} diff --git a/birt/src/org/ofbiz/birt/container/BirtContainer.java b/birt/src/org/ofbiz/birt/container/BirtContainer.java new file mode 100644 index 000000000..a431f2a7e --- /dev/null +++ b/birt/src/org/ofbiz/birt/container/BirtContainer.java @@ -0,0 +1,109 @@ +/******************************************************************************* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + *******************************************************************************/ +package org.ofbiz.birt.container; + +import java.io.File; +import java.util.logging.Level; + +import org.eclipse.birt.core.exception.BirtException; +import org.eclipse.birt.core.framework.Platform; +import org.eclipse.birt.report.engine.api.EngineConfig; +import org.eclipse.birt.report.engine.api.IReportEngine; +import org.eclipse.birt.report.engine.api.IReportEngineFactory; +import org.ofbiz.base.container.Container; +import org.ofbiz.base.container.ContainerConfig; +import org.ofbiz.base.container.ContainerException; +import org.ofbiz.base.util.Debug; +import org.ofbiz.birt.BirtFactory; + +public class BirtContainer implements Container { + + public static final String module = BirtContainer.class.getName(); + + protected String configFile; + + private String name; + + public void init(String[] args, String name, String configFile) throws ContainerException { + this.name = name; + this.configFile = configFile; + } + + /** + * start container + */ + public boolean start() throws ContainerException { + Debug.logInfo("Start BIRT container", module); + + // make sure the subclass sets the config name + if (getName() == null) { + throw new ContainerException("Unknown container config name"); + } + // get the container config + ContainerConfig.Container cc = ContainerConfig.getContainer(getName(), configFile); + if (cc == null) { + throw new ContainerException("No " + getName() + " configuration found in container config!"); + } + + // create engine config + EngineConfig config = new EngineConfig(); + String ofbizHome = System.getProperty("ofbiz.home"); + config.setTempDir(ofbizHome + File.separatorChar + "runtime" + File.separatorChar + "tempfiles"); + config.setLogConfig(ofbizHome + File.separatorChar + "runtime" + File.separatorChar + "logs", Level.ALL); + + // startup platform + try { + Debug.logInfo("Startup BIRT platform", module); + Platform.startup(config); + } catch (BirtException e) { + throw new ContainerException(e); + } + + // create report engine + Debug.logInfo("Create factory object", module); + IReportEngineFactory factory = (IReportEngineFactory) Platform + .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY); + if (factory == null) { + throw new ContainerException("can not create birt engine factory"); + } + Debug.logInfo("Create report engine", module); + IReportEngine engine = factory.createReportEngine(config); + BirtFactory.setReportEngine(engine); + + // print supported formats + String[] supportedFormats = engine.getSupportedFormats(); + String formatList = null; + for (String supportedFormat : supportedFormats) { + if (formatList != null) { + formatList += ", " + supportedFormat; + } else { + formatList = supportedFormat; + } + } + Debug.logInfo("BIRT supported formats: " + formatList, module); + return false; + } + + public void stop() throws ContainerException { + } + + public String getName() { + return name; + } +} diff --git a/birt/src/org/ofbiz/birt/email/BirtEmailServices.java b/birt/src/org/ofbiz/birt/email/BirtEmailServices.java new file mode 100644 index 000000000..98f0a4d93 --- /dev/null +++ b/birt/src/org/ofbiz/birt/email/BirtEmailServices.java @@ -0,0 +1,254 @@ +/******************************************************************************* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + *******************************************************************************/ +package org.ofbiz.birt.email; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.StringWriter; +import java.sql.SQLException; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; + +import javax.xml.parsers.ParserConfigurationException; + +import javolution.util.FastList; +import javolution.util.FastMap; + +import org.apache.fop.apps.FOPException; +import org.eclipse.birt.report.engine.api.EngineException; +import org.eclipse.birt.report.engine.api.IReportEngine; +import org.eclipse.birt.report.engine.api.IReportRunnable; +import org.ofbiz.base.util.Debug; +import org.ofbiz.base.util.GeneralException; +import org.ofbiz.base.util.UtilGenerics; +import org.ofbiz.base.util.UtilMisc; +import org.ofbiz.base.util.UtilValidate; +import org.ofbiz.base.util.collections.MapStack; +import org.ofbiz.base.util.string.FlexibleStringExpander; +import org.ofbiz.birt.BirtFactory; +import org.ofbiz.birt.BirtWorker; +import org.ofbiz.common.email.NotificationServices; +import org.ofbiz.entity.Delegator; +import org.ofbiz.security.Security; +import org.ofbiz.service.DispatchContext; +import org.ofbiz.service.LocalDispatcher; +import org.ofbiz.service.ServiceUtil; +import org.ofbiz.widget.html.HtmlScreenRenderer; +import org.ofbiz.widget.screen.ScreenRenderer; +import org.xml.sax.SAXException; + +public class BirtEmailServices { + + public static final String module = BirtEmailServices.class.getName(); + + protected static final HtmlScreenRenderer htmlScreenRenderer = new HtmlScreenRenderer(); + + /** + * send birt mail + * + * @param ctx the dispatch context + * @param context the context + * @return returns the result of the service execution + */ + public static Map sendBirtMail(DispatchContext ctx, Map context) { + Map serviceContext = UtilMisc.makeMapWritable(context); + Delegator delegator = ctx.getDelegator(); + LocalDispatcher dispatcher = ctx.getDispatcher(); + Security security = ctx.getSecurity(); + + String webSiteId = (String) serviceContext.remove("webSiteId"); + String bodyText = (String) serviceContext.remove("bodyText"); + String bodyScreenUri = (String) serviceContext.remove("bodyScreenUri"); + String birtReportLocation = (String) serviceContext.remove("birtReportLocation"); + String attachmentName = (String) serviceContext.remove("attachmentName"); + Locale locale = (Locale) serviceContext.get("locale"); + Map bodyParameters = UtilGenerics.cast(serviceContext.remove("bodyParameters")); + Locale birtLocale = (Locale) serviceContext.remove(BirtWorker.BIRT_LOCALE); + Map birtParameters = UtilGenerics.cast(serviceContext.remove(BirtWorker.BIRT_PARAMETERS)); + String birtImageDirectory = (String) serviceContext.remove(BirtWorker.BIRT_IMAGE_DIRECTORY); + String birtContentType = (String) serviceContext.remove(BirtWorker.BIRT_CONTENT_TYPE); + if (bodyParameters == null) { + bodyParameters = MapStack.create(); + } + if (!bodyParameters.containsKey("locale")) { + bodyParameters.put("locale", locale); + } else { + locale = (Locale) bodyParameters.get("locale"); + } + String partyId = (String) bodyParameters.get("partyId"); + if (UtilValidate.isNotEmpty(webSiteId)) { + NotificationServices.setBaseUrl(ctx.getDelegator(), webSiteId, bodyParameters); + } + String contentType = (String) serviceContext.remove("contentType"); + + if (UtilValidate.isEmpty(attachmentName)) { + attachmentName = "Details.pdf"; + } + StringWriter bodyWriter = new StringWriter(); + + MapStack screenContext = MapStack.create(); + screenContext.put("locale", locale); + ScreenRenderer screens = new ScreenRenderer(bodyWriter, screenContext, htmlScreenRenderer); + screens.populateContextForService(ctx, bodyParameters); + screenContext.putAll(bodyParameters); + + if (bodyScreenUri != null) { + try { + screens.render(bodyScreenUri); + } catch (GeneralException e) { + String errMsg = "Error rendering screen for email: " + e.toString(); + Debug.logError(e, errMsg, module); + return ServiceUtil.returnError(errMsg); + } catch (IOException e) { + String errMsg = "Error I/O rendering screen for email: " + e.toString(); + Debug.logError(e, errMsg, module); + return ServiceUtil.returnError(errMsg); + } catch (SAXException e) { + String errMsg = "Error SAX rendering screen for email: " + e.toString(); + Debug.logError(e, errMsg, module); + return ServiceUtil.returnError(errMsg); + } catch (ParserConfigurationException e) { + String errMsg = "Error parser config rendering screen for email: " + e.toString(); + Debug.logError(e, errMsg, module); + return ServiceUtil.returnError(errMsg); + } + } + + boolean isMultiPart = false; + + // check if attachment screen location passed in + if (UtilValidate.isNotEmpty(birtReportLocation)) { + isMultiPart = true; + // start processing fo pdf attachment + try { + // create the output stream for the generation + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + + Map birtContext = FastMap.newInstance(); + if (birtLocale == null) { + birtLocale = locale; + } + birtContext.put(BirtWorker.BIRT_LOCALE, birtLocale); + if (birtParameters != null) { + birtContext.put(BirtWorker.BIRT_PARAMETERS, birtParameters); + } + if (birtImageDirectory != null) { + birtContext.put(BirtWorker.BIRT_IMAGE_DIRECTORY, birtImageDirectory); + } + if (birtContentType == null) { + birtContentType = "application/pdf"; + } + IReportEngine engine = BirtFactory.getReportEngine(); + HashMap appContext = UtilGenerics.cast(engine.getConfig().getAppContext()); + appContext.put("delegator", delegator); + appContext.put("dispatcher", dispatcher); + appContext.put("security", security); + + InputStream reportInputStream = BirtFactory.getReportInputStreamFromLocation(birtReportLocation); + IReportRunnable design = engine.openReportDesign(reportInputStream); + Debug.logInfo("Export report as content type:" + birtContentType, module); + BirtWorker.exportReport(design, context, birtContentType, baos); + baos.flush(); + baos.close(); + + // store in the list of maps for sendmail.... + List> bodyParts = FastList.newInstance(); + if (bodyText != null) { + bodyText = FlexibleStringExpander.expandString(bodyText, screenContext, locale); + bodyParts.add(UtilMisc.toMap("content", bodyText, "type", "text/html")); + } else { + bodyParts.add(UtilMisc.toMap("content", bodyWriter.toString(), "type", "text/html")); + } + bodyParts.add(UtilMisc.toMap("content", baos.toByteArray(), "type", "application/pdf", "filename", attachmentName)); + serviceContext.put("bodyParts", bodyParts); + } catch (GeneralException ge) { + String errMsg = "Error rendering " + birtContentType + " attachment for email: " + ge.toString(); + Debug.logError(ge, errMsg, module); + return ServiceUtil.returnError(errMsg); + } catch (IOException ie) { + String errMsg = "Error I/O rendering " + birtContentType + " attachment for email: " + ie.toString(); + Debug.logError(ie, errMsg, module); + return ServiceUtil.returnError(errMsg); + } catch (FOPException fe) { + String errMsg = "Error FOP rendering " + birtContentType + " attachment for email: " + fe.toString(); + Debug.logError(fe, errMsg, module); + return ServiceUtil.returnError(errMsg); + } catch (SAXException se) { + String errMsg = "Error SAX rendering " + birtContentType + " attachment for email: " + se.toString(); + Debug.logError(se, errMsg, module); + return ServiceUtil.returnError(errMsg); + } catch (ParserConfigurationException pe) { + String errMsg = "Error parser rendering " + birtContentType + " attachment for email: " + pe.toString(); + Debug.logError(pe, errMsg, module); + return ServiceUtil.returnError(errMsg); + } catch (EngineException ee) { + String errMsg = "Error rendering " + birtContentType + " attachment for email: " + ee.toString(); + Debug.logError(ee, errMsg, module); + return ServiceUtil.returnError(errMsg); + } catch (SQLException se) { + String errMsg = "Error SQL rendering " + birtContentType + " attachment for email: " + se.toString(); + Debug.logError(se, errMsg, module); + return ServiceUtil.returnError(errMsg); + } + } else { + isMultiPart = false; + // store body and type for single part message in the context. + if (bodyText != null) { + bodyText = FlexibleStringExpander.expandString(bodyText, screenContext, locale); + serviceContext.put("body", bodyText); + } else { + serviceContext.put("body", bodyWriter.toString()); + } + + // Only override the default contentType in case of plaintext, since other contentTypes may be multipart + // and would require specific handling. + if (contentType != null && contentType.equalsIgnoreCase("text/plain")) { + serviceContext.put("contentType", "text/plain"); + } else { + serviceContext.put("contentType", "text/html"); + } + } + + // also expand the subject at this point, just in case it has the FlexibleStringExpander syntax in it... + String subject = (String) serviceContext.remove("subject"); + subject = FlexibleStringExpander.expandString(subject, screenContext, locale); + serviceContext.put("subject", subject); + serviceContext.put("partyId", partyId); + + if (Debug.verboseOn()) Debug.logVerbose("sendMailFromScreen sendMail context: " + serviceContext, module); + + Map result = ServiceUtil.returnSuccess(); + try { + if (isMultiPart) { + dispatcher.runSync("sendMailMultiPart", serviceContext); + } else { + dispatcher.runSync("sendMail", serviceContext); + } + } catch (Exception e) { + String errMsg = "Error send email :" + e.toString(); + Debug.logError(e, errMsg, module); + return ServiceUtil.returnError(errMsg); + } + result.put("body", bodyWriter.toString()); + return result; + } +} diff --git a/birt/src/org/ofbiz/birt/report/context/BirtViewerAttributeBean.java b/birt/src/org/ofbiz/birt/report/context/BirtViewerAttributeBean.java new file mode 100644 index 000000000..dae651141 --- /dev/null +++ b/birt/src/org/ofbiz/birt/report/context/BirtViewerAttributeBean.java @@ -0,0 +1,68 @@ +/******************************************************************************* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + *******************************************************************************/ +package org.ofbiz.birt.report.context; + +import java.net.URL; + +import javax.servlet.http.HttpServletRequest; + +import org.eclipse.birt.report.context.ViewerAttributeBean; +import org.eclipse.birt.report.exception.ViewerException; +import org.eclipse.birt.report.resource.ResourceConstants; +import org.eclipse.birt.report.utility.DataUtil; +import org.eclipse.birt.report.utility.ParameterAccessor; +import org.ofbiz.base.location.FlexibleLocation; +import org.ofbiz.base.util.UtilValidate; + +public class BirtViewerAttributeBean extends ViewerAttributeBean { + + public final static String module = BirtViewerAttributeBean.class.getName(); + + public BirtViewerAttributeBean(HttpServletRequest request) { + super(request); + } + + @Override + protected void __init(HttpServletRequest request) throws Exception { + String reportParam = DataUtil.trimString( ParameterAccessor.getParameter( request, ParameterAccessor.PARAM_REPORT )); + if (reportParam.startsWith("component://")) { + ClassLoader loader = Thread.currentThread().getContextClassLoader(); + if (loader == null) { + loader = BirtViewerAttributeBean.class.getClassLoader(); + } + URL reportFileUrl = null; + reportFileUrl = FlexibleLocation.resolveLocation(reportParam, loader); + if (reportFileUrl == null) { + throw new IllegalArgumentException("Could not resolve location to URL: " + reportParam); + } + this.reportDesignName = reportFileUrl.getPath(); + } else { + this.reportDesignName = ParameterAccessor.getReport( request, null ); + } + + if (UtilValidate.isNotEmpty(this.reportDesignName)) { + this.reportDesignHandle = getDesignHandle( request ); + if ( this.reportDesignHandle == null ) + throw new ViewerException( + ResourceConstants.GENERAL_EXCEPTION_NO_REPORT_DESIGN ); + // Initialize report parameters. + __initParameters( request ); + } + } +} diff --git a/birt/src/org/ofbiz/birt/report/context/OFBizBirtContext.java b/birt/src/org/ofbiz/birt/report/context/OFBizBirtContext.java new file mode 100644 index 000000000..fa8e2f912 --- /dev/null +++ b/birt/src/org/ofbiz/birt/report/context/OFBizBirtContext.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + *******************************************************************************/ +package org.ofbiz.birt.report.context; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.eclipse.birt.report.IBirtConstants; +import org.eclipse.birt.report.context.BirtContext; +import org.eclipse.birt.report.context.ViewerAttributeBean; +import org.ofbiz.base.util.UtilValidate; + +public class OFBizBirtContext extends BirtContext { + + public final static String module = OFBizBirtContext.class.getName(); + + public OFBizBirtContext(HttpServletRequest request, + HttpServletResponse response) { + super(request, response); + } + + @Override + protected void __init() { + this.bean = (ViewerAttributeBean) request.getAttribute(IBirtConstants.ATTRIBUTE_BEAN); + if (UtilValidate.isEmpty(bean)) { + bean = new BirtViewerAttributeBean(request); + } + request.setAttribute(IBirtConstants.ATTRIBUTE_BEAN, bean); + } +} diff --git a/birt/src/org/ofbiz/birt/report/servlet/BirtEngineServlet.java b/birt/src/org/ofbiz/birt/report/servlet/BirtEngineServlet.java new file mode 100644 index 000000000..e5d13fde1 --- /dev/null +++ b/birt/src/org/ofbiz/birt/report/servlet/BirtEngineServlet.java @@ -0,0 +1,49 @@ +/******************************************************************************* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + *******************************************************************************/ +package org.ofbiz.birt.report.servlet; + +import java.util.Map; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.eclipse.birt.core.exception.BirtException; +import org.eclipse.birt.report.context.IContext; +import org.eclipse.birt.report.service.BirtReportServiceFactory; +import org.eclipse.birt.report.service.ReportEngineService; +import org.ofbiz.base.util.UtilGenerics; +import org.ofbiz.birt.BirtWorker; +import org.ofbiz.birt.report.context.OFBizBirtContext; + +@SuppressWarnings("serial") +public class BirtEngineServlet extends org.eclipse.birt.report.servlet.BirtEngineServlet { + + public final static String module = BirtEngineServlet.class.getName(); + + @Override + protected IContext __getContext(HttpServletRequest request, HttpServletResponse response) throws BirtException { + BirtReportServiceFactory.getReportService().setContext(getServletContext( ), null); + + // set app context + Map appContext = UtilGenerics.cast(ReportEngineService.getInstance().getEngineConfig().getAppContext()); + BirtWorker.setWebContextObjects(appContext, request, response); + + return new OFBizBirtContext( request, response ); + } +} diff --git a/birt/src/org/ofbiz/birt/report/servlet/BirtViewerServlet.java b/birt/src/org/ofbiz/birt/report/servlet/BirtViewerServlet.java new file mode 100644 index 000000000..5ff8f5080 --- /dev/null +++ b/birt/src/org/ofbiz/birt/report/servlet/BirtViewerServlet.java @@ -0,0 +1,50 @@ +/******************************************************************************* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + *******************************************************************************/ +package org.ofbiz.birt.report.servlet; + +import java.util.Map; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.eclipse.birt.core.exception.BirtException; +import org.eclipse.birt.report.context.IContext; +import org.eclipse.birt.report.service.BirtReportServiceFactory; +import org.eclipse.birt.report.service.ReportEngineService; +import org.eclipse.birt.report.servlet.ViewerServlet; +import org.ofbiz.base.util.UtilGenerics; +import org.ofbiz.birt.BirtWorker; +import org.ofbiz.birt.report.context.OFBizBirtContext; + +@SuppressWarnings("serial") +public class BirtViewerServlet extends ViewerServlet { + + public final static String module = BirtViewerServlet.class.getName(); + + @Override + protected IContext __getContext(HttpServletRequest request, HttpServletResponse response) throws BirtException { + BirtReportServiceFactory.getReportService().setContext(getServletContext( ), null); + + // set app context + Map appContext = UtilGenerics.cast(ReportEngineService.getInstance().getEngineConfig().getAppContext()); + BirtWorker.setWebContextObjects(appContext, request, response); + + return new OFBizBirtContext( request, response ); + } +} diff --git a/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java b/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java new file mode 100644 index 000000000..878ad6203 --- /dev/null +++ b/birt/src/org/ofbiz/birt/webapp/view/BirtViewHandler.java @@ -0,0 +1,138 @@ +/******************************************************************************* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + *******************************************************************************/ +package org.ofbiz.birt.webapp.view; + +import java.io.IOException; +import java.io.InputStream; +import java.sql.SQLException; +import java.util.Locale; +import java.util.Map; + +import javax.servlet.ServletContext; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.xml.parsers.ParserConfigurationException; + +import javolution.util.FastMap; + +import org.eclipse.birt.core.exception.BirtException; +import org.eclipse.birt.report.engine.api.IReportEngine; +import org.eclipse.birt.report.engine.api.IReportRunnable; +import org.ofbiz.base.util.Debug; +import org.ofbiz.base.util.GeneralException; +import org.ofbiz.base.util.UtilGenerics; +import org.ofbiz.base.util.UtilHttp; +import org.ofbiz.base.util.UtilProperties; +import org.ofbiz.base.util.UtilValidate; +import org.ofbiz.birt.BirtFactory; +import org.ofbiz.birt.BirtWorker; +import org.ofbiz.entity.GenericEntityException; +import org.ofbiz.webapp.view.ViewHandler; +import org.ofbiz.webapp.view.ViewHandlerException; +import org.xml.sax.SAXException; + +public class BirtViewHandler implements ViewHandler { + + public static final String module = BirtViewHandler.class.getName(); + + protected ServletContext servletContext = null; + + private String name = "birt"; + + public void init(ServletContext context) throws ViewHandlerException { + this.servletContext = context; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public void render(String name, String page, String info, + String contentType, String encoding, HttpServletRequest request, + HttpServletResponse response) throws ViewHandlerException { + + try { + IReportEngine engine = org.ofbiz.birt.BirtFactory.getReportEngine(); + // open report design + IReportRunnable design = null; + if (page.startsWith("component://")) { + InputStream reportInputStream = BirtFactory.getReportInputStreamFromLocation(page); + design = engine.openReportDesign(reportInputStream); + } else { + design = engine.openReportDesign(servletContext.getRealPath(page)); + } + + Map appContext = UtilGenerics.cast(engine.getConfig().getAppContext()); + BirtWorker.setWebContextObjects(appContext, request, response); + + Map context = FastMap.newInstance(); + // set parameters from request + Map parameters = UtilGenerics.cast(request.getAttribute(BirtWorker.BIRT_PARAMETERS)); + if (parameters != null) { + context.put(BirtWorker.BIRT_PARAMETERS, parameters); + } else { + context.put(BirtWorker.BIRT_PARAMETERS, UtilHttp.getParameterMap(request)); + } + // set locale from request + Locale locale = (Locale)request.getAttribute(BirtWorker.BIRT_LOCALE); + if (locale == null) { + locale = UtilHttp.getLocale(request); + } + + // set output file name + String outputFileName = (String) request.getAttribute(BirtWorker.BIRT_OUTPUT_FILE_NAME); + if (UtilValidate.isNotEmpty(outputFileName)) { + response.setHeader("Content-Disposition", "attachment; filename=" + outputFileName); + } + + // set override content type + String overrideContentType = (String) request.getAttribute(BirtWorker.BIRT_CONTENT_TYPE); + if (UtilValidate.isNotEmpty(overrideContentType)) { + contentType = overrideContentType; + } + + context.put(BirtWorker.BIRT_LOCALE, locale); + String birtImageDirectory = UtilProperties.getPropertyValue("birt", "birt.html.image.directory"); + context.put(BirtWorker.BIRT_IMAGE_DIRECTORY, birtImageDirectory); + BirtWorker.exportReport(design, context, contentType, response.getOutputStream()); + } catch (BirtException e) { + throw new ViewHandlerException("Birt Error create engine: " + e.toString(), e); + } catch (IOException e) { + throw new ViewHandlerException("Error in the response writer/output stream: " + e.toString(), e); + } catch (SQLException e) { + throw new ViewHandlerException("get connection error: " + e.toString(), e); + } catch (GenericEntityException e) { + throw new ViewHandlerException("generic entity error: " + e.toString(), e); + } catch (GeneralException e) { + throw new ViewHandlerException("general error: " + e.toString(), e); + } catch (SAXException se) { + String errMsg = "Error SAX rendering " + page + " view handler: " + se.toString(); + Debug.logError(se, errMsg, module); + throw new ViewHandlerException(errMsg, se); + } catch (ParserConfigurationException pe) { + String errMsg = "Error parser rendering " + page + " view handler: " + pe.toString(); + Debug.logError(pe, errMsg, module); + throw new ViewHandlerException(errMsg, pe); + } + } +} diff --git a/birt/webapp/accounting/WEB-INF/actions/reports/AcctgTransEntriesSearchResultsParameters.groovy b/birt/webapp/accounting/WEB-INF/actions/reports/AcctgTransEntriesSearchResultsParameters.groovy new file mode 100644 index 000000000..fac5d14d7 --- /dev/null +++ b/birt/webapp/accounting/WEB-INF/actions/reports/AcctgTransEntriesSearchResultsParameters.groovy @@ -0,0 +1,48 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. +*/ + +def module = "AcctgTransEntriesSearchResultsParameters.groovy"; + +try { + def birtParameters = [:]; + birtParameters.organizationPartyId = parameters.organizationPartyId; + birtParameters.produtId = parameters.produtId; + birtParameters.isPosted = parameters.isPosted; + birtParameters.invoiceId = parameters.invoiceId; + birtParameters.acctgTransId = parameters.acctgTransId; + birtParameters.glFiscalTypeId = parameters.glFiscalTypeId; + birtParameters.glAccountId = parameters.glAccountId; + birtParameters.shipmentId = parameters.shipmentId; + birtParameters.acctgTransTypeId = parameters.acctgTransTypeId; + birtParameters.workEffortId = parameters.workEffortId; + birtParameters.glJournalId = parameters.glJournalId; + birtParameters.partyId = parameters.partyId; + birtParameters.paymentId = parameters.paymentId; + if (parameters.fromDate) { + birtParameters.fromDate = Timestamp.valueOf(parameters.fromDate); + } + if (parameters.thruDate) { + birtParameters.thruDate = Timestamp.valueOf(parameters.thruDate); + } + birtParameters.userLoginId = userLogin.userLoginId; + request.setAttribute("birtParameters", birtParameters); +} catch (e) { + Debug.logError(e, module); +} +return "success"; \ No newline at end of file diff --git a/birt/webapp/accounting/WEB-INF/actions/reports/BalanceSheetParameters.groovy b/birt/webapp/accounting/WEB-INF/actions/reports/BalanceSheetParameters.groovy new file mode 100644 index 000000000..2e4d513aa --- /dev/null +++ b/birt/webapp/accounting/WEB-INF/actions/reports/BalanceSheetParameters.groovy @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +def module = "BalanceSheetParameters.groovy"; + +try { + def birtParameters = [:]; + if (parameters.fromDate) { + birtParameters.fromDate = Timestamp.valueOf(parameters.fromDate); + } + if (parameters.thruDate) { + birtParameters.thruDate = Timestamp.valueOf(parameters.thruDate); + } + birtParameters.glFiscalTypeId = parameters.glFiscalTypeId; + birtParameters.organizationPartyId = parameters.organizationPartyId; + birtParameters.userLoginId = userLogin.userLoginId; + request.setAttribute("birtParameters", birtParameters); +} catch (e) { + Debug.logError(e, module); +} +return "success"; \ No newline at end of file diff --git a/birt/webapp/accounting/WEB-INF/actions/reports/IncomeStatementParameters.groovy b/birt/webapp/accounting/WEB-INF/actions/reports/IncomeStatementParameters.groovy new file mode 100644 index 000000000..7a820804a --- /dev/null +++ b/birt/webapp/accounting/WEB-INF/actions/reports/IncomeStatementParameters.groovy @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +def module = "IncomeStatementParameters.groovy"; + +try { + def birtParameters = [:]; + if (parameters.fromDate) { + birtParameters.fromDate = Timestamp.valueOf(parameters.fromDate); + } + if (parameters.thruDate) { + birtParameters.thruDate = Timestamp.valueOf(parameters.thruDate); + } + birtParameters.glFiscalTypeId = parameters.glFiscalTypeId; + birtParameters.organizationPartyId = parameters.organizationPartyId; + birtParameters.userLoginId = userLogin.userLoginId; + request.setAttribute("birtParameters", birtParameters); +} catch (e) { + Debug.logError(e, module); +} +return "success"; \ No newline at end of file diff --git a/birt/webapp/accounting/WEB-INF/actions/reports/InvoiceAcctgTransEntryParameters.groovy b/birt/webapp/accounting/WEB-INF/actions/reports/InvoiceAcctgTransEntryParameters.groovy new file mode 100644 index 000000000..f32fc6ead --- /dev/null +++ b/birt/webapp/accounting/WEB-INF/actions/reports/InvoiceAcctgTransEntryParameters.groovy @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +def module = "InvoiceAcctgTransEntryParameters.groovy"; + +try { + birtParameters = [:]; + birtParameters.invoiceId = parameters.invoiceId; + birtParameters.userLoginId = userLogin.userLoginId; + request.setAttribute("birtParameters", birtParameters); +} catch (e) { + Debug.logError(e, module); +} +return "success"; \ No newline at end of file diff --git a/birt/webapp/accounting/WEB-INF/actions/reports/PaymentAcctgTransEntryParameters.groovy b/birt/webapp/accounting/WEB-INF/actions/reports/PaymentAcctgTransEntryParameters.groovy new file mode 100644 index 000000000..9b905d91a --- /dev/null +++ b/birt/webapp/accounting/WEB-INF/actions/reports/PaymentAcctgTransEntryParameters.groovy @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +def module = "PaymentAcctgTransEntryParameters.groovy"; + +try { + birtParameters = [:]; + birtParameters.paymentId = parameters.paymentId; + birtParameters.userLoginId = userLogin.userLoginId; + request.setAttribute("birtParameters", birtParameters); +} catch (e) { + Debug.logError(e, module); +} +return "success"; \ No newline at end of file diff --git a/birt/webapp/accounting/WEB-INF/actions/reports/PaymentReport.groovy b/birt/webapp/accounting/WEB-INF/actions/reports/PaymentReport.groovy new file mode 100644 index 000000000..ce1239dc8 --- /dev/null +++ b/birt/webapp/accounting/WEB-INF/actions/reports/PaymentReport.groovy @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import org.ofbiz.accounting.util.UtilAccounting +import org.ofbiz.base.util.*; +import org.ofbiz.entity.util.EntityUtil; +import org.ofbiz.entity.condition.EntityCondition; +import org.ofbiz.entity.condition.EntityOperator; +birtParameters = [:]; +birtParameters.partyIdTo = request.getParameter("partyIdTo"); +birtParameters.paymentId = request.getParameter("paymentId"); +birtParameters.paymentTypeId = request.getParameter("paymentTypeId"); +birtParameters.paymentId_op = request.getParameter("paymentId_op"); +birtParameters.paymentRefNum_ic = request.getParameter("paymentRefNum_ic"); +birtParameters.noConditionFind = request.getParameter("noConditionFind"); +birtParameters.contentType = request.getParameter("contentType"); +birtParameters.partyIdFrom = request.getParameter("partyIdFrom"); +birtParameters.paymentRefNum_op = request.getParameter("paymentRefNum_op"); +birtParameters.amount = request.getParameter("amount"); +birtParameters.statusId = request.getParameter("statusId"); +birtParameters.paymentGatewayResponseId = request.getParameter("paymentGatewayResponseId"); +birtParameters.paymentId_ic = request.getParameter("paymentId_ic"); +birtParameters.paymentRefNum = request.getParameter("paymentRefNum"); +birtParameters.comments_ic = request.getParameter("comments_ic"); +birtParameters.comments_op = request.getParameter("comments_op"); +birtParameters.comments = request.getParameter("comments"); +request.setAttribute("birtParameters", birtParameters); +return "success"; diff --git a/birt/webapp/accounting/WEB-INF/actions/reports/TrialBalanceParameters.groovy b/birt/webapp/accounting/WEB-INF/actions/reports/TrialBalanceParameters.groovy new file mode 100644 index 000000000..a3ce99d3a --- /dev/null +++ b/birt/webapp/accounting/WEB-INF/actions/reports/TrialBalanceParameters.groovy @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +def module = "TrialBalanceParameters.groovy"; + +try { + def birtParameters = [:]; + birtParameters.organizationPartyId = parameters.organizationPartyId; + birtParameters.customTimePeriodId = parameters.customTimePeriodId; + birtParameters.userLoginId = userLogin.userLoginId; + request.setAttribute("birtParameters", birtParameters); +} catch (e) { + Debug.logError(e, module); +} +return "success"; \ No newline at end of file diff --git a/birt/webapp/accounting/WEB-INF/controller.xml b/birt/webapp/accounting/WEB-INF/controller.xml new file mode 100644 index 000000000..e5489879c --- /dev/null +++ b/birt/webapp/accounting/WEB-INF/controller.xml @@ -0,0 +1,84 @@ + + + + + + + Extended Accounting Controller Configuration File + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/birt/webapp/accounting/WEB-INF/web.xml b/birt/webapp/accounting/WEB-INF/web.xml new file mode 100644 index 000000000..3781c1527 --- /dev/null +++ b/birt/webapp/accounting/WEB-INF/web.xml @@ -0,0 +1,105 @@ + + + + + + + Open For Business - Accounting Manager + Accounting Manager Module of the Open For Business Project + + + entityDelegatorName + default + The Name of the Entity Delegator to use, defined in entityengine.xml + + + localDispatcherName + accounting + A unique name used to identify/recognize the local dispatcher for the Service Engine + + + serviceReaderUrls + /WEB-INF/services.xml + Configuration File(s) For The Service Dispatcher + + + mainDecoratorLocation + component://accounting/widget/CommonScreens.xml + The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files. + + + partyDecoratorLocation + component://accounting/widget/CommonScreens.xml + The location of the CommonPartyDecorator screen to use for this webapp; referred to as a context variable in screen def XML files. + + + + ContextFilter + ContextFilter + org.ofbiz.webapp.control.ContextFilter + + disableContextSecurity + N + + + allowedPaths + /error:/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css + + + errorCode + 403 + + + redirectPath + /control/main + + + + ContextFilter + /* + + + org.ofbiz.webapp.control.ControlEventListener + org.ofbiz.webapp.control.LoginEventListener + + + + + ControlServlet + ControlServlet + Main Control Servlet + org.ofbiz.webapp.control.ControlServlet + 1 + + + ControlServlet + /control/* + + + + 60 + + + + index.jsp + index.html + index.htm + + diff --git a/birt/webapp/accounting/reports/AcctgTransEntriesSearchResultsInvoiceAndPayment.rptdesign b/birt/webapp/accounting/reports/AcctgTransEntriesSearchResultsInvoiceAndPayment.rptdesign new file mode 100644 index 000000000..a68839bb5 --- /dev/null +++ b/birt/webapp/accounting/reports/AcctgTransEntriesSearchResultsInvoiceAndPayment.rptdesign @@ -0,0 +1,2050 @@ + + + + Eclipse BIRT Designer Version 2.6.0.v20100531 Build <2.6.0.v20100609-1613> + in + + /templates/blank_report.gif + ltr + + + static + string + true + simple + text-box + + Unformatted + + + + static + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + dateTime + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + dateTime + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + + + + + + + + 1 + glFiscalTypeId + string + + + 2 + acctgTransTypeId + string + + + 3 + transactionDate + date-time + + + 4 + postedDate + date-time + + + 5 + transDescription + string + + + 6 + glJournalId + string + + + 7 + invoiceId + string + + + 8 + paymentId + string + + + 9 + glAccountId + string + + + 10 + debitCreditFlag + string + + + 11 + amount + decimal + + + 12 + currencyUomId + string + + + 13 + origAmount + decimal + + + 14 + origCurrencyUomId + string + + + 15 + glAccountTypeId + string + + + 16 + accountCode + string + + + 17 + accountName + string + + + 18 + glAccountClassId + string + + + 19 + partyId + string + + + + + glFiscalTypeId + glFiscalTypeId + + + acctgTransTypeId + acctgTransTypeId + + + transactionDate + transactionDate + + + postedDate + postedDate + + + transDescription + transDescription + + + glJournalId + glJournalId + + + invoiceId + invoiceId + + + paymentId + paymentId + + + glAccountId + glAccountId + + + debitCreditFlag + debitCreditFlag + + + amount + amount + + + currencyUomId + currencyUomId + + + origAmount + origAmount + + + origCurrencyUomId + origCurrencyUomId + + + glAccountTypeId + glAccountTypeId + + + accountCode + accountCode + + + accountName + accountName + + + glAccountClassId + glAccountClassId + + + partyId + partyId + + + + + + 1 + glFiscalTypeId + string + + + 2 + acctgTransTypeId + string + + + 3 + transactionDate + date-time + + + 4 + postedDate + date-time + + + 5 + transDescription + string + + + 6 + glJournalId + string + + + 7 + invoiceId + string + + + 8 + paymentId + string + + + 9 + glAccountId + string + + + 10 + debitCreditFlag + string + + + 11 + amount + decimal + + + 12 + currencyUomId + string + + + 13 + origAmount + decimal + + + 14 + origCurrencyUomId + string + + + 15 + glAccountTypeId + string + + + 16 + accountCode + string + + + 17 + accountName + string + + + 18 + glAccountClassId + string + + + 19 + partyId + string + + + + OFBiz + + = totalRow) return false; + +var acctgTransAndEntry = acctgTransAndEntries.get(countOfRow); +row["glFiscalTypeId"] = acctgTransAndEntry.get("glFiscalTypeId"); +row["acctgTransTypeId"] = acctgTransAndEntry.get("acctgTransTypeId"); +row["transactionDate"] = acctgTransAndEntry.get("transactionDate"); +row["postedDate"] = acctgTransAndEntry.get("postedDate"); +row["transDescription"] = acctgTransAndEntry.get("transDescription"); +row["glJournalId"] = acctgTransAndEntry.get("glJournalId"); +row["invoiceId"] = acctgTransAndEntry.get("invoiceId"); +row["paymentId"] = acctgTransAndEntry.get("paymentId"); +row["glAccountId"] = acctgTransAndEntry.get("glAccountId"); +row["debitCreditFlag"] = acctgTransAndEntry.get("debitCreditFlag"); +row["amount"] = acctgTransAndEntry.get("amount"); +row["currencyUomId"] = acctgTransAndEntry.get("currencyUomId"); +row["origAmount"] = acctgTransAndEntry.get("origAmount"); +row["origCurrencyUomId"] = acctgTransAndEntry.get("origCurrencyUomId"); +row["glAccountTypeId"] = acctgTransAndEntry.get("glAccountTypeId"); +row["accountCode"] = acctgTransAndEntry.get("accountCode"); +row["accountName"] = acctgTransAndEntry.get("accountName"); +row["glAccountClassId"] = acctgTransAndEntry.get("glAccountClassId"); +row["partyId"] = acctgTransAndEntry.get("partyId"); + +countOfRow ++; +return true;]]> + + + + + 1 + partyId + string + + + 2 + partyName + string + + + 3 + address1 + string + + + 4 + address2 + string + + + 5 + city + string + + + 6 + stateProvinceAbbr + string + + + 7 + postalCode + string + + + 8 + countryName + string + + + 9 + sendingPartyTaxId + string + + + 10 + phoneCountryCode + string + + + 11 + phoneAreaCode + string + + + 12 + phoneContactNumber + string + + + 13 + emailAddress + string + + + 14 + webSiteAddress + string + + + 15 + eftAccountBankName + string + + + 16 + eftAccountRoutingNumber + string + + + 17 + eftAccountAccountNumber + string + + + + + partyId + partyId + + + partyName + partyName + + + address1 + address1 + + + address2 + address2 + + + city + city + + + stateProvinceAbbr + stateProvinceAbbr + + + postalCode + postalCode + + + countryName + countryName + + + sendingPartyTaxId + sendingPartyTaxId + + + phoneCountryCode + phoneCountryCode + + + phoneAreaCode + phoneAreaCode + + + phoneContactNumber + phoneContactNumber + + + emailAddress + emailAddress + + + webSiteAddress + webSiteAddress + + + eftAccountBankName + eftAccountBankName + + + eftAccountRoutingNumber + eftAccountRoutingNumber + + + eftAccountAccountNumber + eftAccountAccountNumber + + + + + + 1 + partyId + string + + + 2 + partyName + string + + + 3 + address1 + string + + + 4 + address2 + string + + + 5 + city + string + + + 6 + stateProvinceAbbr + string + + + 7 + postalCode + string + + + 8 + countryName + string + + + 9 + sendingPartyTaxId + string + + + 10 + phoneCountryCode + string + + + 11 + phoneAreaCode + string + + + 12 + phoneContactNumber + string + + + 13 + emailAddress + string + + + 14 + webSiteAddress + string + + + 15 + eftAccountBankName + string + + + 16 + eftAccountRoutingNumber + string + + + 17 + eftAccountAccountNumber + string + + + + OFBiz + + = totalRows) return false; + +var context = FastMap.newInstance(); +var parameters = FastMap.newInstance(); +context.put("partyId", organizationPartyId); +context.put("nowTimestamp", UtilDateTime.nowTimestamp()); +context.put("locale", reportContext.getLocale()); +context.put("parameters", parameters); +context.put("delegator", delegator); +context.put("dispatcher", dispatcher); +GroovyUtil.runScriptAtLocation("component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy", context); +var postalAddress = context.get("postalAddress"); +var country = postalAddress.getRelatedOne("CountryGeo", false); +var phone = context.get("phone"); +var email = context.get("email"); +var webSite = context.get("website"); +var eftAccount = context.get("eftAccount"); + +row["partyId"] = organizationPartyId; +row["partyName"] = context.get("companyName"); +row["sendingPartyTaxId"] = context.get("sendingPartyTaxId"); +row["stateProvinceAbbr"] = context.get("stateProvinceAbbr"); + +if (postalAddress) { + row["address1"] = postalAddress.get("address1"); + row["address2"] = postalAddress.get("address2"); + row["city"] = postalAddress.get("city"); + row["postalCode"] = postalAddress.get("postalCode"); +} + +if (country) { + row["countryName"] = country.get("geoName"); +} + +if (phone) { + row["phoneCountryCode"] = phone.get("countryCode"); + row["phoneAreaCode"] = phone.get("areaCode"); + row["phoneContactNumber"] = phone.get("contactNumber"); +} + +if (email) { + row["emailAddress"] = email.get("infoString"); +} + +if (webSite) { + row["webSiteAddress"] = webSite.get("infoString"); + row["eftAccountBankName"] = webSite.get("bankName"); + row["eftAccountRoutingNumber"] = webSite.get("routingNumber"); + row["eftAccountAccountName"] = webSite.get("accountName"); +} + +countOfRow ++; +return true; +]]> + + + + + + + + + + landscape + 2.9in + + + 10.363636363636363in + + 0.797979797979798in + normal + left + + + 4.393939393939394in + + + 2.585858585858586in + 10pt + bold + right + + + 2.585858585858586in + + + + 2 + 1 + left + + + url + false + + + + + + + + 2 + 1 + + nowrap + Organization + + + partyName + partyName + dataSetRow["partyName"] + string + + + partyName + + + + + + + + + nowrap + Organization + + + address1 + address1 + dataSetRow["address1"] + string + + + address1 + + + + + nowrap + Organization + + + address2 + address2 + dataSetRow["address2"] + string + + + address2 + + + + + + + + 2 + 1 + + Organization + + + partyId + dataSetRow["partyId"] + string + + + partyName + dataSetRow["partyName"] + string + + + address1 + dataSetRow["address1"] + string + + + address2 + dataSetRow["address2"] + string + + + city + dataSetRow["city"] + string + + + stateProvinceAbbr + dataSetRow["stateProvinceAbbr"] + string + + + postalCode + dataSetRow["postalCode"] + string + + + countryName + dataSetRow["countryName"] + string + + + sendingPartyTaxId + dataSetRow["sendingPartyTaxId"] + string + + + phoneCountryCode + dataSetRow["phoneCountryCode"] + string + + + phoneAreaCode + dataSetRow["phoneAreaCode"] + string + + + phoneContactNumber + dataSetRow["phoneContactNumber"] + string + + + emailAddress + dataSetRow["emailAddress"] + string + + + webSiteAddress + dataSetRow["webSiteAddress"] + string + + + eftAccountBankName + dataSetRow["eftAccountBankName"] + string + + + eftAccountRoutingNumber + dataSetRow["eftAccountRoutingNumber"] + string + + + eftAccountAccountNumber + dataSetRow["eftAccountAccountNumber"] + string + + + + + + + + + + + + + + + left + nowrap + Organization + + + sendingPartyTaxId + sendingPartyTaxId + dataSetRow["sendingPartyTaxId"] + string + + + sendingPartyTaxId + + + + + + + + + + + + left + nowrap + Organization + + + emailAddress + emailAddress + dataSetRow["emailAddress"] + string + + + emailAddress + + + + + + + + 4 + 1 + + + + + + + + 0.4583333333333333in + 10.354166666666666in + + 4.041666666666667in + + + 0.71875in + + + 0.3541666666666667in + + + 0.6875in + + + 4.552083333333333in + + + 0.4583333333333333in + + + + right + page-number + + + + + center + plain + + + + + right + + left + total-page + + + + right + + + + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + 10.464646464646465in + AcctgTransAndEntries + + + glFiscalTypeId + dataSetRow["glFiscalTypeId"] + string + + + acctgTransTypeId + dataSetRow["acctgTransTypeId"] + string + + + transactionDate + dataSetRow["transactionDate"] + date-time + + + postedDate + dataSetRow["postedDate"] + date-time + + + transDescription + dataSetRow["transDescription"] + string + + + glJournalId + dataSetRow["glJournalId"] + string + + + invoiceId + dataSetRow["invoiceId"] + string + + + paymentId + dataSetRow["paymentId"] + string + + + glAccountId + dataSetRow["glAccountId"] + string + + + debitCreditFlag + dataSetRow["debitCreditFlag"] + string + + + amount + dataSetRow["amount"] + decimal + + + currencyUomId + dataSetRow["currencyUomId"] + string + + + origAmount + dataSetRow["origAmount"] + decimal + + + origCurrencyUomId + dataSetRow["origCurrencyUomId"] + string + + + glAccountTypeId + dataSetRow["glAccountTypeId"] + string + + + accountCode + dataSetRow["accountCode"] + string + + + accountName + dataSetRow["accountName"] + string + + + glAccountClassId + dataSetRow["glAccountClassId"] + string + + + partyId + partyId + dataSetRow["partyId"] + string + + + + 0.8181818181818182in + + + 0.7272727272727273in + + + 2.7676767676767677in + + + 0.6262626262626263in + center + + + 0.5959595959595959in + center + + + 1.7575757575757576in + center + + + 0.8181818181818182in + center + + + 0.9393939393939394in + center + + + 0.696969696969697in + center + + + 0.696969696969697in + center + +
+ + #BFBFBF + bold + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + center + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + +
+ + glAccountClassId + none + asc + row["glAccountClassId"] + + row["glAccountClassId"] + + true + false + auto + auto + auto +
+ + + 3 + 1 + + 8pt + bold + + glAccountClassId + + + + + + + + + + +
+
+ + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + 6pt + + Custom + d MMMM yyyy + en + + center + nowrap + transactionDate + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + 6pt + accountCode + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + 6pt + accountName + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + 6pt + nowrap + invoiceId + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + 6pt + nowrap + paymentId + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + 6pt + nowrap + + partyId + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + 6pt + origCurrencyUomId + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + cursive + 6pt + + + all + row["origCurrencyUomId"].equals(row["currencyUomId"]) + + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + 6pt + + Currency + #,##0.00{RoundingMode=HALF_UP} + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + 6pt + + Currency + #,##0.00{RoundingMode=HALF_UP} + + + + + + +
+ + middle + + + + + + 6 + 1 + + "Bitstream Charter" + 6pt + bold + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + 6pt + bold + underline + + Currency + #,##0.00{RoundingMode=HALF_UP} + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + 6pt + bold + underline + + Currency + #,##0.00{RoundingMode=HALF_UP} + + + + + +
+
+ + 9.727272727272727in + + 1.2323232323232323in + + + 1.4747474747474747in + + + 1.7777777777777777in + + + 1.5555555555555556in + + + 1.9191919191919191in + + + 1.7676767676767677in + + + + 0.5in + + right + auto + + + + + 0.5in + + center + auto + + + + + 0.5in + + right + auto + + + + + 0.5in + + center + auto + + + + + 0.5in + + right + auto + + + + + 0.5in + + center + auto + + + + + + + 0.5in + + right + + auto + + + + + 0.5in + + center + auto + + + + + 0.5in + + right + + auto + + + + + 0.5in + + center + auto + + + + + 0.5in + + right + + auto + + + + + 0.5in + + center + auto + + + + + + +
diff --git a/birt/webapp/accounting/reports/BalanceSheet.rptdesign b/birt/webapp/accounting/reports/BalanceSheet.rptdesign new file mode 100644 index 000000000..2b062c2f5 --- /dev/null +++ b/birt/webapp/accounting/reports/BalanceSheet.rptdesign @@ -0,0 +1,1281 @@ + + + + Eclipse BIRT Designer Version 2.6.0.v20100531 Build <2.6.0.v20100609-1613> + in + + /templates/blank_report.gif + ltr + + + static + false + dateTime + true + simple + text-box + + Unformatted + + + + static + false + dateTime + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + string + true + simple + text-box + + Unformatted + + + + + + + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + balance + decimal + + + + + glAccountId + Account ID + + + accountCode + Account Code + + + accountName + Account Name + + + balance + Balance + + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + balance + decimal + + + + OFBiz + + = totalRow) return false; + +var assetAccountBalance = assetAccountBalanceList.get(countOfRow); +row["glAccountId"] = assetAccountBalance.get("glAccountId"); +row["accountCode"] = assetAccountBalance.get("accountCode"); +row["accountName"] = assetAccountBalance.get("accountName"); +row["balance"] = assetAccountBalance.get("balance"); + +countOfRow ++; +return true;]]> + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + balance + decimal + + + + + glAccountId + Account ID + + + accountCode + accountCode + + + accountName + Account Name + + + balance + Balance + + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + balance + decimal + + + + OFBiz + + = totalRow) return false; + +var liabilityAccountBalance = liabilityAccountBalanceList.get(countOfRow); +row["glAccountId"] = liabilityAccountBalance.get("glAccountId"); +row["accountCode"] = liabilityAccountBalance.get("accountCode"); +row["accountName"] = liabilityAccountBalance.get("accountName"); +row["balance"] = liabilityAccountBalance.get("balance"); + +countOfRow ++; +return true;]]> + + + + + 0 + glAccountId + string + + + 1 + accountCode + string + + + 2 + accountName + string + + + 3 + balance + decimal + + + + + glAccountId + Account ID + + + accountCode + Account Code + + + accountName + Account Name + + + balance + Balance + + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + balance + decimal + + + + OFBiz + + = totalRow) return false; + +var equityAccountBalance = equityAccountBalanceList.get(countOfRow); +row["glAccountId"] = equityAccountBalance.get("glAccountId"); +row["accountCode"] = equityAccountBalance.get("accountCode"); +row["accountName"] = equityAccountBalance.get("accountName"); +row["balance"] = equityAccountBalance.get("balance"); + +countOfRow ++; +return true;]]> + + + + + 1 + totalName + string + + + 2 + balance + decimal + + + + + totalName + Total Name + + + balance + Balance + + + + + + 1 + totalName + string + + + 2 + balance + decimal + + + + OFBiz + + = totalRow) return false; + +var balanceTotal = balanceTotalList.get(countOfRow); +row["totalName"] = balanceTotal.get("totalName"); +row["balance"] = balanceTotal.get("balance"); + +countOfRow ++; +return true;]]> + + + + + + + + + + 2.5in + + + #FFFFFF + 2.3434343434343434in + 7.875in + + 1.28125in + bold + left + + + 2.6770833333333335in + + + 1.2395833333333333in + bold + left + + + 2.6770833333333335in + + + + 2 + 1 + left + + + url + false + + + + right + + + + + if (userLogin != null ) {partyNameView.getString("firstName") + "&nbsp;&nbsp;&nbsp;&nbsp;" + partyNameView.getString("lastName")} + html + + + + + 0.2604166666666667in + + + + right + + + + + dateFormatter.format(UtilDateTime.nowTimestamp()) + html + + + + + 0.22916666666666666in + + right + + + + + dateFormatter.format(thruDate) + html + + + + + + + + delegator.findOne("PartyAcctgPreference", UtilMisc.toMap("partyId", organizationPartyId), false).getRelatedOne("Uom", false).getString("description") + html + + + + + 0.21875in + + right + + + + + delegator.findOne("GlFiscalType", UtilMisc.toMap("glFiscalTypeId", glFiscalTypeId), false).getString("description") + html + + + + + + + 0.4479166666666667in + + 4 + 1 + right + +

" + uiLabelMap.get("AccountingBalanceSheet") + "

";]]>
+ html +
+
+
+
+
+ + + 7.9375in + + 2.8229166666666665in + + + 0.8333333333333334in + + + 0.3645833333333333in + + + 0.7395833333333334in + + + 3.1770833333333335in + + + + + + right + page-number + + + + + center + plain + + + + + right + + left + total-page + + + + right + + + + +
+
+ + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + 7.9393939393939394in + Asset + + + accountId + Account ID + dataSetRow["glAccountId"] + string + + + accountCode + Account Code + dataSetRow["accountCode"] + string + + + accountName + Account Name + dataSetRow["accountName"] + string + + + balance + Balance + dataSetRow["balance"] + string + + + AssetAblanceTotal + float + SUM + + + Expression + row["balance"] + + + + + + 1.0520833333333333in + + + 4.888888888888889in + + + 1.6767676767676767in + +
+ + #BFBFBF + bold + center + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + +
+ + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountCode + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountName + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + right + balance + + + + +
+ + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + 7.9393939393939394in + Liability + + + glAccountId + Account ID + dataSetRow["glAccountId"] + string + + + accountCode + accountCode + dataSetRow["accountCode"] + string + + + accountName + Account Name + dataSetRow["accountName"] + string + + + balance + Balance + dataSetRow["balance"] + decimal + + + LiabilityBalanceTotal + float + SUM + + + Expression + row["balance"] + + + + + + 1.1515151515151516in + + + 5.03030303030303in + + + 1.7575757575757576in + +
+ + #BFBFBF + bold + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + center + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + +
+ + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountCode + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountName + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + Currency + #,##0.00 + + right + balance + + + + +
+ + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + 7.9393939393939394in + Equity + + + glAccountId + Account ID + dataSetRow["glAccountId"] + string + + + accountCode + Account Code + dataSetRow["accountCode"] + string + + + accountName + Account Name + dataSetRow["accountName"] + string + + + balance + Balance + dataSetRow["balance"] + decimal + + + EquityBalanceTotal + float + SUM + + + Expression + row["balance"] + + + + + + 1.1414141414141414in + + + 5.02020202020202in + + + 1.7777777777777777in + +
+ + #BFBFBF + bold + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + center + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + +
+ + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountCode + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountName + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + Currency + #,##0.00 + + right + balance + + + + +
+ + + 7.959595959595959in + BalanceTotal + + + totalName + Total Name + dataSetRow["totalName"] + string + + + balance + Balance + dataSetRow["balance"] + decimal + + + + 2.9494949494949494in + + + 5.01010101010101in + + + + + + + totalName + + + + + + Currency + #,##0.00 + + balance + + + + +
+ + + + +
+
+ +
diff --git a/birt/webapp/accounting/reports/IncomeStatement.rptdesign b/birt/webapp/accounting/reports/IncomeStatement.rptdesign new file mode 100644 index 000000000..c6b814eb8 --- /dev/null +++ b/birt/webapp/accounting/reports/IncomeStatement.rptdesign @@ -0,0 +1,1190 @@ + + + + Eclipse BIRT Designer Version 2.6.0.v20100531 Build <2.6.0.v20100609-1613> + in + + /templates/blank_report.gif + ltr + + + + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + balance + decimal + + + + + glAccountId + Account ID + + + accountCode + Account Code + + + accountName + Account Name + + + balance + Balance + + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + balance + decimal + + + + OFBiz + + = totalRow) return false; + +var revenueAccountBalance = revenueAccountBalanceList.get(countOfRow); +row["glAccountId"] = revenueAccountBalance.get("glAccountId"); +row["accountCode"] = revenueAccountBalance.get("accountCode"); +row["accountName"] = revenueAccountBalance.get("accountName"); +row["balance"] = revenueAccountBalance.get("balance"); + +countOfRow ++; +return true;]]> + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + balance + decimal + + + + + glAccountId + Account ID + + + accountCode + Account Code + + + accountName + Account Name + + + balance + Balance + + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + balance + decimal + + + + OFBiz + + = totalRow) return false; + +var expenseAccountBalance = expenseAccountBalanceList.get(countOfRow); +row["glAccountId"] = expenseAccountBalance.get("glAccountId"); +row["accountCode"] = expenseAccountBalance.get("accountCode"); +row["accountName"] = expenseAccountBalance.get("accountName"); +row["balance"] = expenseAccountBalance.get("balance"); + +countOfRow ++; +return true;]]> + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + balance + decimal + + + + + glAccountId + Account ID + + + accountCode + Account Code + + + accountName + Account Name + + + balance + Balance + + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + balance + decimal + + + + OFBiz + + = totalRow) return false; + +var incomeAccountBalance = incomeAccountBalanceList.get(countOfRow); +row["glAccountId"] = incomeAccountBalance.get("glAccountId"); +row["accountCode"] = incomeAccountBalance.get("accountCode"); +row["accountName"] = incomeAccountBalance.get("accountName"); +row["balance"] = incomeAccountBalance.get("balance"); + +countOfRow ++; +return true;]]> + + + + + 1 + totalName + string + + + 2 + balance + decimal + + + + + totalName + Total Name + + + balance + Balance + + + + + + 1 + totalName + string + + + 2 + balance + decimal + + + + OFBiz + + = totalRow) return false; + +var balanceTotal = balanceTotalList.get(countOfRow); +row["totalName"] = balanceTotal.get("totalName"); +row["balance"] = balanceTotal.get("balance"); + +countOfRow ++; +return true;]]> + + + + + + + + + + 0.25in + 2.6in + + + 2.6666666666666665in + 7.84375in + + 1.2916666666666667in + bold + right + + + 2.6354166666666665in + + + 1.9583333333333333in + bold + right + + + 1.9583333333333333in + + + + 2 + 1 + left + + + url + false + + + + + + + + if (userLogin != null ) {partyNameView.getString("firstName") + "&nbsp;&nbsp;&nbsp;&nbsp;" + partyNameView.getString("lastName")} + html + + + + + + + + + + + + dateFormatter.format(UtilDateTime.nowTimestamp()) + html + + + + + + + + + + dateFormatter.format(fromDate) + html + + + + + + + + delegator.findOne("PartyAcctgPreference", UtilMisc.toMap("partyId", organizationPartyId), false).getRelatedOne("Uom", false).getString("description") + html + + + + + + + + + + dateFormatter.format(thruDate) + html + + + + + + + 0.21212121212121213in + + + + + + delegator.findOne("GlFiscalType", UtilMisc.toMap("glFiscalTypeId", glFiscalTypeId), false).getString("description") + html + + + + + + + + 4 + 1 + +

" + uiLabelMap.get("AccountingIncomeStatement") + "

";]]>
+ html +
+
+
+
+
+ + + 7.9375in + + 2.8229166666666665in + + + 0.8333333333333334in + + + 0.3645833333333333in + + + 0.7395833333333334in + + + 3.1770833333333335in + + + + + + right + page-number + + + + + center + plain + + + + + right + + left + total-page + + + + right + + + + +
+
+ + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + 7.947916666666667in + Revenue + + + glAccountId + Account ID + dataSetRow["glAccountId"] + string + + + accountCode + Account Code + dataSetRow["accountCode"] + string + + + accountName + Account Name + dataSetRow["accountName"] + string + + + balance + Balance + dataSetRow["balance"] + decimal + + + RevenueTotalBalance + float + SUM + + + Expression + row["balance"] + + + + + + 1.3020833333333333in + + + 4.71875in + + + 1.7916666666666667in + +
+ + #BFBFBF + bold + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + center + + + + + + + + + + +
+ + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountCode + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountName + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + Currency + #,##0.00 + + right + balance + + + + +
+ + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + 7.947916666666667in + Expense + + + glAccountId + Account ID + dataSetRow["glAccountId"] + string + + + accountCode + Account Code + dataSetRow["accountCode"] + string + + + accountName + Account Name + dataSetRow["accountName"] + string + + + balance + Balance + dataSetRow["balance"] + decimal + + + ExpenseTotalBalance + float + SUM + + + Expression + row["balance"] + + + + + + 1.3125in + + + 4.802083333333333in + + + 1.7916666666666667in + +
+ + #BFBFBF + bold + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + center + + + + + + + + + + +
+ + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountCode + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountName + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + Currency + #,##0.00 + + right + balance + + + + +
+ + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + 7.947916666666667in + Income + + + glAccountId + Account ID + dataSetRow["glAccountId"] + string + + + accountCode + Account Code + dataSetRow["accountCode"] + string + + + accountName + Account Name + dataSetRow["accountName"] + string + + + balance + Balance + dataSetRow["balance"] + decimal + + + IncomeTotalBalance + float + SUM + + + Expression + row["balance"] + + + + + + 1.28125in + + + 4.75in + + + 1.78125in + +
+ + #BFBFBF + bold + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + center + + + + + + + + + + +
+ + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountCode + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountName + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + Currency + #,##0.00 + + right + balance + + + + +
+ + + 7.959595959595959in + BalanceTotal + + + totalName + Total Name + dataSetRow["totalName"] + string + + + balance + Balance + dataSetRow["balance"] + decimal + + + + 2.8585858585858586in + + + 5.101010101010101in + + + + + + + totalName + + + + + + Currency + #,##0.00 + + balance + + + + +
+ + + + +
+
+ +
diff --git a/birt/webapp/accounting/reports/InvoiceAcctgTransEntry.rptdesign b/birt/webapp/accounting/reports/InvoiceAcctgTransEntry.rptdesign new file mode 100644 index 000000000..6c95fe07d --- /dev/null +++ b/birt/webapp/accounting/reports/InvoiceAcctgTransEntry.rptdesign @@ -0,0 +1,1447 @@ + + + + Eclipse BIRT Designer Version 2.6.0.v20100531 Build <2.6.0.v20100609-1613> + in + + /templates/blank_report.gif + ltr + + + static + string + true + simple + text-box + + Unformatted + + + + static + string + true + simple + text-box + + Unformatted + + + + + + + + + + + 0 + glFiscalTypeId + string + + + 1 + acctgTransTypeId + string + + + 2 + transactionDate + date-time + + + 3 + postedDate + date-time + + + 4 + transDescription + string + + + 5 + glJournalId + string + + + 6 + invoiceId + string + + + 7 + paymentId + string + + + 8 + glAccountId + string + + + 9 + debitCreditFlag + string + + + 10 + amount + decimal + + + 11 + currencyUomId + string + + + 12 + origAmount + decimal + + + 13 + origCurrencyUomId + string + + + 14 + glAccountTypeId + string + + + 15 + accountCode + string + + + 16 + accountName + string + + + 17 + glAccountClassId + string + + + + + glFiscalTypeId + glFiscalTypeId + + + acctgTransTypeId + acctgTransTypeId + + + transactionDate + transactionDate + + + postedDate + postedDate + + + transDescription + transDescription + + + glJournalId + glJournalId + + + invoiceId + invoiceId + + + paymentId + paymentId + + + glAccountId + glAccountId + + + debitCreditFlag + debitCreditFlag + + + amount + amount + + + currencyUomId + currencyUomId + + + origAmount + origAmount + + + origCurrencyUomId + origCurrencyUomId + + + glAccountTypeId + glAccountTypeId + + + accountCode + accountCode + + + accountName + accountName + + + glAccountClassId + glAccountClassId + + + + + + 1 + glFiscalTypeId + string + + + 2 + acctgTransTypeId + string + + + 3 + transactionDate + date-time + + + 4 + postedDate + date-time + + + 5 + transDescription + string + + + 6 + glJournalId + string + + + 7 + invoiceId + string + + + 8 + paymentId + string + + + 9 + glAccountId + string + + + 10 + debitCreditFlag + string + + + 11 + amount + decimal + + + 12 + currencyUomId + string + + + 13 + origAmount + decimal + + + 14 + origCurrencyUomId + string + + + 15 + glAccountTypeId + string + + + 16 + accountCode + string + + + 17 + accountName + string + + + 18 + glAccountClassId + string + + + + OFBiz + + = totalRow) return false; + +var acctgTransAndEntry = acctgTransAndEntries.get(countOfRow); +row["glFiscalTypeId"] = acctgTransAndEntry.get("glFiscalTypeId"); +row["acctgTransTypeId"] = acctgTransAndEntry.get("acctgTransTypeId"); +row["transactionDate"] = acctgTransAndEntry.get("transactionDate"); +row["postedDate"] = acctgTransAndEntry.get("postedDate"); +row["transDescription"] = acctgTransAndEntry.get("transDescription"); +row["glJournalId"] = acctgTransAndEntry.get("glJournalId"); +row["invoiceId"] = acctgTransAndEntry.get("invoiceId"); +row["paymentId"] = acctgTransAndEntry.get("paymentId"); +row["glAccountId"] = acctgTransAndEntry.get("glAccountId"); +row["debitCreditFlag"] = acctgTransAndEntry.get("debitCreditFlag"); +row["amount"] = acctgTransAndEntry.get("amount"); +row["currencyUomId"] = acctgTransAndEntry.get("currencyUomId"); +row["origAmount"] = acctgTransAndEntry.get("origAmount"); +row["origCurrencyUomId"] = acctgTransAndEntry.get("origCurrencyUomId"); +row["glAccountTypeId"] = acctgTransAndEntry.get("glAccountTypeId"); +row["accountCode"] = acctgTransAndEntry.get("accountCode"); +row["accountName"] = acctgTransAndEntry.get("accountName"); +row["glAccountClassId"] = acctgTransAndEntry.get("glAccountClassId"); + +countOfRow ++; +return true;]]> + + + + + 1 + invoiceId + string + + + 2 + description + string + + + 3 + invoiceTypeDescription + string + + + 4 + statusDescription + string + + + 5 + invoiceDate + date-time + + + 6 + partyId + string + + + 7 + partyName + string + + + + + invoiceId + invoiceId + + + description + description + + + invoiceTypeDescription + invoiceTypeDescription + + + statusDescription + statusDescription + + + invoiceDate + invoiceDate + + + partyId + partyId + + + partyName + partyName + + + + + + 1 + invoiceId + string + + + 2 + description + string + + + 3 + invoiceTypeDescription + string + + + 4 + statusDescription + string + + + 5 + invoiceDate + date-time + + + 6 + partyId + string + + + 7 + partyName + string + + + + OFBiz + + = 1) return false; +row["invoiceId"] = invoice.get("invoiceId"); +row["description"] = invoice.get("description"); +row["invoiceTypeDescription"] = invoice.getRelatedOne("InvoiceType", false).get("description"); +row["statusDescription"] = invoice.getRelatedOne("StatusItem", false).get("description"); +row["invoiceDate"] = invoice.get("invoiceDate"); + +var partyId = null; +if ("PURCHASE_INVOICE".equals(invoice.get("invoiceTypeId")) || "PURCHASE_INVOICE".equals(invoice.getRelatedOne("InvoiceType", false).get("parentTypeId"))) { + partyId = invoice.get("partyIdFrom"); +} else { + partyId = invoice.get("partyId"); +} + +var partyName = ""; +partyNameView = delegator.findOne("PartyNameView", UtilMisc.toMap("partyId", partyId), false); +if (partyNameView.get("firstName")) { + partyName += partyNameView.get("firstName") + " "; +} +if (partyNameView.get("lastName")) { + partyName += partyNameView.get("lastName") + " "; +} +if (partyNameView.get("groupName")) { + partyName += partyNameView.get("groupName") + " "; +} + +row["partyId"] = partyId; +row["partyName"] = partyName; + +countOfRow ++; +return true;]]> + + + + + + + + + + landscape + 2.7in + + + 10.363636363636363in + + 1.494949494949495in + bold + right + + + 3.696969696969697in + + + 2.585858585858586in + 10pt + bold + right + + + 2.585858585858586in + + + + 2 + 1 + left + + + url + false + + + + + + + + if (userLogin != null ) {userLoginNameView.getString("firstName") + "&nbsp;&nbsp;&nbsp;&nbsp;" + userLoginNameView.getString("lastName")} + html + + + + + + + + + + Invoice + + + invoiceId + invoiceId + dataSetRow["invoiceId"] + string + + + invoiceId + + + + + + + + Invoice + + + invoiceDate + invoiceDate + dataSetRow["invoiceDate"] + date-time + + + + invoiceDate + + + + + + + + + + Invoice + + + description + description + dataSetRow["description"] + string + + + description + + + + + + + + Invoice + + + partyId + partyId + dataSetRow["partyId"] + string + + + partyId + + + + + + + + + + Invoice + + + statusDescription + statusDescription + dataSetRow["statusDescription"] + string + + + statusDescription + + + + + + + + Invoice + + + partyName + partyName + dataSetRow["partyName"] + string + + + partyName + + + + + + + + + + + + + + + + + + 4 + 1 + + 16pt + bold + center + nowrap + Invoice + + + invoiceTypeDescription + invoiceTypeDescription + dataSetRow["invoiceTypeDescription"] + string + + + invoiceTypeDescription + + + + + + + + 0.4583333333333333in + 10.354166666666666in + + 4.041666666666667in + + + 0.71875in + + + 0.3541666666666667in + + + 0.6875in + + + 4.552083333333333in + + + 0.4583333333333333in + + + + right + page-number + + + + + center + plain + + + + + right + + left + total-page + + + + right + + + + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + 10.505050505050505in + AcctgTransAndEntries + + + glFiscalTypeId + dataSetRow["glFiscalTypeId"] + string + + + acctgTransTypeId + dataSetRow["acctgTransTypeId"] + string + + + transactionDate + dataSetRow["transactionDate"] + date-time + + + postedDate + dataSetRow["postedDate"] + date-time + + + transDescription + dataSetRow["transDescription"] + string + + + glJournalId + dataSetRow["glJournalId"] + string + + + invoiceId + dataSetRow["invoiceId"] + string + + + paymentId + dataSetRow["paymentId"] + string + + + glAccountId + dataSetRow["glAccountId"] + string + + + debitCreditFlag + dataSetRow["debitCreditFlag"] + string + + + amount + dataSetRow["amount"] + decimal + + + currencyUomId + dataSetRow["currencyUomId"] + string + + + origAmount + dataSetRow["origAmount"] + decimal + + + origCurrencyUomId + dataSetRow["origCurrencyUomId"] + string + + + glAccountTypeId + dataSetRow["glAccountTypeId"] + string + + + accountCode + dataSetRow["accountCode"] + string + + + accountName + dataSetRow["accountName"] + string + + + glAccountClassId + dataSetRow["glAccountClassId"] + string + + + + 1.4895833333333333in + + + 4.090909090909091in + + + 1.3232323232323233in + center + + + 1.3232323232323233in + center + + + 1.1111111111111112in + center + + + 1.1515151515151516in + center + +
+ + #BFBFBF + bold + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + center + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + +
+ + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountCode + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountName + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + origCurrencyUomId + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + cursive + + + all + row["origCurrencyUomId"].equals(row["currencyUomId"]) + + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + Currency + #,##0.00{RoundingMode=HALF_UP} + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + Currency + #,##0.00{RoundingMode=HALF_UP} + + + + + + +
+ + middle + + + + + + "Bitstream Charter" + 8pt + bold + + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + bold + underline + + Currency + #,##0.00{RoundingMode=HALF_UP} + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + bold + underline + + Currency + #,##0.00{RoundingMode=HALF_UP} + + + + + +
+
+ + 9.727272727272727in + + 1.2323232323232323in + + + 1.4747474747474747in + + + 1.7777777777777777in + + + 1.5555555555555556in + + + 1.9191919191919191in + + + 1.7676767676767677in + + + + 0.5in + + right + auto + + + + + 0.5in + + center + auto + + + + + 0.5in + + right + auto + + + + + 0.5in + + center + auto + + + + + 0.5in + + right + auto + + + + + 0.5in + + center + auto + + + + + + + 0.5in + + right + + auto + + + + + 0.5in + + center + auto + + + + + 0.5in + + right + + auto + + + + + 0.5in + + center + auto + + + + + 0.5in + + right + + auto + + + + + 0.5in + + center + auto + + + + + + +
diff --git a/birt/webapp/accounting/reports/PaymentAcctgTransEntry.rptdesign b/birt/webapp/accounting/reports/PaymentAcctgTransEntry.rptdesign new file mode 100644 index 000000000..91faa6277 --- /dev/null +++ b/birt/webapp/accounting/reports/PaymentAcctgTransEntry.rptdesign @@ -0,0 +1,1441 @@ + + + + Eclipse BIRT Designer Version 2.6.0.v20100531 Build <2.6.0.v20100609-1613> + in + + /templates/blank_report.gif + ltr + + + static + string + true + simple + text-box + + Unformatted + + + + static + string + true + simple + text-box + + Unformatted + + + + + + + + + + + 0 + glFiscalTypeId + string + + + 1 + acctgTransTypeId + string + + + 2 + transactionDate + date-time + + + 3 + postedDate + date-time + + + 4 + transDescription + string + + + 5 + glJournalId + string + + + 6 + invoiceId + string + + + 7 + paymentId + string + + + 8 + glAccountId + string + + + 9 + debitCreditFlag + string + + + 10 + amount + decimal + + + 11 + currencyUomId + string + + + 12 + origAmount + decimal + + + 13 + origCurrencyUomId + string + + + 14 + glAccountTypeId + string + + + 15 + accountCode + string + + + 16 + accountName + string + + + 17 + glAccountClassId + string + + + + + glFiscalTypeId + glFiscalTypeId + + + acctgTransTypeId + acctgTransTypeId + + + transactionDate + transactionDate + + + postedDate + postedDate + + + transDescription + transDescription + + + glJournalId + glJournalId + + + invoiceId + invoiceId + + + paymentId + paymentId + + + glAccountId + glAccountId + + + debitCreditFlag + debitCreditFlag + + + amount + amount + + + currencyUomId + currencyUomId + + + origAmount + origAmount + + + origCurrencyUomId + origCurrencyUomId + + + glAccountTypeId + glAccountTypeId + + + accountCode + accountCode + + + accountName + accountName + + + glAccountClassId + glAccountClassId + + + + + + 1 + glFiscalTypeId + string + + + 2 + acctgTransTypeId + string + + + 3 + transactionDate + date-time + + + 4 + postedDate + date-time + + + 5 + transDescription + string + + + 6 + glJournalId + string + + + 7 + invoiceId + string + + + 8 + paymentId + string + + + 9 + glAccountId + string + + + 10 + debitCreditFlag + string + + + 11 + amount + decimal + + + 12 + currencyUomId + string + + + 13 + origAmount + decimal + + + 14 + origCurrencyUomId + string + + + 15 + glAccountTypeId + string + + + 16 + accountCode + string + + + 17 + accountName + string + + + 18 + glAccountClassId + string + + + + OFBiz + + = totalRow) return false; + +var acctgTransAndEntry = acctgTransAndEntries.get(countOfRow); +row["glFiscalTypeId"] = acctgTransAndEntry.get("glFiscalTypeId"); +row["acctgTransTypeId"] = acctgTransAndEntry.get("acctgTransTypeId"); +row["transactionDate"] = acctgTransAndEntry.get("transactionDate"); +row["postedDate"] = acctgTransAndEntry.get("postedDate"); +row["transDescription"] = acctgTransAndEntry.get("transDescription"); +row["glJournalId"] = acctgTransAndEntry.get("glJournalId"); +row["invoiceId"] = acctgTransAndEntry.get("invoiceId"); +row["paymentId"] = acctgTransAndEntry.get("paymentId"); +row["glAccountId"] = acctgTransAndEntry.get("glAccountId"); +row["debitCreditFlag"] = acctgTransAndEntry.get("debitCreditFlag"); +row["amount"] = acctgTransAndEntry.get("amount"); +row["currencyUomId"] = acctgTransAndEntry.get("currencyUomId"); +row["origAmount"] = acctgTransAndEntry.get("origAmount"); +row["origCurrencyUomId"] = acctgTransAndEntry.get("origCurrencyUomId"); +row["glAccountTypeId"] = acctgTransAndEntry.get("glAccountTypeId"); +row["accountCode"] = acctgTransAndEntry.get("accountCode"); +row["accountName"] = acctgTransAndEntry.get("accountName"); +row["glAccountClassId"] = acctgTransAndEntry.get("glAccountClassId"); + +countOfRow ++; +return true;]]> + + + + + 1 + paymentId + string + + + 2 + comments + string + + + 3 + paymentTypeDescription + string + + + 4 + statusDescription + string + + + 5 + effectiveDate + date-time + + + 6 + partyId + string + + + 7 + partyName + string + + + + + paymentId + paymentId + + + comments + comments + + + paymentTypeDescription + paymentTypeDescription + + + statusDescription + statusDescription + + + effectiveDate + effectiveDate + + + partyId + partyId + + + partyName + partyName + + + + + + 1 + paymentId + string + + + 2 + comments + string + + + 3 + paymentTypeDescription + string + + + 4 + statusDescription + string + + + 5 + effectiveDate + date-time + + + 6 + partyId + string + + + 7 + partyName + string + + + + OFBiz + + = 1) return false; +row["paymentId"] = payment.get("paymentId"); +row["comments"] = payment.get("comments"); +row["paymentTypeDescription"] = payment.getRelatedOne("PaymentType", false).get("description"); +row["statusDescription"] = payment.getRelatedOne("StatusItem", false).get("description"); +row["effectiveDate"] = payment.get("effectiveDate"); + +var partyId = null; +if ("RECEIPT".equals(payment.get("paymentTypeId")) || "RECEIPT".equals(payment.getRelatedOne("PaymentType", false).get("parentTypeId"))) { + partyId = payment.get("partyIdFrom"); +} else { + partyId = payment.get("partyIdTo"); +} + +var partyName = ""; +partyNameView = delegator.findOne("PartyNameView", UtilMisc.toMap("partyId", partyId), false); +if (partyNameView.get("firstName")) { + partyName += partyNameView.get("firstName") + " "; +} +if (partyNameView.get("lastName")) { + partyName += partyNameView.get("lastName") + " "; +} +if (partyNameView.get("groupName")) { + partyName += partyNameView.get("groupName") + " "; +} + +row["partyId"] = partyId; +row["partyName"] = partyName; + +countOfRow ++; +return true;]]> + + + + + + + + + + landscape + 3in + + + 10.363636363636363in + + 1.494949494949495in + bold + right + + + 3.696969696969697in + + + 2.585858585858586in + 10pt + bold + right + + + 2.585858585858586in + + + + 2 + 1 + left + + + url + false + + + + + + + + if (userLogin != null ) {userLoginNameView.getString("firstName") + "&nbsp;&nbsp;&nbsp;&nbsp;" + userLoginNameView.getString("lastName")} + html + + + + + + + + + + Payment + + + invoiceId + paymentId + dataSetRow["paymentId"] + string + + + invoiceId + + + + + + + + nowrap + Payment + + + effectiveDate + effectiveDate + dataSetRow["effectiveDate"] + date-time + + + + effectiveDate + + + + + + + + + + nowrap + Payment + + + paymentTypeDescription + paymentTypeDescription + dataSetRow["paymentTypeDescription"] + string + + + paymentTypeDescription + + + + + + + + Payment + + + partyId + partyId + dataSetRow["partyId"] + string + + + partyId + + + + + + + + + + Payment + + + statusDescription + statusDescription + dataSetRow["statusDescription"] + string + + + statusDescription + + + + + + + + Payment + + + partyName + partyName + dataSetRow["partyName"] + string + + + partyName + + + + + + + + + + + + + + + + + + + + + + nowrap + Payment + + + comments + comments + dataSetRow["comments"] + string + + + comments + + + + + + + + 4 + 1 + +

" + uiLabelMap.get("AccountingPayment") + "

";]]>
+ html +
+
+
+
+
+ + + 0.4583333333333333in + 10.354166666666666in + + 4.041666666666667in + + + 0.71875in + + + 0.3541666666666667in + + + 0.6875in + + + 4.552083333333333in + + + 0.4583333333333333in + + + + right + page-number + + + + + center + plain + + + + + right + + left + total-page + + + + right + + + + +
+
+ + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + 10.505050505050505in + AcctgTransAndEntries + + + glFiscalTypeId + dataSetRow["glFiscalTypeId"] + string + + + acctgTransTypeId + dataSetRow["acctgTransTypeId"] + string + + + transactionDate + dataSetRow["transactionDate"] + date-time + + + postedDate + dataSetRow["postedDate"] + date-time + + + transDescription + dataSetRow["transDescription"] + string + + + glJournalId + dataSetRow["glJournalId"] + string + + + invoiceId + dataSetRow["invoiceId"] + string + + + paymentId + dataSetRow["paymentId"] + string + + + glAccountId + dataSetRow["glAccountId"] + string + + + debitCreditFlag + dataSetRow["debitCreditFlag"] + string + + + amount + dataSetRow["amount"] + decimal + + + currencyUomId + dataSetRow["currencyUomId"] + string + + + origAmount + dataSetRow["origAmount"] + decimal + + + origCurrencyUomId + dataSetRow["origCurrencyUomId"] + string + + + glAccountTypeId + dataSetRow["glAccountTypeId"] + string + + + accountCode + dataSetRow["accountCode"] + string + + + accountName + dataSetRow["accountName"] + string + + + glAccountClassId + dataSetRow["glAccountClassId"] + string + + + + 1.4895833333333333in + + + 4.090909090909091in + + + 1.3232323232323233in + center + + + 1.3232323232323233in + center + + + 1.1111111111111112in + center + + + 1.1515151515151516in + center + +
+ + #BFBFBF + bold + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + center + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + + + +
+ + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountCode + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountName + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + origCurrencyUomId + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + cursive + + + all + row["origCurrencyUomId"].equals(row["currencyUomId"]) + + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + Currency + #,##0.00{RoundingMode=HALF_UP} + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + Currency + #,##0.00{RoundingMode=HALF_UP} + + + + + + +
+ + middle + + + + + + "Bitstream Charter" + 8pt + bold + + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + bold + underline + + Currency + #,##0.00{RoundingMode=HALF_UP} + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + bold + underline + + Currency + #,##0.00{RoundingMode=HALF_UP} + + + + + +
+
+ + 9.727272727272727in + + 1.2323232323232323in + + + 1.4747474747474747in + + + 1.7777777777777777in + + + 1.5555555555555556in + + + 1.9191919191919191in + + + 1.7676767676767677in + + + + 0.5in + + right + auto + + + + + 0.5in + + center + auto + + + + + 0.5in + + right + auto + + + + + 0.5in + + center + auto + + + + + 0.5in + + right + auto + + + + + 0.5in + + center + auto + + + + + + + 0.5in + + right + + auto + + + + + 0.5in + + center + auto + + + + + 0.5in + + right + + auto + + + + + 0.5in + + center + auto + + + + + 0.5in + + right + + auto + + + + + 0.5in + + center + auto + + + + + + +
diff --git a/birt/webapp/accounting/reports/PaymentReport.rptdesign b/birt/webapp/accounting/reports/PaymentReport.rptdesign new file mode 100644 index 000000000..533aee914 --- /dev/null +++ b/birt/webapp/accounting/reports/PaymentReport.rptdesign @@ -0,0 +1,767 @@ + + + + + Eclipse BIRT Designer Version 2.6.0.v20100531 Build <2.6.0.v20100609-1613> + + + Payment.Payments.x + integer + false + + + Payment.Payments.y + integer + false + + + 135 + 80 + in + + /templates/blank_report.gif + ltr + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + + + + + + + + 1 + paymentId + string + + + 2 + paymentType + string + + + 3 + status + string + + + 4 + from + string + + + 5 + to + string + + + 6 + date + string + + + 7 + amount + float + + + + + paymentId + + + paymentType + + + status + + + from + + + to + + + date + + + amount + + + + + parameters + javaObject + 1 + null + true + false + + + + + + 1 + paymentId + string + + + 2 + paymentType + string + + + 3 + status + string + + + 4 + from + string + + + 5 + to + string + + + 6 + date + string + + + 7 + amount + float + + + + OFBIZ + + + + + + + + + NewTabularHierarchy + + + + + string + paymentId + + + string + paymentType + + + string + status + + + string + from + + + string + to + + + string + date + + + + + + + + + + + sum + dataSetRow["amount"] + float + + + + + Payments + + + + + + + + + + + + html + new Date()]]> + + + + + + + silver + larger + bolder + center + none + auto + + + + Payment + + + amount + + + Group/date + + + + Currency + ###0.00{RoundingMode=HALF_UP} + + center + amount_Group/date + + + + + + + + + + Currency + ###0.00{RoundingMode=HALF_UP} + + amount + + + + + + + + + + 0.3333333333333333in + + + + + + + + + + + + + + + + Group + + + Group/paymentId + + + + + center + paymentId + + + + + + + Group/paymentType + + + + + center + paymentType + + + + + + + Group/status + + + + + center + status + + + + + + + Group/from + + + + + center + from + + + + + + + Group/to + + + + + center + to + + + + + + + Group/date + + + + + center + date + + + + + + + + + after + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + paymentId + dimension["Group"]["paymentId"] + string + + + paymentType + dimension["Group"]["paymentType"] + string + + + status + dimension["Group"]["status"] + string + + + from + dimension["Group"]["from"] + string + + + to + dimension["Group"]["to"] + string + + + date + dimension["Group"]["date"] + string + + + amount_Group/date + float + + Group/date + + SUM + + + Expression + measure["amount"] + + + + + amount + float + SUM + + + Expression + measure["amount"] + + + + + + + diff --git a/birt/webapp/accounting/reports/TrialBalance.rptdesign b/birt/webapp/accounting/reports/TrialBalance.rptdesign new file mode 100644 index 000000000..d8f814570 --- /dev/null +++ b/birt/webapp/accounting/reports/TrialBalance.rptdesign @@ -0,0 +1,848 @@ + + + + Eclipse BIRT Designer Version 2.6.0.v20100531 Build <2.6.0.v20100609-1613> + in + + /templates/blank_report.gif + ltr + + + static + string + true + simple + text-box + + Unformatted + + + + static + string + true + simple + text-box + + Unformatted + + + + static + string + true + simple + text-box + + Unformatted + + + + + + + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + totalPostedDebits + decimal + + + 5 + totalPostedCredits + decimal + + + 6 + totalEndingBalance + decimal + + + + + glAccountId + Gl Account Id + + + accountCode + Account Code + + + accountName + Account Name + + + totalPostedDebits + Total Posted Debits + + + totalPostedCredits + Total Posted Credits + + + totalEndingBalance + Total Ending Balance + + + + + + 1 + glAccountId + string + + + 2 + accountCode + string + + + 3 + accountName + string + + + 4 + totalPostedDebits + decimal + + + 5 + totalPostedCredits + decimal + + + 6 + totalEndingBalance + decimal + + + + OFBiz + + = totalRow) return false; + +var glAccountAndHistory = glAccountAndHistories.get(countOfRow); +row["glAccountId"] = glAccountAndHistory.get("glAccountId"); +row["accountCode"] = glAccountAndHistory.get("accountCode"); +row["accountName"] = glAccountAndHistory.get("accountName"); +row["totalPostedDebits"] = glAccountAndHistory.get("totalPostedDebits"); +row["totalPostedCredits"] = glAccountAndHistory.get("totalPostedCredits"); +var totalEndingBalance = glAccountAndHistory.get("totalEndingBalance"); +if (!totalEndingBalance) { + totalEndingBalance = glAccountAndHistory.get("totalPostedDebits") - glAccountAndHistory.get("totalPostedCredits"); +} +row["totalEndingBalance"] = totalEndingBalance; + +countOfRow ++; +return true;]]> + + + + + + + + + + landscape + 2.5in + + + #FFFFFF + 2.292929292929293in + 10.424242424242424in + + 2.272727272727273in + bold + left + + + 3.0606060606060606in + + + 2.3636363636363638in + bold + left + + + 2.727272727272727in + + + + 2 + 1 + left + + + url + false + + + + right + + + + + if (userLogin != null ) {partyNameView.getString("firstName") + "&nbsp;&nbsp;&nbsp;&nbsp;" + partyNameView.getString("lastName")} + html + + + + + 0.2604166666666667in + + + + right + + + + + dateFormatter.format(UtilDateTime.nowTimestamp()) + html + + + + + 0.22916666666666666in + + right + + + + + 10pt + + html + + + + + + + + delegator.findOne("PartyAcctgPreference", UtilMisc.toMap("partyId", organizationPartyId), false).getRelatedOne("Uom", false).getString("description") + html + + + + + 0.4479166666666667in + + 4 + 1 + right + +

" + uiLabelMap.get("AccountingTrialBalance") + "

";]]>
+ html +
+
+
+
+
+ + + 0.4583333333333333in + 10.353535353535353in + + 4.444444444444445in + + + 0.5151515151515151in + + + 0.5454545454545454in + + + 0.5555555555555556in + + + 4.303030303030303in + + + 0.4583333333333333in + + + + right + page-number + + + + + center + plain + + + + + right + + left + total-page + + + + right + + + + +
+
+ + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + 10.474747474747474in + TrialBalance + + + glAccountId + Gl Account Id + dataSetRow["glAccountId"] + string + + + accountCode + Account Code + dataSetRow["accountCode"] + string + + + accountName + Account Name + dataSetRow["accountName"] + string + + + totalPostedDebits + Total Posted Debits + dataSetRow["totalPostedDebits"] + decimal + + + totalPostedCredits + Total Posted Credits + dataSetRow["totalPostedCredits"] + decimal + + + totalEndingBalance + Total Ending Balance + dataSetRow["totalEndingBalance"] + decimal + + + EndingBalanceTotal + float + SUM + + + Expression + row["totalEndingBalance"] + + + + + + 1.101010101010101in + + + 5.333333333333333in + + + 1.3434343434343434in + + + 1.3636363636363635in + + + 1.3232323232323233in + +
+ + #BFBFBF + bold + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + center + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + +
+ + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountCode + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + accountName + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + Currency + #,##0.00{RoundingMode=HALF_UP} + + right + totalPostedDebits + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + Currency + #,##0.00{RoundingMode=HALF_UP} + + right + totalPostedCredits + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + + Currency + #,##0.00{RoundingMode=HALF_UP} + + right + nowrap + totalEndingBalance + + + + +
+ + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + bold + underline + + Currency + #,##0.00{RoundingMode=HALF_UP} + + right + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + bold + underline + + Currency + #,##0.00{RoundingMode=HALF_UP} + + right + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + + bold + underline + + Currency + #,##0.00{RoundingMode=HALF_UP} + + right + EndingBalanceTotal + + + +
+
+ +
diff --git a/example/webapp/birt/WEB-INF/birt.tld b/birt/webapp/birt/WEB-INF/birt.tld similarity index 100% rename from example/webapp/birt/WEB-INF/birt.tld rename to birt/webapp/birt/WEB-INF/birt.tld diff --git a/example/webapp/birt/WEB-INF/controller.xml b/birt/webapp/birt/WEB-INF/controller.xml similarity index 75% rename from example/webapp/birt/WEB-INF/controller.xml rename to birt/webapp/birt/WEB-INF/controller.xml index 60c891b60..1b8d73b37 100644 --- a/example/webapp/birt/WEB-INF/controller.xml +++ b/birt/webapp/birt/WEB-INF/controller.xml @@ -26,7 +26,8 @@ under the License. BIRT Component Site Configuration File - + + + + + + + + + + + + + + + + + @@ -82,10 +99,10 @@ under the License. - - - - + + + + - - + + diff --git a/example/webapp/birt/WEB-INF/server-config.wsdd b/birt/webapp/birt/WEB-INF/server-config.wsdd similarity index 100% rename from example/webapp/birt/WEB-INF/server-config.wsdd rename to birt/webapp/birt/WEB-INF/server-config.wsdd diff --git a/example/webapp/birt/WEB-INF/web.xml b/birt/webapp/birt/WEB-INF/web.xml similarity index 96% rename from example/webapp/birt/WEB-INF/web.xml rename to birt/webapp/birt/WEB-INF/web.xml index 0705c7e7d..f71e31695 100644 --- a/example/webapp/birt/WEB-INF/web.xml +++ b/birt/webapp/birt/WEB-INF/web.xml @@ -33,7 +33,7 @@ under the License. mainDecoratorLocation - component://example/widget/example/CommonScreens.xml + component://birt/widget/birt/BirtScreens.xml The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files. diff --git a/example/webapp/birt/birt/chartReport.ftl b/birt/webapp/birt/birt/chartReport.ftl similarity index 92% rename from example/webapp/birt/birt/chartReport.ftl rename to birt/webapp/birt/birt/chartReport.ftl index 08e7b5f6e..efa407073 100644 --- a/example/webapp/birt/birt/chartReport.ftl +++ b/birt/webapp/birt/birt/chartReport.ftl @@ -20,7 +20,7 @@ under the License. <#assign birt = JspTaglibs["/WEB-INF/birt.tld"]/> <@birt.report id="birtReport" - reportDesign="component://example/webapp/birt/report/chart.rptdesign" + reportDesign="component://birt/webapp/birt/report/chart.rptdesign" baseURL="/birt" height="700" width="900" diff --git a/example/webapp/birt/birt/report.ftl b/birt/webapp/birt/birt/report.ftl similarity index 92% rename from example/webapp/birt/birt/report.ftl rename to birt/webapp/birt/birt/report.ftl index ff22cb98d..9b6093f11 100644 --- a/example/webapp/birt/birt/report.ftl +++ b/birt/webapp/birt/birt/report.ftl @@ -20,7 +20,7 @@ under the License. <#assign birt = JspTaglibs["/WEB-INF/birt.tld"]/> <@birt.report id="birtReport" - reportDesign="component://example/webapp/birt/report/example.rptdesign" + reportDesign="component://birt/webapp/birt/report/example.rptdesign" baseURL="/birt" height="700" width="900" diff --git a/example/webapp/birt/error/error.jsp b/birt/webapp/birt/error/error.jsp similarity index 100% rename from example/webapp/birt/error/error.jsp rename to birt/webapp/birt/error/error.jsp diff --git a/example/webapp/birt/index.jsp b/birt/webapp/birt/index.jsp similarity index 100% rename from example/webapp/birt/index.jsp rename to birt/webapp/birt/index.jsp diff --git a/example/webapp/birt/report/chart.rptdesign b/birt/webapp/birt/report/chart.rptdesign similarity index 100% rename from example/webapp/birt/report/chart.rptdesign rename to birt/webapp/birt/report/chart.rptdesign diff --git a/example/webapp/birt/report/example.rptdesign b/birt/webapp/birt/report/example.rptdesign similarity index 100% rename from example/webapp/birt/report/example.rptdesign rename to birt/webapp/birt/report/example.rptdesign diff --git a/birt/webapp/facility/WEB-INF/actions/inventory/InventoryItemReport.groovy b/birt/webapp/facility/WEB-INF/actions/inventory/InventoryItemReport.groovy new file mode 100644 index 000000000..565c2cb27 --- /dev/null +++ b/birt/webapp/facility/WEB-INF/actions/inventory/InventoryItemReport.groovy @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + + import org.ofbiz.accounting.util.UtilAccounting + import org.ofbiz.base.util.*; + import org.ofbiz.entity.util.EntityUtil; + import org.ofbiz.entity.condition.EntityCondition; + import org.ofbiz.entity.condition.EntityOperator; + import com.ibm.icu.util.Calendar; + + birtParameters = [:]; + /* + birtParameters.facilityId = request.getParameter("facilityId"); + birtParameters.productId = request.getParameter("productId"); + birtParameters.productTypeId = request.getParameter("productTypeId"); + birtParameters.searchInProductCategoryId = request.getParameter("searchInProductCategoryId"); + birtParameters.contentType = request.getParameter("contentType"); + birtParameters.productSupplierId = request.getParameter("productSupplierId"); + birtParameters.statusId = request.getParameter("statusId"); + birtParameters.productsSoldThruTimestamp = request.getParameter("productsSoldThruTimestamp"); + birtParameters.VIEW_SIZE = request.getParameter("VIEW_SIZE"); + birtParameters.monthsInPastLimit = request.getParameter("monthsInPastLimit"); + birtParameters.fromDateSellThrough = request.getParameter("fromDateSellThrough"); + birtParameters.thruDateSellThrough = request.getParameter("thruDateSellThrough"); + */ + + int lastIntMonth = Integer.parseInt(request.getParameter("lastIntMonth")); + if (lastIntMonth == 0 ){ + fromOrderDate = null; + }else{ + fromDateTime = UtilDateTime.getDayStart(UtilDateTime.toTimestamp(UtilDateTime.nowTimestamp()), (lastIntMonth*(-30))); + fromOrderDate = UtilDateTime.toDateString(fromDateTime,"MMMM dd, yyyy") + Debug.logInfo("====fromDate======="+fromOrderDate.toString(),""); + } + + birtParameters.facilityId = request.getParameter("facilityId"); + birtParameters.orderDateDateValue_fld0_op = fromOrderDate.toString(); + request.setAttribute("birtParameters", birtParameters); + return "success"; diff --git a/birt/webapp/facility/WEB-INF/controller.xml b/birt/webapp/facility/WEB-INF/controller.xml new file mode 100644 index 000000000..6d37d048a --- /dev/null +++ b/birt/webapp/facility/WEB-INF/controller.xml @@ -0,0 +1,69 @@ + + + + + + + Extended Facility Manager Controller Configuration File + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/birt/webapp/facility/WEB-INF/web.xml b/birt/webapp/facility/WEB-INF/web.xml new file mode 100644 index 000000000..0706b9f74 --- /dev/null +++ b/birt/webapp/facility/WEB-INF/web.xml @@ -0,0 +1,116 @@ + + + + + + + Open For Business - Facility Manager + Facility Manager Module of the Open For Business Project + + + entityDelegatorName + default + The Name of the Entity Delegator to use, defined in entityengine.xml + + + localDispatcherName + facility + A unique name used to identify/recognize the local dispatcher for the Service Engine + + + mainDecoratorLocation + component://product/widget/facility/CommonScreens.xml + The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files. + + + commonFacilityDecoratorLocation + component://product/widget/facility/CommonScreens.xml + The location of the CommonFacilityDecorator screen to use for this webapp; referred to as a context variable in screen def XML files. + + + serviceReaderUrls + /WEB-INF/services.xml + Configuration File(s) For The Service Dispatcher + + + + ContextFilter + ContextFilter + org.ofbiz.webapp.control.ContextFilter + + disableContextSecurity + N + + + allowedPaths + /error:/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css:/ShippingAPI.dll + + + errorCode + 403 + + + redirectPath + /control/main + + + + ContextFilter + /* + + + org.ofbiz.webapp.control.ControlEventListener + org.ofbiz.webapp.control.LoginEventListener + + + + + ControlServlet + ControlServlet + Main Control Servlet + org.ofbiz.webapp.control.ControlServlet + 1 + + + ShippingAPI + ShippingAPI + Mock USPS Webtools API Servlet + org.ofbiz.shipment.thirdparty.usps.UspsMockApiServlet + 1 + + + ControlServlet + /control/* + + + ShippingAPI + /ShippingAPI.dll + + + + 60 + + + + index.jsp + index.html + index.htm + + diff --git a/birt/webapp/facility/inventory/report/InventoryReport.rptdesign b/birt/webapp/facility/inventory/report/InventoryReport.rptdesign new file mode 100644 index 000000000..5fc9fda35 --- /dev/null +++ b/birt/webapp/facility/inventory/report/InventoryReport.rptdesign @@ -0,0 +1,708 @@ + + + + Eclipse BIRT Designer Version 2.2.2.r222_v20071226 Build <2.2.2.v20080226-1155> + in + Copyright (c) 2007 <<Your Company Name here>> + Creates a blank report with no predefined content. + + + Data Cube.Inventory.x + integer + false + + + Data Cube.Inventory.y + integer + false + + + Data Cube.productOrd.NewTabularHierarchy1.x + integer + false + + + Data Cube.productOrd.NewTabularHierarchy1.y + integer + false + + + Data Cube.Inventory.width + integer + false + + + Data Cube.Inventory.height + integer + false + + + 239 + 50 + 20 + 3 + 150 + 200 + + Blank Report + /templates/blank_report.gif + + + static + string + simple + false + text-box + true + + Unformatted + + + + + + + + + + + 1 + productId + string + + + 2 + quantityOnHand + integer + + + 3 + availableToPromise + integer + + + 4 + retailPrice + float + + + 5 + productName + string + + + 6 + datetimeReceived + date-time + + + + + productId + + + quantityOnHand + + + availableToPromise + + + retailPrice + + + productName + + + datetimeReceived + + + + + + 1 + productId + string + + + 2 + quantityOnHand + integer + + + 3 + availableToPromise + integer + + + 4 + retailPrice + float + + + 5 + productName + string + + + 6 + datetimeReceived + date-time + + + + OFBiz + + + + + + + 1 + quantity + integer + + + 2 + productOrderId + string + + + 3 + orderDate + any + + + + + quantity + + + productOrderId + + + orderDate + + + + + + 1 + quantity + integer + + + 2 + productOrderId + string + + + 3 + orderDate + any + + + + OFBiz + + + + + + + + + + + 1.2333333333in + 1.3111111111in + + + html + new Date()]]> + + + + + + + 0pt + justify + 100% + Inventory + + + productId + dataSetRow["productId"] + string + + + quantityOnHand + dataSetRow["quantityOnHand"] + integer + + + availableToPromise + dataSetRow["availableToPromise"] + integer + + + retailPrice + dataSetRow["retailPrice"] + float + + + productName + dataSetRow["productName"] + string + + + datetimeReceived + dataSetRow["datetimeReceived"] + date-time + + + Column Binding + Qoh + dataSetRow["quantityOnHand"] + integer + + + QoH + dataSetRow["quantityOnHand"] + any + + productId + + SUM + + + AtP + dataSetRow["availableToPromise"] + integer + + productId + + SUM + + + TotalSold + dataSetRow["quantityOnHand"]-dataSetRow["availableToPromise"] + integer + + productId + + SUM + + + false + true + + 1.1111111111in + + + 1.1222222222in + + + 1.0777777778in + + + 1.3in + + +
+ + small + bold + green + #808080 + solid + thin + center + + + + + + + + + + + + + + +
+ + productId + none + asc + row["productId"] + + row["productId"] + + true + false + auto + auto + auto + + + row["productId"] + asc + + +
+ + 1cm + small + bold + center + middle + auto + + + productId + + + + + QoH + + + + + AtP + + + + + retailPrice + + + + +
+
+ + + + + + + +
+
+ + + small + center + + + + + + + +
+ + 1cm + medium + maroon + center + middle + + + + + + +
+
+ + 100% + Order + + + quantity + dataSetRow["quantity"] + any + + + productOrderId + dataSetRow["productOrderId"] + any + + + sumSoldOutQty + dataSetRow["quantity"] + any + + productOrderId + + SUM + + + orderDate + dataSetRow["orderDate"] + any + + + + 1.3333333333in + + + 0.2666666667in + + + 2.2444444444in + + + 0.8111111111in + + +
+ + 0.367in + #000000 + solid + thin + center + + + + + + + + + + + + +
+ + productOrderId + none + asc + row["productOrderId"] + + row["productOrderId"] + + true + false + auto + auto + auto +
+ + 0.344in + center + middle + + + orderDate + + + + + + bold + productOrderId + + + + + + 0pt + 1pt + sumSoldOutQty + + + +
+
+ + + + + + + +
+
+ + + + + + + + + +
+ + + + + + + +
+
+ +
diff --git a/birt/webapp/ordermgr/WEB-INF/actions/reports/CheckReportBy.groovy b/birt/webapp/ordermgr/WEB-INF/actions/reports/CheckReportBy.groovy new file mode 100644 index 000000000..8c56cc782 --- /dev/null +++ b/birt/webapp/ordermgr/WEB-INF/actions/reports/CheckReportBy.groovy @@ -0,0 +1,68 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +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 (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/birt/webapp/ordermgr/WEB-INF/actions/reports/NetBeforeOverheadReport.groovy b/birt/webapp/ordermgr/WEB-INF/actions/reports/NetBeforeOverheadReport.groovy new file mode 100644 index 000000000..3edf655fe --- /dev/null +++ b/birt/webapp/ordermgr/WEB-INF/actions/reports/NetBeforeOverheadReport.groovy @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import org.ofbiz.base.util.*; +import java.sql.*; +import java.sql.Timestamp; +import com.ibm.icu.util.Calendar; + +productStoreId = parameters.productStoreId; +DateTime = UtilDateTime.nowTimestamp(); +String DateStr = DateTime; +DateDay = DateStr.substring(0,10); +DateMonth = DateStr.substring(5,7); +DateYear = DateStr.substring(0,4); + +if (DateMonth == "01"||DateMonth == "03"||DateMonth == "05"||DateMonth == "07"||DateMonth == "08"||DateMonth == "10"||DateMonth == "12") +{ + NunberDate = 31; +} +else if (DateMonth == "02") +{ + NunberDate = 29; +} +else +{ + NunberDate = 30; +} + +birtParameters = [:]; +try { + birtParameters.productStoreId = productStoreId; + birtParameters.DateDay = DateDay; + birtParameters.DateMonth = DateMonth; + birtParameters.DateYear = DateYear; + birtParameters.NunberDate = NunberDate; +} catch (e) { + Debug.logError(e, ""); +} + +request.setAttribute("birtParameters", birtParameters); + +return "success"; diff --git a/birt/webapp/ordermgr/WEB-INF/actions/reports/OrderByChannel.groovy b/birt/webapp/ordermgr/WEB-INF/actions/reports/OrderByChannel.groovy new file mode 100644 index 000000000..7617ad784 --- /dev/null +++ b/birt/webapp/ordermgr/WEB-INF/actions/reports/OrderByChannel.groovy @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import org.ofbiz.base.util.*; + +birtParameters = [:]; +if(request.getParameter("saleChannel")){ + birtParameters.saleChannel = request.getParameter("saleChannel"); +}else{ + birtParameters.saleChannel = "null"; +} + +request.setAttribute("birtParameters", birtParameters); + +return "success"; diff --git a/birt/webapp/ordermgr/WEB-INF/actions/reports/ProductDemandReport.groovy b/birt/webapp/ordermgr/WEB-INF/actions/reports/ProductDemandReport.groovy new file mode 100644 index 000000000..ba8bcb76a --- /dev/null +++ b/birt/webapp/ordermgr/WEB-INF/actions/reports/ProductDemandReport.groovy @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import org.ofbiz.base.util.*; +import java.sql.*; +import com.ibm.icu.util.Calendar; + +productStoreId = parameters.productStoreId; +Calendar cal = UtilDateTime.toCalendar(UtilDateTime.nowTimestamp()); +int Week = cal.get(Calendar.WEEK_OF_YEAR); +int Year = cal.get(Calendar.YEAR); + +birtParameters = [:]; +try +{ + birtParameters.productStoreId = productStoreId; + birtParameters.Week = Week; + birtParameters.Year = Year; +} catch (e) { + Debug.logError(e, ""); +} + +request.setAttribute("birtParameters", birtParameters); + +return "success"; diff --git a/birt/webapp/ordermgr/WEB-INF/actions/reports/SalesReport.groovy b/birt/webapp/ordermgr/WEB-INF/actions/reports/SalesReport.groovy new file mode 100644 index 000000000..8534510cc --- /dev/null +++ b/birt/webapp/ordermgr/WEB-INF/actions/reports/SalesReport.groovy @@ -0,0 +1,45 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import org.ofbiz.base.util.*; +import java.sql.*; +import java.util.Calendar; + +fromDateStr = parameters.fromDate; +cal = Calendar.getInstance(); +cal.setTime(Date.valueOf(fromDateStr)); +int week = cal.get(Calendar.WEEK_OF_YEAR); +int month = cal.get(Calendar.MONTH) + 1; +int year = cal.get(Calendar.YEAR); + +birtParameters = [:]; +try { + birtParameters.reportBy = parameters.reportBy; + 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; +} catch (e) { + Debug.logError(e, ""); +} + +request.setAttribute("birtParameters", birtParameters); + +return "success"; diff --git a/birt/webapp/ordermgr/WEB-INF/controller.xml b/birt/webapp/ordermgr/WEB-INF/controller.xml new file mode 100644 index 000000000..1404a33be --- /dev/null +++ b/birt/webapp/ordermgr/WEB-INF/controller.xml @@ -0,0 +1,133 @@ + + + + + + + Extended Order Manager Controller Configuration File + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/birt/webapp/ordermgr/WEB-INF/web.xml b/birt/webapp/ordermgr/WEB-INF/web.xml new file mode 100644 index 000000000..69776142b --- /dev/null +++ b/birt/webapp/ordermgr/WEB-INF/web.xml @@ -0,0 +1,113 @@ + + + + + + + Open For Business - Order Manager + Order Manager Module of the Open For Business Project + + + entityDelegatorName + default + The Name of the Entity Delegator to use, defined in entityengine.xml + + + localDispatcherName + order + A unique name used to identify/recognize the local dispatcher for the Service Engine + + + mainDecoratorLocation + component://order/widget/ordermgr/CommonScreens.xml + The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files. + + + + serviceReaderUrls + /WEB-INF/services.xml + Configuration File(s) For The Service Dispatcher + + + + ContextFilter + ContextFilter + org.ofbiz.webapp.control.ContextFilter + + disableContextSecurity + N + + + allowedPaths + /error:/control:/products:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css + + + errorCode + 403 + + + redirectPath + /control/main + + + + ContextFilter + /* + + + org.ofbiz.webapp.control.ControlEventListener + org.ofbiz.webapp.control.LoginEventListener + + + + + ControlServlet + ControlServlet + Main Control Servlet + org.ofbiz.webapp.control.ControlServlet + 1 + + + CatalogUrlServlet + CatalogUrlServlet + Catalog (Category/Product) URL Servlet + org.ofbiz.product.category.CatalogUrlServlet + 1 + + + + ControlServlet + /control/* + + + CatalogUrlServlet + /products/* + + + + 60 + + + + index.jsp + index.html + index.htm + + diff --git a/birt/webapp/ordermgr/reports/CouponSalesReport.rptdesign b/birt/webapp/ordermgr/reports/CouponSalesReport.rptdesign new file mode 100644 index 000000000..99761c9e2 --- /dev/null +++ b/birt/webapp/ordermgr/reports/CouponSalesReport.rptdesign @@ -0,0 +1,845 @@ + + + + Eclipse BIRT Designer Version 2.5.1.v20090903 Build <2.5.1.v20090917-1447> + in + + /templates/blank_report.gif + fixed layout + ltr + + + + + + + + 1 + productPromoId + string + + + 2 + promoName + string + + + 3 + totalOrders + integer + + + 4 + totalOrdersAmount + float + + + 5 + totalShippingAmount + float + + + 6 + totalShippingCharge + float + + + 7 + totalShippingBalance + float + + + + + productPromoId + + + promoName + + + totalOrders + + + totalOrdersAmount + + + totalShippingAmount + + + totalShippingCharge + + + totalShippingBalance + + + + + + 1 + productPromoId + string + + + 2 + promoName + string + + + 3 + totalOrders + integer + + + 4 + totalOrdersAmount + float + + + 5 + totalShippingAmount + float + + + 6 + totalShippingCharge + float + + + 7 + totalShippingBalance + float + + + + OFBIZ + + 0){ + productPromoCodeId = productPromoCodes.get(0).getString("productPromoCodeId"); + orderProductPromoCodes = delegator.findList("OrderProductPromoCode", EntityCondition.makeCondition("productPromoCodeId", EntityOperator.EQUALS, productPromoCodeId), null, null, null, false); + totalOrders = orderProductPromoCodes.size(); + for(i = 0; i < totalOrders; i++){ + orderId = orderProductPromoCodes.get(i).getString("orderId"); + input.put("userLogin",userLogin); + input.put("orderId",orderId); + //Order Total + orderInfo = dispatcher.runSync("getOrderHeaderInformation", input); + amount = orderInfo.get("grandTotal"); + totalOrdersAmount = totalOrdersAmount + amount; + //Shipping Total + cond = FastList.newInstance(); + cond.add(EntityCondition.makeCondition("orderId", EntityOperator.EQUALS, orderId)); + cond.add(EntityCondition.makeCondition("orderAdjustmentTypeId", EntityOperator.EQUALS, "SHIPPING_CHARGES")); + orderAdjustments = delegator.findList("OrderAdjustment", EntityCondition.makeCondition(cond, EntityOperator.AND), null, null, null, false); + orderAdjustmentSize = orderAdjustments.size(); + for(j = 0; j < orderAdjustmentSize; j++){ + shippingCharge = 0; + shippingCharge = orderAdjustments.get(j).get("amount"); + if(shippingCharge){ + shippingCharge = shippingCharge.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); + } + totalShippingCharge = totalShippingCharge + shippingCharge; + } + shippingAmount = dispatcher.runSync("getOrderShippingAmount", input); + amount = shippingAmount.get("shippingAmount"); + if(amount){ + amount = amount.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); + } + totalShippingAmount = totalShippingAmount + amount; + } +} +row["productPromoId"] = productPromoId; +row["promoName"] = promoName; +row["totalOrders"] = totalOrders; +row["totalOrdersAmount"] = totalOrdersAmount; +row["totalShippingCharge"] = totalShippingCharge; +row["totalShippingAmount"] = totalShippingAmount; +row["totalShippingBalance"] = totalShippingAmount - totalShippingCharge; +countOfRow ++; +return true;]]> + + + + + + + NewTabularHierarchy + + + + + string + productPromoId + + + string + promoName + + + + + + + + + + + dataSetRow["totalOrders"] + integer + + + + + + + dataSetRow["totalOrdersAmount"] + float + + + + + + + dataSetRow["totalShippingCharge"] + float + + + + + + + dataSetRow["totalShippingAmount"] + float + + + + + + + dataSetRow["totalShippingBalance"] + float + + + + + CouponSalesReport + + + + + + + + + + landscape + 0.25in + + + 0.4777777777777778in + + + + 0.4777777777777778in + + + html + new Date()]]> + + + + right + + 0.2777777777777778in + 2.3777777777777778in + + 1.788888888888889in + + + 0.14444444444444443in + + + 0.4444444444444444in + + + 0.2777777777777778in + + + page-number + + + + + plain + + + + + + left + total-page + + + + + + + + + + + + + 16pt + bold + center + auto + + + + + + + totalOrders + + + Group/promoName + + + center + totalOrders_Group/promoName + + + 0.3333333333333333in + 0.5555555555555556in + + + + + #BFBFBF + + + bold + center + totalOrders + + + 0.23333333333333334in + + + + + + + + #BFBFBF + 0.3in + + + + + + + Group/promoName + + + + Fixed + Fixed + + center + totalOrdersPercent + + + 0.45555555555555555in + + + + + #BFBFBF + + + + + + + + + + + #BFBFBF + + + + + totalOrdersAmount + + + Group/promoName + + + + Fixed + #,##0.00 + + right + totalOrdersAmount_Group/promoName + + + 0.7555555555555555in + + + + + #BFBFBF + + + bold + + Fixed + #,##0.00 + + right + totalOrdersAmount + + + + + + + + + + #BFBFBF + + + + + + + Group/promoName + + + + Fixed + Fixed + + center + totalOrdersAmountPercent + + + 0.4222222222222222in + + + + + #BFBFBF + + + + + + + + + + + #BFBFBF + + + + + totalShippingCharge + + + Group/promoName + + + right + totalShippingCharge_Group/promoName + + + 1.6in + + + + + #BFBFBF + + + bold + right + totalShippingCharge + + + + + + + + + + #BFBFBF + + + + + totalShippingAmount + + + Group/promoName + + + right + totalShippingAmount_Group/promoName + + + 1.6555555555555554in + + + + + #BFBFBF + + + bold + right + totalShippingAmount + + + + + + + + + + #BFBFBF + + + + + totalShippingBalance + + + Group/promoName + + + right + totalShippingBalance_Group/promoName + + + 1.1777777777777778in + + + + + #BFBFBF + + + bold + right + totalShippingBalance + + + + + + + + + + #BFBFBF + + + + + + + + + + + + + + + + Group + + + Group/productPromoId + + + + + center + productPromoId + + + 1.3777777777777778in + + + + + Group/promoName + + + + + promoName + + + 2.3666666666666667in + + + + + + + after + + + + + + + + #BFBFBF + + + CouponSalesReport + + + productPromoId + dimension["Group"]["productPromoId"] + string + + + promoName + dimension["Group"]["promoName"] + string + + + totalOrders_Group/promoName + measure["totalOrders"] + integer + + Group/promoName + + SUM + + + totalOrdersAmount_Group/promoName + measure["totalOrdersAmount"] + float + + Group/promoName + + SUM + + + totalShippingCharge_Group/promoName + measure["totalShippingCharge"] + float + + Group/promoName + + SUM + + + totalShippingAmount_Group/promoName + measure["totalShippingAmount"] + float + + Group/promoName + + SUM + + + totalShippingBalance_Group/promoName + measure["totalShippingBalance"] + float + + Group/promoName + + SUM + + + totalOrders + measure["totalOrders"] + integer + SUM + + + totalOrdersAmount + measure["totalOrdersAmount"] + float + SUM + + + totalShippingCharge + measure["totalShippingCharge"] + float + SUM + + + totalShippingAmount + measure["totalShippingAmount"] + float + SUM + + + totalShippingBalance + measure["totalShippingBalance"] + float + SUM + + + totalOrdersPercent + Finance.percent(data["totalOrders"], measure["totalOrders"]) + float + + + totalOrdersAmountPercent + Finance.percent(data["totalOrdersAmount"], measure["totalOrdersAmount"]) + float + + + + + diff --git a/birt/webapp/ordermgr/reports/Last3MonthsSalesReport.rptdesign b/birt/webapp/ordermgr/reports/Last3MonthsSalesReport.rptdesign new file mode 100644 index 000000000..b4b0cdaa4 --- /dev/null +++ b/birt/webapp/ordermgr/reports/Last3MonthsSalesReport.rptdesign @@ -0,0 +1,834 @@ + + + + Eclipse BIRT Designer Version 2.5.1.v20090903 Build <2.5.1.v20090917-1447> + in + + /templates/blank_report.gif + ltr + + + + + + + + 1 + orderId + string + + + 2 + orderItemSeqId + string + + + 3 + orderStatus + string + + + 4 + saleChannel + string + + + 5 + quantity + string + + + 6 + extGrossAmount + string + + + 7 + orderDateDayOfMonth + string + + + 8 + orderDateMonthOfYear + string + + + 9 + orderDateYearName + string + + + 10 + price + string + + + 11 + stock + string + + + 12 + productId + string + + + 13 + internalName + string + + + + + orderId + + + orderItemSeqId + + + orderStatus + + + saleChannel + + + quantity + + + extGrossAmount + + + orderDateDayOfMonth + + + orderDateMonthOfYear + + + orderDateYearName + + + price + + + stock + + + productId + + + internalName + + + + + + 1 + orderId + string + + + 2 + orderItemSeqId + string + + + 3 + orderStatus + string + + + 4 + saleChannel + string + + + 5 + quantity + string + + + 6 + extGrossAmount + string + + + 7 + orderDateDayOfMonth + string + + + 8 + orderDateMonthOfYear + string + + + 9 + orderDateYearName + string + + + 10 + price + string + + + 11 + stock + string + + + 12 + productId + string + + + 13 + internalName + string + + + + OFBIZ + + + + + + + + + NewTabularHierarchy + + + + + string + productId + + + string + internalName + + + string + price + + + string + stock + + + string + orderDateMonthOfYear + + + + + + + + + + + count + dataSetRow["orderItemSeqId"] + integer + + + sum + dataSetRow["quantity"] + float + + + sum + dataSetRow["extGrossAmount"] + float + + + + + SalesOrderItemStarSchema + + + + + + + + + + + + html + new Date()]]> + + + + + + + larger + bold + center + auto + + + + + + + orderItemSeqId + + + Group/orderDateMonthOfYear + + + orderItemSeqId_Group/orderDateMonthOfYear + + + 0.9888888888888889in + + + + + Group/productId + + + orderItemSeqId_Group/productId + + + + + + + orderItemSeqId + + + + + + + + + + 0.32222222222222224in + + + + + quantity + + + Group/orderDateMonthOfYear + + + quantity_Group/orderDateMonthOfYear + + + 0.9888888888888889in + + + + + Group/productId + + + quantity_Group/productId + + + + + + + quantity + + + + + + + + + + + + + + extGrossAmount + + + Group/orderDateMonthOfYear + + + extGrossAmount_Group/orderDateMonthOfYear + + + 0.9888888888888889in + + + + + Group/productId + + + extGrossAmount_Group/productId + + + + + + + extGrossAmount + + + + + + + + + + + + + + + + + + + + + + + + + Group + + + Group/productId + + + + + productId + + + 0.8777777777777778in + + + + + + + bold + right + productId_TOTAL + + + + + + + Group/internalName + + + + + internalName + + + 2.3222222222222224in + + + + + Group/price + + + + + price + + + 0.5666666666666667in + + + + + Group/stock + + + + + stock + + + 0.6in + + + + + Group/orderDateMonthOfYear + + + + + orderDateMonthOfYear + + + 0.5666666666666667in + + + + + + + after + + + + + + + 4.844444444444444in + + 0.8333333333333334in + + + 2.2888888888888888in + + + 0.6in + + + 0.5888888888888889in + + + 0.5444444444444444in + + + + + bold + auto + + + + + + bold + auto + + + + + + bold + auto + + + + + + bold + auto + + + + + + bold + auto + + + + + + + + + DataCube + + + productId + dimension["Group"]["productId"] + string + + + internalName + dimension["Group"]["internalName"] + string + + + price + dimension["Group"]["price"] + string + + + stock + dimension["Group"]["stock"] + string + + + orderDateMonthOfYear + dimension["Group"]["orderDateMonthOfYear"] + string + + + orderItemSeqId_Group/orderDateMonthOfYear + measure["orderItemSeqId"] + integer + + Group/orderDateMonthOfYear + + SUM + + + quantity_Group/orderDateMonthOfYear + measure["quantity"] + float + + Group/orderDateMonthOfYear + + SUM + + + extGrossAmount_Group/orderDateMonthOfYear + measure["extGrossAmount"] + float + + Group/orderDateMonthOfYear + + SUM + + + orderItemSeqId_Group/productId + measure["orderItemSeqId"] + integer + + Group/productId + + SUM + + + quantity_Group/productId + measure["quantity"] + float + + Group/productId + + SUM + + + extGrossAmount_Group/productId + measure["extGrossAmount"] + float + + Group/productId + + SUM + + + productId_TOTAL + dimension["Group"]["productId"]+" TOTAL" + string + + + orderItemSeqId + measure["orderItemSeqId"] + integer + SUM + + + quantity + measure["quantity"] + float + SUM + + + extGrossAmount + measure["extGrossAmount"] + float + SUM + + + + + diff --git a/birt/webapp/ordermgr/reports/NetBeforeOverheadReport.rptdesign b/birt/webapp/ordermgr/reports/NetBeforeOverheadReport.rptdesign new file mode 100644 index 000000000..dd3f592c2 --- /dev/null +++ b/birt/webapp/ordermgr/reports/NetBeforeOverheadReport.rptdesign @@ -0,0 +1,5219 @@ + + + + Eclipse BIRT Designer Version 2.2.2.r222_v20071226 Build <2.2.2.v20080226-1155> + in + Copyright (c) 2007 <<Your Company Name here>> + Creates a blank report with no predefined content. + + + NBO Cube.NBO.x + integer + false + + + NBO Cube.NBO.y + integer + false + + + NBO Cube.Account.NewTabularHierarchy1.x + integer + false + + + NBO Cube.Account.NewTabularHierarchy1.y + integer + false + + + NBO Cube.NBO.width + integer + false + + + NBO Cube.NBO.height + integer + false + + + NBO Data Cube.NBO.x + integer + false + + + NBO Data Cube.NBO.y + integer + false + + + NBO Date Data Cube.NBO.x + integer + false + + + NBO Date Data Cube.NBO.y + integer + false + + + NBO Mouthly Data Cube.NBO_Monthly.x + integer + false + + + NBO Mouthly Data Cube.NBO_Monthly.y + integer + false + + + 261 + 35 + 10 + 172 + 150 + 200 + 135 + 80 + 135 + 80 + 135 + 80 + Blank Report + /templates/blank_report.gif + + + static + string + simple + false + text-box + true + + Unformatted + + + + static + string + simple + false + text-box + true + + Unformatted + + + + static + integer + simple + false + text-box + true + + Unformatted + + + + static + integer + simple + false + text-box + true + + Unformatted + + + + static + integer + simple + false + text-box + true + + Unformatted + + + + + + + + + + + 1 + SalesChannel + string + + + 2 + orderDateMonthName + string + + + 3 + orderDateDateValue + string + + + 4 + Parcel + integer + + + 5 + GS + decimal + + + 6 + GMS + decimal + + + 7 + GMP + decimal + + + 8 + GSP + decimal + + + 9 + GP + decimal + + + 10 + eBay + decimal + + + 11 + eBay% + decimal + + + 12 + RRC + decimal + + + 13 + RRC% + decimal + + + 14 + Others + decimal + + + 15 + GP% + decimal + + + 16 + GMP% + decimal + + + 17 + NBO + decimal + + + 18 + Monthly Projection + decimal + + + 19 + Monthly Forecast + decimal + + + 20 + Daily + integer + + + 21 + Pod + string + + + 22 + Account + string + + + 23 + Date + string + + + 24 + Month + string + + + 25 + MonthName + string + + + 26 + Today + string + + + + + SalesChannel + SalesChannel + + + orderDateMonthName + orderDateMonthName + + + orderDateDateValue + orderDateDateValue + + + Parcel + Parcel + + + GS + GS + + + GMS + GMS + + + GMP + GMP + + + GSP + GSP + + + GP + GP + + + eBay + eBay + + + eBay% + eBay% + + + RRC + RRC + + + RRC% + RRC% + + + Others + Others + + + GP% + GP% + + + GMP% + GMP% + + + NBO + NBO + + + Daily + Daily + + + Monthly Projection + Monthly Projection + + + Monthly Forecast + Monthly Forecast + + + Pod + Pod + + + Account + Account + + + Date + Date + + + Month + Month + + + MonthName + MonthName + + + Today + Today + + + + + + 1 + SalesChannel + string + + + 2 + orderDateMonthName + string + + + 3 + orderDateDateValue + string + + + 4 + Parcel + integer + + + 5 + GS + decimal + + + 6 + GMS + decimal + + + 7 + GMP + decimal + + + 8 + GSP + decimal + + + 9 + GP + decimal + + + 10 + eBay + decimal + + + 11 + eBay% + decimal + + + 12 + RRC + decimal + + + 13 + RRC% + decimal + + + 14 + Others + decimal + + + 15 + GP% + decimal + + + 16 + GMP% + decimal + + + 17 + NBO + decimal + + + 18 + Monthly Projection + decimal + + + 19 + Monthly Forecast + decimal + + + 20 + Daily + integer + + + 21 + Pod + string + + + 22 + Account + string + + + 23 + Date + string + + + 24 + Month + string + + + 25 + MonthName + string + + + 26 + Today + string + + + + OFbiz + + = totalRows) return false; +{ + starschema = starschemas.get(currentRow); + orderDateDateValue = starschema.getString("orderDateDateValue"); + orderDateDayName = starschema.getString("orderDateDayName"); + orderDateDayOfMonth = starschema.getString("orderDateDayOfMonth"); + orderDateMonthName = starschema.getString("orderDateMonthName"); + orderDateYearName = starschema.getString("orderDateYearName"); + orderDateYearMonthDay = starschema.getString("orderDateYearMonthDay"); + orderDateMonthOfYear = starschema.getString("orderDateMonthOfYear"); + orderDateDescription = starschema.getString("orderDateDescription"); + + quantity = starschema.getString("quantity"); + GS = starschema.getString("GrossSales"); + GMS = starschema.getString("GrossMerchandizeSales"); + GMP = starschema.getString("GrossMerchandizeProfit"); + GSP = starschema.getString("GrossShippingProfit"); + GP = starschema.getString("GrossProfit"); + eBay = starschema.getString("eBay"); + RRC = starschema.getString("RRC"); + Others = starschema.getString("OtherFree"); + NBO = starschema.getString("NBO"); + + salesChannelEnumId = starschema.getString("salesChannelEnumId"); + + if (orderDateMonthOfYear == DateMonth) + { + row["Daily"] = 1; + } + else + { + row["Daily"] = 2; + } + + if (salesChannelEnumId == "B2C_AU_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_AU; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_CA_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_CA; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_IE_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_IE; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_SG_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_SG; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_UK_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_UK; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_US_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_US; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_DE_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_DE; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_ES_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_ES; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_FR_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_FR; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_IT_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_IT; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + + currentRow ++; +} + +return true;]]> + + + + + 1 + SalesChannel + string + + + 2 + orderDateDayOfMonth + string + + + 3 + orderDateMonthName + string + + + 4 + orderDateYearName + string + + + 5 + orderDateDateValue + string + + + 6 + Parcel + integer + + + 7 + GS + decimal + + + 8 + GMS + decimal + + + 9 + GMP + decimal + + + 10 + GSP + decimal + + + 11 + GP + decimal + + + 12 + eBay + decimal + + + 13 + eBay% + decimal + + + 14 + RRC + decimal + + + 15 + RRC% + decimal + + + 16 + Others + decimal + + + 17 + GP% + decimal + + + 18 + GMP% + decimal + + + 19 + NBO + decimal + + + 20 + Pod + string + + + 21 + Account + string + + + 22 + Date + string + + + + + SalesChannel + SalesChannel + + + orderDateDayOfMonth + orderDateDayOfMonth + + + orderDateMonthName + orderDateMonthName + + + orderDateYearName + orderDateYearName + + + orderDateDateValue + orderDateDateValue + + + Parcel + Parcel + + + GS + GS + + + GMS + GMS + + + GMP + GMP + + + GSP + GSP + + + eBay + eBay + + + RRC + RRC + + + Others + Others + + + Pod + Pod + + + Account + Account + + + Date + Date + + + NBO + NBO + + + eBay% + eBay% + + + RRC% + RRC% + + + GP% + GP% + + + GMP% + GMP% + + + GP + GP + + + + + + 1 + SalesChannel + string + + + 2 + orderDateDayOfMonth + string + + + 3 + orderDateMonthName + string + + + 4 + orderDateYearName + string + + + 5 + orderDateDateValue + string + + + 6 + Parcel + integer + + + 7 + GS + decimal + + + 8 + GMS + decimal + + + 9 + GMP + decimal + + + 10 + GSP + decimal + + + 11 + GP + decimal + + + 12 + eBay + decimal + + + 13 + eBay% + decimal + + + 14 + RRC + decimal + + + 15 + RRC% + decimal + + + 16 + Others + decimal + + + 17 + GP% + decimal + + + 18 + GMP% + decimal + + + 19 + NBO + decimal + + + 20 + Pod + string + + + 21 + Account + string + + + 22 + Date + string + + + + OFbiz + + = totalRows) return false; +{ + Date_starschema = Date_starschemas.get(currentRow); + orderDateDateValue = Date_starschema.getString("orderDateDateValue"); + orderDateDayName = Date_starschema.getString("orderDateDayName"); + orderDateDayOfMonth = Date_starschema.getString("orderDateDayOfMonth"); + orderDateMonthName = Date_starschema.getString("orderDateMonthName"); + orderDateYearName = Date_starschema.getString("orderDateYearName"); + orderDateYearMonthDay = Date_starschema.getString("orderDateYearMonthDay"); + orderDateMonthOfYear = Date_starschema.getString("orderDateMonthOfYear"); + orderDateDescription = Date_starschema.getString("orderDateDescription"); + + quantity = Date_starschema.getString("quantity"); + GS = Date_starschema.getString("GrossSales"); + GMS = Date_starschema.getString("GrossMerchandizeSales"); + GMP = Date_starschema.getString("GrossMerchandizeProfit"); + GSP = Date_starschema.getString("GrossShippingProfit"); + GP = Date_starschema.getString("GrossProfit"); + eBay = Date_starschema.getString("eBay"); + RRC = Date_starschema.getString("RRC"); + Others = Date_starschema.getString("OtherFree"); + NBO = Date_starschema.getString("NBO"); + + salesChannelEnumId = Date_starschema.getString("salesChannelEnumId"); + + if (salesChannelEnumId == "B2C_AU_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_AU; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_CA_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_CA; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_IE_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_IE; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_SG_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_SG; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_UK_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_UK; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_US_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_US; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_DE_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_DE; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_ES_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_ES; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_FR_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_FR; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_IT_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_IT; + row["Date"] = orderDateYearMonthDay; + } + + currentRow ++; +} + +return true;]]> + + + + + 1 + SalesChannel + string + + + 2 + orderDateMonthName + string + + + 3 + Pod + string + + + 4 + Account + string + + + 5 + NBO + decimal + + + 6 + CountDate + integer + + + 7 + Monthly Forecast + decimal + + + + + SalesChannel + SalesChannel + + + orderDateMonthName + orderDateMonthName + + + Pod + Pod + + + Account + Account + + + NBO + NBO + + + CountDate + CountDate + + + Monthly Forecast + Monthly Forecast + + + + + + 1 + SalesChannel + string + + + 2 + orderDateMonthName + string + + + 3 + Pod + string + + + 4 + Account + string + + + 5 + NBO + decimal + + + 6 + CountDate + integer + + + 7 + Monthly Forecast + decimal + + + + OFbiz + + = totalRows) return false; +{ + starschema = starschemas.get(currentRow); + + salesChannelEnumId = starschema.getString("salesChannelEnumId"); + orderDateMonthName = starschema.getString("orderDateMonthName"); + orderDateYearName = starschema.getString("orderDateYearName"); + NBO = starschema.getString("NBO"); + CountDate = starschema.getString("CountDate"); + + if (salesChannelEnumId == "B2C_AU_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod1; + row["Account"] = account_B2C_AU; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_CA_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod1; + row["Account"] = account_B2C_CA; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_IE_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod1; + row["Account"] = account_B2C_IE; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_SG_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod1; + row["Account"] = account_B2C_SG; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_UK_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod1; + row["Account"] = account_B2C_UK; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_US_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod1; + row["Account"] = account_B2C_US; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_DE_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod2; + row["Account"] = account_B2C_DE; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_ES_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod2; + row["Account"] = account_B2C_ES; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_FR_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod2; + row["Account"] = account_B2C_FR; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_IT_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod2; + row["Account"] = account_B2C_IT; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + + currentRow ++; +} + +return true;]]> + + + + + NBO Summary Field + + + false + NewTabularHierarchy + + + + + string + Today + + + + + + + NewTabularHierarchy1 + + + + + string + Pod + + + string + Account + + + integer + dynamic + + + orderDateMonthName + string + + + Daily + + + + + + + + + + + average + dataSetRow["Parcel"] + integer + + + average + dataSetRow["GS"] + decimal + + + average + dataSetRow["GMP"] + decimal + + + average + false + dataSetRow["GSP"] + decimal + + + average + dataSetRow["GP"] + decimal + + + average + dataSetRow["eBay"] + decimal + + + average + (dataSetRow["eBay"]/dataSetRow["GP"]) + decimal + + + average + dataSetRow["RRC"] + decimal + + + average + false + (dataSetRow["RRC"]/dataSetRow["GP"]) + decimal + + + average + false + dataSetRow["Others"] + decimal + + + average + (dataSetRow["GP"]/dataSetRow["GS"]) + decimal + + + average + (dataSetRow["GMP"]/dataSetRow["GMS"]) + decimal + + + average + dataSetRow["NBO"] + decimal + + + + + NBO_Month + + + NBO_Today Summary Field + + + NewTabularHierarchy2 + + + + + string + orderDateDateValue + + + + + + + NewTabularHierarchy3 + + + + + string + Pod + + + string + Account + + + string + Date + + + + + + + + + + + dataSetRow["Parcel"] + integer + + + dataSetRow["GS"] + decimal + + + dataSetRow["GMP"] + decimal + + + dataSetRow["GSP"] + decimal + + + dataSetRow["GP"] + decimal + + + dataSetRow["eBay"] + decimal + + + (dataSetRow["eBay"]/dataSetRow["GP"]) + decimal + + + dataSetRow["RRC"] + decimal + + + (dataSetRow["RRC"]/dataSetRow["GP"]) + decimal + + + dataSetRow["Others"] + decimal + + + (dataSetRow["GP"]/dataSetRow["GS"]) + decimal + + + (dataSetRow["GMP"]/dataSetRow["GMS"]) + decimal + + + dataSetRow["NBO"] + decimal + + + + + NBO_Date + + + NBO MonthlySummary Field + + + NewTabularHierarchy6 + + + + + string + orderDateMonthName + + + + + + + NewTabularHierarchy7 + + + + + string + Pod + + + string + Account + + + + + + + + + + + sum + dataSetRow["NBO"] + decimal + + + (dataSetRow["NBO"]/dataSetRow["CountDate"])*params["NunberDate"] + decimal + + + dataSetRow["Monthly Forecast"] + decimal + + + + + NBO_Monthly + + + + + + + + + landscape + 0.25in + 0.25in + 0.25in + 0.25in + + + html + new Date()]]> + + + + + + + + 0 + + + Parcel1 + + + + + Parcel1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + Parcel1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + Parcel1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + GS1 + + + + + + Currency + $###0 + + GS1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + + Currency + $###0 + + GS1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + + Currency + $###0 + + GS1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + GMP1 + + + + + + Currency + $###0 + + GMP1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + + Currency + $###0 + + GMP1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + + Currency + $###0 + + GMP1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + GSP1 + + + + + + Currency + $###0 + + GSP1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + + Currency + $###0 + + GSP1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + + Currency + $###0 + + GSP1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + GP1 + + + + + + Currency + $###0 + + GP1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + + Currency + $###0 + + GP1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + + Currency + $###0 + + GP1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + eBay1 + + + + + + Currency + $###0 + + eBay1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + + Currency + $###0 + + eBay1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + + Currency + $###0 + + eBay1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + eBay%1 + + + + + + Percent + ###0% + + eBay%1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + + Percent + ###0% + + eBay%1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + + Percent + ###0% + + eBay%1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + RRC1 + + + + + + Currency + $###0 + + RRC1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + + Currency + $###0 + + RRC1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + + Currency + $###0 + + RRC1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + RRC%1 + + + + + + Percent + ###0.0% + + RRC%1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + + Percent + ###0.0% + + RRC%1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + + Percent + ###0.0% + + RRC%1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + Others1 + + + + + + Currency + $###0 + + Others1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + + Currency + $###0 + + Others1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + + Currency + $###0 + + Others1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + GP%1 + + + + + + Percent + ###0.0% + + GP%1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + + Percent + ###0.0% + + GP%1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + + Percent + ###0.0% + + GP%1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + GMP%1 + + + + + + Percent + ###0.0% + + GMP%1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + + Percent + ###0.0% + + GMP%1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + + Percent + ###0.0% + + GMP%1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + NBO1 + + + + + + Currency + $###0 + + NBO1 + + + + + + + Account_Today/Pod + Date_Today/orderDateDateValue + #E5E5E5 + + + + Currency + $###0 + + NBO1_Account_Today/Pod_Date_Today/orderDateDateValue + + + + + Date_Today/orderDateDateValue + #BFBFBF + + + + Currency + $###0 + + NBO1_Date_Today/orderDateDateValue + + + + + + + + + + #FFFF00 + + + + + + + + + + + + #BFBFBF + + + + + Account_Today + + + Account_Today/Pod + + + + + center + Pod + + + #FFFF00 + middle + + + + + + + + #E5E5E5 + + + + + Account_Today/Account + + + + + center + Account + + + #FFFF00 + middle + + + + + Account_Today/Date + + + + + center + Date + + + #FFFF00 + middle + + + + + + + + + + + + + Date_Today + + + Date_Today/orderDateDateValue + + + + + center + orderDateDateValue + + + #FFFF00 + + + + + + + + + NBO Date Data Cube + + + Pod + dimension["Account_Today"]["Pod"] + string + + + orderDateDateValue + dimension["Date_Today"]["orderDateDateValue"] + string + + + Parcel1 + measure["Parcel1"] + integer + + + Account + dimension["Account_Today"]["Account"] + string + + + Date + "Today" + string + + + GS1 + measure["GS1"] + decimal + + + GMP1 + measure["GMP1"] + decimal + + + GSP1 + measure["GSP1"] + decimal + + + GP1 + measure["GP1"] + decimal + + + eBay1 + measure["eBay1"] + decimal + + + eBay%1 + measure["eBay%1"] + decimal + + + RRC1 + measure["RRC1"] + decimal + + + RRC%1 + measure["RRC%1"] + decimal + + + Others1 + measure["Others1"] + decimal + + + GP%1 + measure["GP%1"] + decimal + + + GMP%1 + measure["GMP%1"] + decimal + + + NBO1 + measure["NBO1"] + decimal + + + Parcel1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["Parcel1"] + integer + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + GS1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["GS1"] + decimal + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + GMP1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["GMP1"] + decimal + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + GSP1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["GSP1"] + decimal + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + GP1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["GP1"] + decimal + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + eBay1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["eBay1"] + decimal + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + eBay%1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["eBay%1"] + decimal + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + RRC1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["RRC1"] + decimal + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + RRC%1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["RRC%1"] + decimal + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + Others1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["Others1"] + decimal + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + GP%1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["GP%1"] + decimal + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + GMP%1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["GMP%1"] + decimal + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + NBO1_Account_Today/Pod_Date_Today/orderDateDateValue + measure["NBO1"] + decimal + + Account_Today/Pod + Date_Today/orderDateDateValue + + sum + + + Parcel1_Date_Today/orderDateDateValue + measure["Parcel1"] + integer + + Date_Today/orderDateDateValue + + sum + + + GS1_Date_Today/orderDateDateValue + measure["GS1"] + decimal + + Date_Today/orderDateDateValue + + sum + + + GMP1_Date_Today/orderDateDateValue + measure["GMP1"] + decimal + + Date_Today/orderDateDateValue + + sum + + + GSP1_Date_Today/orderDateDateValue + measure["GSP1"] + decimal + + Date_Today/orderDateDateValue + + sum + + + GP1_Date_Today/orderDateDateValue + measure["GP1"] + decimal + + Date_Today/orderDateDateValue + + sum + + + eBay1_Date_Today/orderDateDateValue + measure["eBay1"] + decimal + + Date_Today/orderDateDateValue + + sum + + + eBay%1_Date_Today/orderDateDateValue + measure["eBay%1"] + decimal + + Date_Today/orderDateDateValue + + sum + + + RRC1_Date_Today/orderDateDateValue + measure["RRC1"] + decimal + + Date_Today/orderDateDateValue + + sum + + + RRC%1_Date_Today/orderDateDateValue + measure["RRC%1"] + decimal + + Date_Today/orderDateDateValue + + sum + + + Others1_Date_Today/orderDateDateValue + measure["Others1"] + decimal + + Date_Today/orderDateDateValue + + sum + + + GP%1_Date_Today/orderDateDateValue + measure["GP%1"] + decimal + + Date_Today/orderDateDateValue + + sum + + + GMP%1_Date_Today/orderDateDateValue + measure["GMP%1"] + decimal + + Date_Today/orderDateDateValue + + sum + + + NBO1_Date_Today/orderDateDateValue + measure["NBO1"] + decimal + + Date_Today/orderDateDateValue + + sum + + + + + 0 + + + Parcel + + + + + Parcel + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + Parcel_Account/Pod_Date/Today_1 + + + Parcel_lastmonth + + + + + Date/Today + #BFBFBF + + + Parcel_Date/Today + + + Parcel_total_lastmonth + + + + + + + + + + #1E90FF + + + + + GS + + + + + + Currency + $###0 + + GS + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + + Currency + $###0 + + GS_Account/Pod_Date/Today + + + + Currency + $###0 + + GS_lastmonth + + + + + Date/Today + #BFBFBF + + + + Currency + $###0 + + GS_Date/Today + + + + Currency + $###0 + + GS_total_lastmonth + + + + + + + + + + #1E90FF + + + + + GMP + + + + + + Currency + $###0 + + GMP + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + + Currency + $###0 + + GMP_Account/Pod_Date/Today + + + + Currency + $###0 + + GMP_lastmonth + + + + + Date/Today + #BFBFBF + + + + Currency + $###0 + + GMP_Date/Today + + + + Currency + $###0 + + GMO_total_lastmonth + + + + + + + + + + #1E90FF + + + + + GSP + + + + + + Currency + $###0 + + GSP + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + + Currency + $###0 + + GSP_Account/Pod_Date/Today + + + + Currency + $###0 + + GSP_lastmonth + + + + + Date/Today + #BFBFBF + + + + Currency + $###0 + + GSP_Date/Today + + + + Currency + $###0 + + GSP_taotal_lastmonth + + + + + + + + + + #1E90FF + + + + + GP + + + + + + Currency + $###0 + + GP + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + + Currency + $###0 + + GP_Account/Pod_Date/Today + + + + Currency + $###0 + + GP_lastmonth + + + + + Date/Today + #BFBFBF + + + + Currency + $###0 + + GP_Date/Today + + + + Currency + $###0 + + GP_total_lastmonth + + + + + + + + + + #1E90FF + + + + + eBay + + + + + + Currency + $###0 + + eBay + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + + Currency + $###0 + + eBay_Account/Pod_Date/Today + + + + Currency + $###0 + + eBay_lastmonth + + + + + Date/Today + #BFBFBF + + + + Currency + $###0 + + eBay_Date/Today + + + + Currency + $###0 + + ebay_total_lastmonth + + + + + + + + + + #1E90FF + + + + + eBay% + + + + + + Percent + ###0% + + eBay% + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + + Percent + ###0% + + eBay%_Account/Pod_Date/Today + + + + Percent + ###0% + + eBay%_lastmonth + + + + + Date/Today + #BFBFBF + + + + Percent + ###0% + + eBay%_Date/Today + + + + Percent + ###0% + + eBay%_total_lastmonth + + + + + + + + + + #1E90FF + + + + + RRC + + + + + + Currency + $###0 + + RRC + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + + Currency + $###0 + + RRC_Account/Pod_Date/Today + + + + Currency + $###0 + + RRC_lastmonth + + + + + Date/Today + #BFBFBF + + + + Currency + $###0 + + RRC_Date/Today + + + + Currency + $###0 + + RRC_total_lastmonth + + + + + + + + + + #1E90FF + + + + + RRC% + + + + + + Percent + ###0.0% + + RRC% + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + + Percent + ###0% + + RRC%_Account/Pod_Date/Today + + + + Percent + ###0% + + RRC%_lastmonth + + + + + Date/Today + #BFBFBF + + + + Percent + ###0% + + RRC%_Date/Today + + + + Percent + ###0% + + RRC%_total_lastmonth + + + + + + + + + + #1E90FF + + + + + Others + + + + + + Currency + $###0 + + Others + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + + Currency + $###0 + + Others_Account/Pod_Date/Today + + + + Currency + $###0 + + Others_lastmonth + + + + + Date/Today + #BFBFBF + + + + Currency + $###0 + + Others_Date/Today + + + + Currency + $###0 + + Others_total_lastmonth + + + + + + + + + + #1E90FF + + + + + GP% + + + + + + Percent + ###0.0% + + GP% + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + + Percent + ###0% + + GP%_Account/Pod_Date/Today + + + + Percent + ###0% + + GP%_lastmonth + + + + + Date/Today + #BFBFBF + + + + Percent + ###0.0% + + GP%_Date/Today + + + + Percent + ###0.0% + + GP%_total_lastmonth + + + + + + + + + + #1E90FF + + + + + GMP% + + + + + + Percent + ###0.0% + + GMP% + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + + Percent + ###0.0% + + GMP%_Account/Pod_Date/Today + + + + Percent + ###0.0% + + GMP%_lastmonth + + + + + Date/Today + #BFBFBF + + + + Percent + ###0.0% + + GMP%_Date/Today + + + + Percent + ###0.0% + + GMP%_total_lastmonth + + + + + + + + + + #1E90FF + + + + + NBO + + + + + + Currency + $###0 + + NBO + + + + + + + Account/Pod + Date/Today + #E5E5E5 + + + + Currency + $###0 + + NBO_Account/Pod_Date/Today + + + + Currency + $###0 + + NBO_lastmonth + + + + + Date/Today + #BFBFBF + + + + Currency + $###0 + + NBO_Date/Today + + + + Currency + $###0 + + NBO_total_lastmonth + + + + + + + + + + #1E90FF + + + + + + + + + + + + + #BFBFBF + + + + + Account + + + Account/Pod + + + + + 0pt + 1pt + center + auto + Pod + + + #1E90FF + middle + + + eq + data["Pod"] + English + #FFFF00 + + + + + + + + + + + #E5E5E5 + + + + + Account/Account + + + + + 0pt + 1pt + center + Account + + + #1E90FF + middle + + + + + Account/Daily + + + + + center + Show_Daily + + + #1E90FF + 67px + + + + + + + + + + + + + Date + + + Date/Today + + + + + center + Today + + + #1E90FF + + + + + + + + + NBO Month Data Cube + + + Pod + dimension["Account"]["Pod"] + string + + + Parcel + measure["Parcel"] + integer + + + GS + measure["GS"] + decimal + + + GMP + measure["GMP"] + decimal + + + GSP + measure["GSP"] + decimal + + + GP + measure["GP"] + decimal + + + eBay + measure["eBay"] + decimal + + + eBay% + measure["eBay%"] + decimal + + + RRC + measure["RRC"] + decimal + + + RRC% + measure["RRC%"] + decimal + + + Others + measure["Others"] + decimal + + + GP% + measure["GP%"] + decimal + + + GMP% + measure["GMP%"] + decimal + + + NBO + measure["NBO"] + decimal + + + Account + dimension["Account"]["Account"] + string + + + Daily + dimension["Account"]["Daily"] + integer + + + Today + "Average this month and last month" + string + + + Show_Daily + if(dimension["Account"]["Daily"]==1) +{ + "Daily Avg in "+dimension["Account"]["Daily"]["orderDateMonthName"].substring(0,3) +} +else if(dimension["Account"]["Daily"]==2) +{ + "Daily Avg in "+dimension["Account"]["Daily"]["orderDateMonthName"].substring(0,3) +} + string + + + Parcel_Account/Pod_Date/Today + measure["Parcel"] + integer + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + GS_Account/Pod_Date/Today + measure["GS"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + GMP_Account/Pod_Date/Today + measure["GMP"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + GSP_Account/Pod_Date/Today + measure["GSP"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + GP_Account/Pod_Date/Today + measure["GP"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + eBay_Account/Pod_Date/Today + measure["eBay"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + eBay%_Account/Pod_Date/Today + measure["eBay%"] + decimal + + Account/Pod + Date/Today + + AVE + dimension["Account"]["Daily"]==1 + + + RRC_Account/Pod_Date/Today + measure["RRC"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + RRC%_Account/Pod_Date/Today + measure["RRC%"] + decimal + + Account/Pod + Date/Today + + AVE + dimension["Account"]["Daily"]==1 + + + Others_Account/Pod_Date/Today + measure["Others"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + GP%_Account/Pod_Date/Today + measure["GP%"] + decimal + + Account/Pod + Date/Today + + AVE + dimension["Account"]["Daily"]==1 + + + GMP%_Account/Pod_Date/Today + measure["GMP%"] + decimal + + Account/Pod + Date/Today + + AVE + dimension["Account"]["Daily"]==1 + + + NBO_Account/Pod_Date/Today + measure["NBO"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + Parcel_Date/Today + measure["Parcel"] + integer + + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + GS_Date/Today + measure["GS"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + GMP_Date/Today + measure["GMP"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + GSP_Date/Today + measure["GSP"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + GP_Date/Today + measure["GP"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + eBay_Date/Today + measure["eBay"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + eBay%_Date/Today + measure["eBay%"] + decimal + + Date/Today + + AVE + dimension["Account"]["Daily"]==1 + + + RRC_Date/Today + measure["RRC"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + RRC%_Date/Today + measure["RRC%"] + decimal + + Date/Today + + AVE + dimension["Account"]["Daily"]==1 + + + Others_Date/Today + measure["Others"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + GP%_Date/Today + measure["GP%"] + decimal + + Date/Today + + AVE + dimension["Account"]["Daily"]==1 + + + GMP%_Date/Today + measure["GMP%"] + decimal + + Date/Today + + AVE + dimension["Account"]["Daily"]==1 + + + NBO_Date/Today + measure["NBO"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + Parcel_Account/Pod_Date/Today_1 + measure["Parcel"] + integer + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==1 + + + Parcel_lastmonth + measure["Parcel"] + integer + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + GS_lastmonth + measure["GS"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + GMP_lastmonth + measure["GMP"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + GSP_lastmonth + measure["GSP"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + GP_lastmonth + measure["GP"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + eBay_lastmonth + measure["eBay"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + eBay%_lastmonth + measure["eBay%"] + decimal + + Account/Pod + Date/Today + + AVE + dimension["Account"]["Daily"]==2 + + + RRC_lastmonth + measure["RRC"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + RRC%_lastmonth + measure["RRC%"] + decimal + + Account/Pod + Date/Today + + AVE + dimension["Account"]["Daily"]==2 + + + Others_lastmonth + measure["Others"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + GP%_lastmonth + measure["GP%"] + decimal + + Account/Pod + Date/Today + + AVE + dimension["Account"]["Daily"]==2 + + + GMP%_lastmonth + measure["GMP%"] + decimal + + Account/Pod + Date/Today + + AVE + dimension["Account"]["Daily"]==2 + + + NBO_lastmonth + measure["NBO"] + decimal + + Account/Pod + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + Parcel_total_lastmonth + measure["Parcel"] + integer + + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + GS_total_lastmonth + measure["GS"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + GMO_total_lastmonth + measure["GMP"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + GSP_taotal_lastmonth + measure["GSP"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + GP_total_lastmonth + measure["GP"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + ebay_total_lastmonth + measure["eBay"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + eBay%_total_lastmonth + measure["eBay%"] + decimal + + Date/Today + + AVE + dimension["Account"]["Daily"]==2 + + + RRC_total_lastmonth + measure["RRC"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + RRC%_total_lastmonth + measure["RRC%"] + decimal + + Date/Today + + AVE + dimension["Account"]["Daily"]==2 + + + Others_total_lastmonth + measure["Others"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + GP%_total_lastmonth + measure["GP%"] + decimal + + Date/Today + + AVE + dimension["Account"]["Daily"]==2 + + + GMP%_total_lastmonth + measure["GMP%"] + decimal + + Date/Today + + AVE + dimension["Account"]["Daily"]==2 + + + NBO_total_lastmonth + measure["NBO"] + decimal + + Date/Today + + SUM + dimension["Account"]["Daily"]==2 + + + + + 0 + + + NBO Monthly + + + + + + Currency + $###0 + + NBO Monthly + + + + + + + Accounts/Pod + Monthly/orderDateMonthName + #E5E5E5 + + + + Currency + $###0 + + NBO Monthly_Accounts/Pod_Monthly/orderDateMonthName + + + + + Monthly/orderDateMonthName + #BFBFBF + + + + Currency + $###0 + + NBO Monthly_Monthly/orderDateMonthName + + + + + + + + + + #A52A2A + + + + + Monthly Projection + + + + + + Currency + $###0 + + Monthly Projection + + + + + + + Accounts/Pod + Monthly/orderDateMonthName + #E5E5E5 + + + + Currency + $###0 + + Monthly Projection_Accounts/Pod_Monthly/orderDateMonthName + + + + + Monthly/orderDateMonthName + #BFBFBF + + + + Currency + $###0 + + Monthly Projection_Monthly/orderDateMonthName + + + + + + + + + + #A52A2A + + + + + Monthly Forecast + + + + + + Currency + $###0 + + Monthly Forecast + + + + + + + Accounts/Pod + Monthly/orderDateMonthName + #E5E5E5 + + + + Currency + $###0 + + Monthly Forecast_Accounts/Pod_Monthly/orderDateMonthName + + + + + Monthly/orderDateMonthName + #BFBFBF + + + + Currency + $###0 + + Monthly Forecast_Monthly/orderDateMonthName + + + + + + + + + + #A52A2A + + + + + + + + + + + + #BFBFBF + + + + + Accounts + + + Accounts/Pod + + + + + center + Pod + + + #A52A2A + + + + + + + + #E5E5E5 + + + + + Accounts/Account + + + + + center + Account + + + #A52A2A + + + + + + + + + + + + + Monthly + + + Monthly/orderDateMonthName + + + + + center + orderDateMonthName + + + #A52A2A + + + + + + + + + NBO Mouthly Data Cube + + + orderDateMonthName + dimension["Monthly"]["orderDateMonthName"] + string + + + Pod + dimension["Accounts"]["Pod"] + string + + + NBO Monthly + measure["NBO Monthly"] + decimal + + + Monthly Projection + measure["Monthly Projection"] + decimal + + + Monthly Forecast + measure["Monthly Forecast"] + integer + + + Account + dimension["Accounts"]["Account"] + string + + + NBO Monthly_Accounts/Pod_Monthly/orderDateMonthName + measure["NBO Monthly"] + decimal + + Accounts/Pod + Monthly/orderDateMonthName + + sum + + + Monthly Projection_Accounts/Pod_Monthly/orderDateMonthName + measure["Monthly Projection"] + integer + + Accounts/Pod + Monthly/orderDateMonthName + + sum + + + Monthly Forecast_Accounts/Pod_Monthly/orderDateMonthName + measure["Monthly Forecast"] + integer + + Accounts/Pod + Monthly/orderDateMonthName + + sum + + + NBO Monthly_Monthly/orderDateMonthName + measure["NBO Monthly"] + decimal + + Monthly/orderDateMonthName + + sum + + + Monthly Projection_Monthly/orderDateMonthName + measure["Monthly Projection"] + integer + + Monthly/orderDateMonthName + + sum + + + Monthly Forecast_Monthly/orderDateMonthName + measure["Monthly Forecast"] + integer + + Monthly/orderDateMonthName + + sum + + + + + diff --git a/birt/webapp/ordermgr/reports/OrderByReferrer.rptdesign b/birt/webapp/ordermgr/reports/OrderByReferrer.rptdesign new file mode 100644 index 000000000..8761621fc --- /dev/null +++ b/birt/webapp/ordermgr/reports/OrderByReferrer.rptdesign @@ -0,0 +1,774 @@ + + + + Eclipse BIRT Designer Version 2.5.1.v20090903 Build <2.5.1.v20090917-1447> + in + + /templates/blank_report.gif + ltr + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + static + false + string + true + simple + text-box + + Unformatted + + + + + + + + + + + 0 + orderId + string + + + 1 + orderItemSeqId + string + + + 2 + quantity + integer + + + 3 + orderStatus + string + + + 4 + saleChannel + string + + + 5 + visitId + string + + + 6 + initialReferrer + string + + + 7 + extNetAmount + float + + + + + orderId + + + orderItemSeqId + + + quantity + + + orderStatus + + + saleChannel + + + visitId + + + initialReferrer + + + extNetAmount + + + + + + 1 + orderId + string + + + 2 + orderItemSeqId + string + + + 3 + quantity + integer + + + 4 + orderStatus + string + + + 5 + saleChannel + string + + + 6 + visitId + string + + + 7 + initialReferrer + string + + + 8 + extNetAmount + float + + + + OFBIZ + + + + + + + + + NewTabularHierarchy + + + + + string + visitId + + + string + orderId + + + + + + + NewTabularHierarchy1 + + + + + string + initialReferrer + + + + + + + + + + + count + dataSetRow["orderId"] + integer + + + dataSetRow["quantity"] + integer + + + dataSetRow["extNetAmount"] + float + + + + + SalesOrderItemFact + + + + + + + + + + + + 0.2222222222222222in + 7.766666666666667in + + 3.8777777777777778in + + + 3.888888888888889in + + + 0.2222222222222222in + + + html + new Date()]]> + + + + right + + 0.2222222222222222in + 1.6in + + 0.8111111111111111in + + + 0.2in + + + 0.5888888888888889in + + + 0.2222222222222222in + + + right + page-number + + + + + plain + + + + + + left + normal + total-page + + + + + + + + + + + + + larger + bolder + normal + black + none + center + auto + + + + auto + + + + + orderId + + + Group1/initialReferrer + + + center + orderId_Group1/initialReferrer + + + 0.9222222222222223in + + + + + + + gray + center + orderId_1 + + + + + + + + + + + + + + quantity + + + Group1/initialReferrer + + + center + quantity_Group1/initialReferrer + + + 1.1in + + + + + + + gray + center + quantity + + + + + + + + + + + + + + extNetAmount + + + Group1/initialReferrer + + + center + extNetAmount_Group1/initialReferrer + + + 1.3222222222222222in + + + + + + + gray + center + extNetAmount + + + + + + + + + + + + + + + + + + + + + + + + + Group + + + Group/visitId + + + + + center + visitId + + + 0.9222222222222223in + + + + + Group/orderId + + + + + center + orderId + + + 0.9555555555555556in + + + + + + + Group1 + + + Group1/initialReferrer + + + + + center + initialReferrer + + + 2.7222222222222223in + + + + + + + after + + + + + + + 0.25555555555555554in + 4.511111111111111in + + 0.8666666666666667in + + + 0.9777777777777777in + + + 2.6777777777777776in + + + 0.25555555555555554in + + + + + + + + + + + + + + + Referrer + + + visitId + dimension["Group"]["visitId"] + string + + + orderId + dimension["Group"]["orderId"] + string + + + initialReferrer + dimension["Group1"]["initialReferrer"] + string + + + orderId_Group1/initialReferrer + measure["orderId"] + integer + + Group1/initialReferrer + + SUM + + + quantity_Group1/initialReferrer + measure["quantity"] + integer + + Group1/initialReferrer + + SUM + + + extNetAmount_Group1/initialReferrer + measure["extNetAmount"] + float + + Group1/initialReferrer + + SUM + + + orderId_Group/orderId + measure["orderId"] + integer + + Group/orderId + + SUM + + + quantity_Group/orderId + measure["quantity"] + integer + + Group/orderId + + SUM + + + extNetAmount_Group/orderId + measure["extNetAmount"] + float + + Group/orderId + + SUM + + + orderId_1 + measure["orderId"] + integer + SUM + + + quantity + measure["quantity"] + integer + SUM + + + extNetAmount + measure["extNetAmount"] + float + SUM + + + + + diff --git a/birt/webapp/ordermgr/reports/OrderDiscountCodeReport.rptdesign b/birt/webapp/ordermgr/reports/OrderDiscountCodeReport.rptdesign new file mode 100644 index 000000000..9abb1d59f --- /dev/null +++ b/birt/webapp/ordermgr/reports/OrderDiscountCodeReport.rptdesign @@ -0,0 +1,316 @@ + + + + Eclipse BIRT Designer Version 2.2.2.r222_v20071226 Build <2.2.2.v20080226-1155> + in + Copyright (c) 2007 <<Your Company Name here>> + Creates a blank report with no predefined content. + + Blank Report + /templates/blank_report.gif + + + + + + + + 1 + orderId + any + + + 2 + productId + any + + + 3 + discount + float + + + 4 + promoCode + any + + + 5 + productName + any + + + + + orderId + + + productId + + + discount + + + promoCode + + + productName + + + + + + 1 + orderId + any + + + 2 + productId + any + + + 3 + discount + float + + + 4 + promoCode + any + + + 5 + productName + any + + + + Data Source + + + + + + + + + + + + + html + new Date()]]> + + + + + + + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + #000000 + solid + thin + 100% + OrderAdjustment + + + orderId + dataSetRow["orderId"] + any + + + productId + dataSetRow["productId"] + any + + + productName + dataSetRow["productName"] + any + + + promoCode + dataSetRow["promoCode"] + any + + + discount + dataSetRow["discount"] + float + + + + + + + +
+ + bold + center + + + + + + + + + + + + + + + + +
+ + + #000000 + solid + thin + center + + + orderId + + + + + productId + + + + + productName + + + + + promoCode + + + + + discount + + + + +
+ + #000000 + solid + thin + + + + + + +
+
+ +
diff --git a/birt/webapp/ordermgr/reports/OrdersByChannel.rptdesign b/birt/webapp/ordermgr/reports/OrdersByChannel.rptdesign new file mode 100644 index 000000000..24d5542bc --- /dev/null +++ b/birt/webapp/ordermgr/reports/OrdersByChannel.rptdesign @@ -0,0 +1,722 @@ + + + + Eclipse BIRT Designer Version 2.5.1.v20090903 Build <2.5.1.v20090917-1447> + in + + + SaleOrder.OrderHeader.x + integer + false + + + SaleOrder.OrderHeader.y + integer + false + + + SaleOrder.Enum.NewTabularHierarchy1.x + integer + false + + + SaleOrder.Enum.NewTabularHierarchy1.y + integer + false + + + SaleOrder.OrderHeader.width + integer + false + + + SaleOrder.OrderHeader.height + integer + false + + + SaleOrder.Enum.NewTabularHierarchy1.width + integer + false + + + SaleOrder.Enum.NewTabularHierarchy1.height + integer + false + + + DataCube.OrderHeader.x + integer + false + + + DataCube.OrderHeader.y + integer + false + + + DataCube.OrderHeader.width + integer + false + + + DataCube.OrderHeader.height + integer + false + + + DataCube.Enumeration.x + integer + false + + + DataCube.Enumeration.y + integer + false + + + DataCube.Group1.NewTabularHierarchy1.x + integer + false + + + DataCube.Group1.NewTabularHierarchy1.y + integer + false + + + DataCube.Enumeration.width + integer + false + + + DataCube.Enumeration.height + integer + false + + + DataCube.Group1.NewTabularHierarchy1.width + integer + false + + + DataCube.Group1.NewTabularHierarchy1.height + integer + false + + + Channel.SalesOrderItemFact.x + integer + false + + + Channel.SalesOrderItemFact.y + integer + false + + + 314 + 51 + 85 + 54 + 150 + 200 + 150 + 200 + 16 + 34 + 178 + 212 + 376 + 78 + 32 + 75 + 150 + 200 + 150 + 200 + 135 + 80 + + /templates/blank_report.gif + ltr + + + + + + + + 1 + orderId + string + + + 2 + orderItemSeqId + string + + + 3 + quantity + integer + + + 4 + orderStatus + string + + + 5 + saleChannel + string + + + 6 + extNetAmount + float + + + + + orderId + + + orderItemSeqId + + + quantity + + + orderStatus + + + saleChannel + + + extNetAmount + + + + + + 1 + orderId + string + + + 2 + orderItemSeqId + string + + + 3 + quantity + integer + + + 4 + orderStatus + string + + + 5 + saleChannel + string + + + 6 + extNetAmount + float + + + + OFBIZ + + + + + + + + + NewTabularHierarchy + + + + + string + orderId + + + + + + + + + + + dataSetRow["quantity"] + integer + + + + + + + dataSetRow["extNetAmount"] + float + + + + + + + count + dataSetRow["orderItemSeqId"] + integer + + + + + SalesOrderItemFact + + + + + NewTabularHierarchy1 + + + + + string + saleChannel + + + + + + + + + + + count + dataSetRow["orderId"] + integer + + + dataSetRow["quantity"] + integer + + + count + dataSetRow["orderItemSeqId"] + integer + + + dataSetRow["extNetAmount"] + float + + + + + SalesOrderItemFact + + + + + false + NewTabularHierarchy2 + + + + + string + saleChannel + + + string + orderId + + + + + + + + + + + count + dataSetRow["orderItemSeqId"] + integer + + + dataSetRow["quantity"] + integer + + + dataSetRow["extNetAmount"] + float + + + + + SalesOrderItemFact + + + + + + + + + + + + html + new Date()]]> + + + + + + + sans-serif + larger + bolder + center + auto + + + + + + + orderItemSeqId2 + + + orderChannel/orderId + + + center + orderItemSeqId2_orderChannel/orderId + + + + + + + + + gray + center + orderItemSeqId2 + + + + + + + + + + + + + + quantity2 + + + orderChannel/orderId + + + center + quantity2_orderChannel/orderId + + + + + + + + + gray + center + quantity2 + + + + + + + + + + + + + + extNetAmount2 + + + orderChannel/orderId + + + center + extNetAmount2_orderChannel/orderId + + + + + + + + + gray + center + extNetAmount2 + + + + + + + + + + + + + + + + + + + + + + + + + orderChannel + + + orderChannel/saleChannel + + + + + center + saleChannel + + + + + + + orderChannel/orderId + + + + + center + orderId + + + + + + + + + after + + + + + + + + + + + + + + + + + + + + + OrderAndChannel + + + saleChannel + dimension["orderChannel"]["saleChannel"] + string + + + orderId + orderId + dimension["orderChannel"]["orderId"] + string + + + orderItemSeqId2_orderChannel/orderId + measure["orderItemSeqId2"] + integer + + orderChannel/orderId + + SUM + + + quantity2_orderChannel/orderId + measure["quantity2"] + integer + + orderChannel/orderId + + SUM + + + extNetAmount2_orderChannel/orderId + measure["extNetAmount2"] + float + + orderChannel/orderId + + SUM + + + orderItemSeqId2 + measure["orderItemSeqId2"] + integer + SUM + + + quantity2 + measure["quantity2"] + integer + SUM + + + extNetAmount2 + measure["extNetAmount2"] + float + SUM + + + + + diff --git a/birt/webapp/ordermgr/reports/ProductDemandReport.rptdesign b/birt/webapp/ordermgr/reports/ProductDemandReport.rptdesign new file mode 100644 index 000000000..7ddfee4fc --- /dev/null +++ b/birt/webapp/ordermgr/reports/ProductDemandReport.rptdesign @@ -0,0 +1,873 @@ + + + + Eclipse BIRT Designer Version 2.2.2.r222_v20071226 Build <2.2.2.v20080226-1155> + in + Copyright (c) 2007 <<Your Company Name here>> + Creates a blank report with no predefined content. + Blank Report + /templates/blank_report.gif + + + static + string + simple + false + text-box + true + + Unformatted + + + + static + integer + simple + false + text-box + true + + Unformatted + + + + static + integer + simple + false + text-box + true + + Unformatted + + + + + + + + + + + 1 + Week + string + + + 2 + SKU + string + + + 3 + ProductName + string + + + 4 + CategoryName + string + + + 5 + QuantitySold + integer + + + 6 + GS + decimal + + + 7 + GMS + decimal + + + 8 + GMP + decimal + + + 9 + GSP + decimal + + + 10 + GP + decimal + + + 11 + GMP% + decimal + + + 12 + AGP + decimal + + + 13 + Rank + integer + + + + + Week + Week + + + SKU + SKU + + + ProductName + ProductName + + + QuantitySold + QuantitySold + + + GS + GS + + + GMS + GMS + + + GMP + GMP + + + GSP + GSP + + + GP + GP + + + GMP% + GMP% + + + AGP + AGP + + + Rank + Rank + + + CategoryName + CategoryName + + + + + + 1 + Week + string + + + 2 + SKU + string + + + 3 + ProductName + string + + + 4 + CategoryName + string + + + 5 + QuantitySold + integer + + + 6 + GS + decimal + + + 7 + GMS + decimal + + + 8 + GMP + decimal + + + 9 + GSP + decimal + + + 10 + GP + decimal + + + 11 + GMP% + decimal + + + 12 + AGP + decimal + + + 13 + Rank + integer + + + + OFbiz + + = totalRows - 1) return false; +{ + starschema = starschemas.get(currentRow); + orderDateDateValue = starschema.getString("orderDateDateValue"); + orderDateDayName = starschema.getString("orderDateDayName"); + orderDateDayOfMonth = starschema.getString("orderDateDayOfMonth"); + orderDateMonthName = starschema.getString("orderDateMonthName"); + orderDateYearName = starschema.getString("orderDateYearName"); + orderDateYearMonthDay = starschema.getString("orderDateYearMonthDay"); + orderDateMonthOfYear = starschema.getString("orderDateMonthOfYear"); + orderDateDescription = starschema.getString("orderDateDescription"); + + WeekOfYear = starschema.getString("orderDateWeekOfYear"); + SKU = starschema.getString("productProductId"); + ProductName = starschema.getString("productInternalName"); + CategoryName = starschema.getString("categoryName"); + QuantitySold = starschema.getString("quantity"); + GS = starschema.getString("GrossSales"); + GMS = starschema.getString("GrossMerchandizeSales"); + GMP = starschema.getString("GrossMerchandizeProfit"); + GSP = starschema.getString("GrossShippingProfit"); + GP = starschema.getString("GrossProfit"); + + salesChannelEnumId = starschema.getString("salesChannelEnumId"); + + row["Week"] = WeekOfYear; + row["SKU"] = SKU; + row["ProductName"] = ProductName; + row["CategoryName"] = CategoryName; + row["QuantitySold"] = QuantitySold; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + + currentRow ++; +} + +return true;]]> + + + + + PDR Summary Field + + + NewTabularHierarchy + + + + + string + Week + + + + + + + NewTabularHierarchy1 + + + + + string + SKU + + + string + ProductName + + + string + CategoryName + + + + + + + + + + + dataSetRow["QuantitySold"] + integer + + + dataSetRow["GS"] + decimal + + + dataSetRow["GMP"] + decimal + + + dataSetRow["GP"] + decimal + + + dataSetRow["GMP"]/dataSetRow["GMS"] + decimal + + + dataSetRow["GP"]/dataSetRow["QuantitySold"] + decimal + + + dataSetRow["Rank"] + integer + + + + + PDR + + + + + + + + + landscape + 0.25in + 0.25in + 0.25in + 0.25in + + + html + new Date()]]> + + + + + + + + + + QuantitySold + + + + + QuantitySold + + + solid + 1px + #000000 + + + + + Products/CategoryName + solid + 1px + #000000 + + + + Fixed + Fixed + + QuantitySold_Products/CategoryName + + + + + + + + + + solid + 1px + #000000 + + + + + GS + + + + + GS + + + + + + + + + + + + + + GMP + + + + + GMP + + + + + + + Products/CategoryName + + + + Fixed + Fixed + + GMP_Products/CategoryName + + + + + + + + + + + + + + GP + + + + + + Unformatted + + GP + + + + + + + Products/CategoryName + + + + Fixed + Fixed + + GP_Products/CategoryName + + + + + + + + + + + + + + GMP% + + + + + + Percent + ###0% + + GMP% + + + + + + + + + + + + + + AGP + + + + + + Fixed + Fixed + + AGP + + + solid + 1px + #000000 + + + + + Products/CategoryName + solid + 1px + #000000 + + + + Fixed + Fixed + + AGP_Products/CategoryName + + + + + + + + + + solid + 1px + #000000 + + + + + + + + + Products + + + Products/SKU + + + + + center + SKU + + + + + + + Products/ProductName + + + + + center + ProductName + + + + + + + Products/CategoryName + + + + + center + CategoryName + + + solid + 1px + #000000 + + + + + + + + + + + + + + + + solid + 1px + #000000 + solid + 1px + #000000 + + + + + Weeks + + + Weeks/Week + + + + + 0pt + center + Week + + + solid + 1px + #000000 + solid + 1px + #000000 + + + + + + + + + PDR Data Cube + + + Week + "Week "+dimension["Weeks"]["Week"] + string + + + SKU + dimension["Products"]["SKU"] + string + + + QuantitySold + measure["QuantitySold"] + integer + + + GS + measure["GS"] + decimal + + + GMP + measure["GMP"] + decimal + + + GP + measure["GP"] + decimal + + + GMP% + measure["GMP%"] + decimal + + + AGP + measure["AGP"] + decimal + + + ProductName + dimension["Products"]["ProductName"] + string + + + CategoryName + dimension["Products"]["CategoryName"] + string + + + QuantitySold_Products/CategoryName + measure["QuantitySold"] + integer + + Products/CategoryName + + AVE + + + GMP_Products/CategoryName + measure["GMP"] + decimal + + Products/CategoryName + + AVE + + + GP_Products/CategoryName + measure["GP"] + decimal + + Products/CategoryName + + AVE + + + AGP_Products/CategoryName + measure["AGP"] + decimal + + Products/CategoryName + + AVE + + + + + diff --git a/birt/webapp/ordermgr/reports/SalesReport.rptdesign b/birt/webapp/ordermgr/reports/SalesReport.rptdesign new file mode 100644 index 000000000..1c07814d0 --- /dev/null +++ b/birt/webapp/ordermgr/reports/SalesReport.rptdesign @@ -0,0 +1,2328 @@ + + + + Eclipse BIRT Designer Version 2.5.1.v20090903 Build <2.5.1.v20090917-1447> + in + Copyright (c) 2007 <<Your Company Name here>> + Creates a blank report with no predefined content. + + + BIC_DataCube.BIC.x + integer + false + + + BIC_DataCube.BIC.y + integer + false + + + BIC_DataCube.Account.NewTabularHierarchy1.x + integer + false + + + BIC_DataCube.Account.NewTabularHierarchy1.y + integer + false + + + BIC_DataCube.BIC.width + integer + false + + + BIC_DataCube.BIC.height + integer + false + + + BIC_DataCube.Account.NewTabularHierarchy1.width + integer + false + + + BIC_DataCube.Account.NewTabularHierarchy1.height + integer + false + + + SaleOrder_DataCube.Account.x + integer + false + + + SaleOrder_DataCube.Account.y + integer + false + + + SaleOrder_DataCube.DateGroup.NewTabularHierarchy3.x + integer + false + + + SaleOrder_DataCube.DateGroup.NewTabularHierarchy3.y + integer + false + + + SaleOrder_DataCube.Account.width + integer + false + + + SaleOrder_DataCube.Account.height + integer + false + + + SaleOrder_DataCube.DateGroup.NewTabularHierarchy3.width + integer + false + + + SaleOrder_DataCube.DateGroup.NewTabularHierarchy3.height + integer + false + + + 284 + 29 + 70 + 35 + 150 + 200 + 150 + 200 + 280 + 17 + 32 + 39 + 150 + 200 + 150 + 200 + Blank Report + /templates/blank_report.gif + auto layout + + + static + string + true + simple + text-box + + Unformatted + + + + static + false + date + true + simple + text-box + + Unformatted + + + + static + false + date + true + simple + text-box + + Unformatted + + + + static + false + date + true + simple + text-box + + Unformatted + + + + static + false + integer + true + simple + text-box + + Unformatted + + + + static + false + integer + true + simple + text-box + + Unformatted + + + + static + false + integer + true + simple + text-box + + Unformatted + + + + + + + + + + + 1 + Brand + string + + + 2 + Pod + string + + + 3 + Account + string + + + 4 + orderDateYearName + string + + + 5 + orderDateMonthOfYear + string + + + 6 + orderDateMonthName + string + + + 7 + orderDateWeekOfYear + string + + + 8 + orderDateDayName + string + + + 9 + orderDateDescription + string + + + 10 + countOrder + integer + + + 11 + quantity + integer + + + 12 + GS + integer + + + 13 + GMS + integer + + + 14 + GMP + integer + + + 15 + GSP + integer + + + 16 + GP + integer + + + + + Brand + Brand + + + Pod + Pod + + + Account + Account + + + orderDateYearName + orderDateYearName + + + orderDateMonthOfYear + orderDateMonthOfYear + + + orderDateMonthName + orderDateMonthName + + + orderDateWeekOfYear + orderDateWeekOfYear + + + orderDateDayName + orderDateDayName + + + orderDateDescription + orderDateDescription + + + countOrder + countOrder + + + quantity + quantity + + + GS + GS + + + GMS + GMS + + + GMP + GMP + + + GSP + GSP + + + GP + GP + + + + + + 1 + Brand + string + + + 2 + Pod + string + + + 3 + Account + string + + + 4 + orderDateYearName + string + + + 5 + orderDateMonthOfYear + string + + + 6 + orderDateMonthName + string + + + 7 + orderDateWeekOfYear + string + + + 8 + orderDateDayName + string + + + 9 + orderDateDescription + string + + + 10 + countOrder + integer + + + 11 + quantity + integer + + + 12 + GS + integer + + + 13 + GMS + integer + + + 14 + GMP + integer + + + 15 + GSP + integer + + + 16 + GP + integer + + + + OFbiz + + = totalRows - 1) return false; +{ + starschema = starschemas.get(currentRow); + orderDateDescription = starschema.getString("orderDateDescription"); + orderDateDayName = starschema.getString("orderDateDayName"); + orderDateDayOfMonth = starschema.getString("orderDateDayOfMonth"); + orderDateMonthName = starschema.getString("orderDateMonthName"); + orderDateYearName = starschema.getString("orderDateYearName"); + orderDateWeekOfYear = starschema.getString("orderDateWeekOfYear"); + orderDateYearMonthDay = starschema.getString("orderDateYearMonthDay"); + orderDateMonthOfYear = starschema.getString("orderDateMonthOfYear"); + + brand = starschema.getString("brand"); + pod = starschema.getString("pod"); + account = starschema.getString("account"); + + countOrder = starschema.getString("countOrder"); + quantity = starschema.getString("quantity"); + GS = starschema.getString("GS"); + GMS = starschema.getString("GMS"); + GMP = starschema.getString("GMP"); + GSP = starschema.getString("GSP"); + GP = starschema.getString("GP"); + + row["Brand"] = brand; + row["Pod"] = pod; + row["Account"] = account; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["countOrder"] = countOrder; + row["quantity"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + + currentRow ++; +} + +return true;]]> + + + + + + + NewTabularHierarchy + + + + + string + orderDateYearName + + + string + orderDateMonthOfYear + + + string + orderDateMonthName + + + string + orderDateWeekOfYear + + + string + orderDateDescription + + + string + orderDateDayName + + + + + + + NewTabularHierarchy1 + + + + + string + Brand + + + string + Pod + + + string + Account + + + + + + + + + + + dataSetRow["countOrder"] + integer + + + dataSetRow["quantity"] + integer + + + dataSetRow["GS"] + integer + + + dataSetRow["GMS"] + integer + + + dataSetRow["GMP"] + integer + + + dataSetRow["GSP"] + integer + + + dataSetRow["GP"] + integer + + + + + BIC + + + + + + + + + + + custom + 10in + 20in + landscape + 0.5in + 0.5in + 0.5in + 0.5in + + + sans-serif + html + new Date()]]> + + + + + + + + + + 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 + + + Account/Account + Date/orderDateDescription + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + quantity_Account/Account_Date/orderDateDescription + + + + + + + Account/Brand + Date/orderDateDescription + sans-serif + scroll + #87CEFA + center + + + + Fixed + #,##0 + + quantity_Account/Brand_Date/orderDateDescription + + + + + Account/Pod + Date/orderDateDescription + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + quantity_Account/Pod_Date/orderDateDescription + + + + + Date/orderDateDescription + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + quantity_Date/orderDateDescription + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + GMP + + + Account/Account + Date/orderDateDescription + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + GMP_Account/Account_Date/orderDateDescription + + + + + + + Account/Brand + Date/orderDateDescription + sans-serif + scroll + #87CEFA + center + + + + Fixed + #,##0 + + GMP_Account/Brand_Date/orderDateDescription + + + + + Account/Pod + Date/orderDateDescription + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + GMP_Account/Pod_Date/orderDateDescription + + + + + Date/orderDateDescription + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + GMP_Date/orderDateDescription + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + GSP + + + Account/Account + Date/orderDateDescription + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + GSP_Account/Account_Date/orderDateDescription + + + + + + + Account/Brand + Date/orderDateDescription + sans-serif + scroll + #87CEFA + center + + + + Fixed + #,##0 + + GSP_Account/Brand_Date/orderDateDescription + + + + + Account/Pod + Date/orderDateDescription + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + GSP_Account/Pod_Date/orderDateDescription + + + + + Date/orderDateDescription + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + GSP_Date/orderDateDescription + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + GP + + + Account/Account + Date/orderDateDescription + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + GP_Account/Account_Date/orderDateDescription + + + + + + + Account/Brand + Date/orderDateDescription + sans-serif + scroll + #87CEFA + center + + + + Fixed + #,##0 + + Brand_GP + + + + + Account/Pod + Date/orderDateDescription + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + Pod_GP + + + + + Date/orderDateDescription + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + Grand_GP + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + Account/Account + Date/orderDateDescription + sans-serif + #FFEBCD + center + + + + Percent + #,##0% + + GMP% + + + + + + + Account/Brand + Date/orderDateDescription + sans-serif + scroll + #87CEFA + center + + + + Percent + #,##0% + + Brand_GMP% + + + + + Account/Pod + Date/orderDateDescription + sans-serif + #B0C4DE + center + + + + Percent + #,##0% + + Pod_GMP% + + + + + Date/orderDateDescription + sans-serif + #6495ED + center + + + + Percent + #,##0% + + Grand_GMP% + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + Account/Account + Date/orderDateDescription + sans-serif + #FFEBCD + center + + + + Percent + #,##0% + + GP% + + + + + + + Account/Brand + Date/orderDateDescription + sans-serif + scroll + #87CEFA + center + + + + Percent + #,##0% + + Brand_GP% + + + + + Account/Pod + Date/orderDateDescription + sans-serif + #B0C4DE + center + + + + Percent + #,##0% + + Pod_GP% + + + + + Date/orderDateDescription + sans-serif + #6495ED + center + + + + Percent + #,##0% + + Grand_GP% + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + Account/Account + Date/orderDateDescription + sans-serif + #FFEBCD + center + + + + Fixed + #,##0.0 + + AMP + + + + + + + Account/Brand + Date/orderDateDescription + sans-serif + scroll + #87CEFA + center + + + + Fixed + #,##0.0 + + Brand_AMP + + + + + Account/Pod + Date/orderDateDescription + sans-serif + #B0C4DE + center + + + + Fixed + #,##0.0 + + Pod_AMP + + + + + Date/orderDateDescription + sans-serif + #6495ED + center + + + + Fixed + #,##0.0 + + Grand_AMP + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + Account/Account + Date/orderDateDescription + sans-serif + #FFEBCD + center + + + + Fixed + #,##0.0 + + AGP + + + + + + + Account/Brand + Date/orderDateDescription + sans-serif + scroll + #87CEFA + center + + + + Fixed + #,##0.0 + + Brand_AGP + + + + + Account/Pod + Date/orderDateDescription + sans-serif + #B0C4DE + center + + + + Fixed + #,##0.0 + + Pod_AGP + + + + + Date/orderDateDescription + sans-serif + #6495ED + center + + + + Fixed + #,##0.0 + + Grand_AGP + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + + + + + + sans-serif + #ECE9D8 + + + + + Account + + + Account/Brand + + + + + Brand + + + sans-serif + small + bold + #ECE9D8 + + + + + + + + sans-serif + #ECE9D8 + + + + + Account/Pod + + + + + Pod + + + sans-serif + small + bold + #ECE9D8 + + + + + + + + sans-serif + #ECE9D8 + + + + + Account/Account + + + + + Account + + + sans-serif + small + bold + #F5F5DC + + + + + + + after + + + + + + + Date + + + Date/orderDateYearName + + + + + orderDateYearName + + + sans-serif + #FFEBCD + center + + + + + Date/orderDateMonthOfYear + + + + + orderDateMonthOfYear + + + #FFEBCD + center + + + + + Date/orderDateMonthName + + + + + orderDateMonthName + + + sans-serif + #FFEBCD + center + + + + + Date/orderDateWeekOfYear + + + + + orderDateWeekOfYear + + + sans-serif + #FFEBCD + center + + + + + Date/orderDateDescription + + + + + orderDateDescription + + + sans-serif + #ECE9D8 + center + + + + + + + after + + + + + + sans-serif + #FFFFFF + BIC_DataCube + + + quantity + measure["quantity"] + integer + SUM + + + GS + measure["GS"] + integer + SUM + + + GMS + measure["GMS"] + integer + SUM + + + GMP + measure["GMP"] + integer + SUM + + + GSP + measure["GSP"] + integer + SUM + + + GP + measure["GP"] + integer + SUM + + + orderDateYearName + dimension["Date"]["orderDateYearName"] + string + + + quantity_Date/orderDateYearName + measure["quantity"] + integer + + Date/orderDateYearName + + SUM + + + GS_Date/orderDateYearName + measure["GS"] + integer + + Date/orderDateYearName + + SUM + + + GMS_Date/orderDateYearName + measure["GMS"] + integer + + Date/orderDateYearName + + SUM + + + GMP_Date/orderDateYearName + measure["GMP"] + integer + + Date/orderDateYearName + + SUM + + + GSP_Date/orderDateYearName + measure["GSP"] + integer + + Date/orderDateYearName + + SUM + + + GP_Date/orderDateYearName + measure["GP"] + integer + + Date/orderDateYearName + + SUM + + + orderDateMonthName + dimension["Date"]["orderDateMonthName"] + string + + + quantity_Date/orderDateMonthName + measure["quantity"] + integer + + Date/orderDateMonthName + + SUM + + + GS_Date/orderDateMonthName + measure["GS"] + integer + + Date/orderDateMonthName + + SUM + + + GMS_Date/orderDateMonthName + measure["GMS"] + integer + + Date/orderDateMonthName + + SUM + + + GMP_Date/orderDateMonthName + measure["GMP"] + integer + + Date/orderDateMonthName + + SUM + + + GSP_Date/orderDateMonthName + measure["GSP"] + integer + + Date/orderDateMonthName + + SUM + + + GP_Date/orderDateMonthName + measure["GP"] + integer + + Date/orderDateMonthName + + SUM + + + orderDateWeekOfYear + dimension["Date"]["orderDateWeekOfYear"] + string + + + quantity_Date/orderDateWeekOfYear + measure["quantity"] + integer + + Date/orderDateWeekOfYear + + SUM + + + GS_Date/orderDateWeekOfYear + measure["GS"] + integer + + Date/orderDateWeekOfYear + + SUM + + + GMS_Date/orderDateWeekOfYear + measure["GMS"] + integer + + Date/orderDateWeekOfYear + + SUM + + + GMP_Date/orderDateWeekOfYear + measure["GMP"] + integer + + Date/orderDateWeekOfYear + + SUM + + + GSP_Date/orderDateWeekOfYear + measure["GSP"] + integer + + Date/orderDateWeekOfYear + + SUM + + + GP_Date/orderDateWeekOfYear + measure["GP"] + integer + + Date/orderDateWeekOfYear + + SUM + + + orderDateDescription + dimension["Date"]["orderDateDescription"] + string + + + quantity_Date/orderDateDescription + measure["quantity"] + integer + + Date/orderDateDescription + + SUM + + + GS_Date/orderDateDescription + measure["GS"] + integer + + Date/orderDateDescription + + SUM + + + GMS_Date/orderDateDescription + measure["GMS"] + integer + + Date/orderDateDescription + + SUM + + + GMP_Date/orderDateDescription + measure["GMP"] + integer + + Date/orderDateDescription + + SUM + + + GSP_Date/orderDateDescription + measure["GSP"] + integer + + Date/orderDateDescription + + SUM + + + GP_Date/orderDateDescription + measure["GP"] + integer + + Date/orderDateDescription + + SUM + + + Brand + dimension["Account"]["Brand"] + string + + + Pod + dimension["Account"]["Pod"] + string + + + Account + dimension["Account"]["Account"] + string + + + quantity_Account/Account_Date/orderDateDescription + measure["quantity"] + integer + + Account/Account + Date/orderDateDescription + + SUM + + + GS_Account/Account_Date/orderDateDescription + measure["GS"] + integer + + Account/Account + Date/orderDateDescription + + SUM + + + GMS_Account/Account_Date/orderDateDescription + measure["GMS"] + integer + + Account/Account + Date/orderDateDescription + + SUM + + + GMP_Account/Account_Date/orderDateDescription + measure["GMP"] + integer + + Account/Account + Date/orderDateDescription + + SUM + + + GSP_Account/Account_Date/orderDateDescription + measure["GSP"] + integer + + Account/Account + Date/orderDateDescription + + SUM + + + GP_Account/Account_Date/orderDateDescription + measure["GP"] + integer + + Account/Account + Date/orderDateDescription + + SUM + + + GMP% + if ((data["GMP_Account/Account_Date/orderDateDescription"] != null) && (data["GMS_Account/Account_Date/orderDateDescription"] != null)) +{ + data["GMP_Account/Account_Date/orderDateDescription"]/data["GMS_Account/Account_Date/orderDateDescription"] +} + decimal + + + GP% + if ((data["GP_Account/Account_Date/orderDateDescription"] != null) && (data["GS_Account/Account_Date/orderDateDescription"] != null)) +{ + data["GP_Account/Account_Date/orderDateDescription"]/data["GS_Account/Account_Date/orderDateDescription"] +} + decimal + + + AMP + if ((data["GMP_Account/Account_Date/orderDateDescription"] != null) && (data["quantity_Account/Account_Date/orderDateDescription"] != null)) +{ + data["GMP_Account/Account_Date/orderDateDescription"]/data["quantity_Account/Account_Date/orderDateDescription"] +} + float + + + AGP + if ((data["GP_Account/Account_Date/orderDateDescription"] != null) && (data["quantity_Account/Account_Date/orderDateDescription"] != null)) +{ + data["GP_Account/Account_Date/orderDateDescription"]/data["quantity_Account/Account_Date/orderDateDescription"] +} + float + + + quantity_Account/Brand_Date/orderDateDescription + measure["quantity"] + integer + + Account/Brand + Date/orderDateDescription + + SUM + + + GS_Account/Brand_Date/orderDateDescription + measure["GS"] + integer + + Account/Brand + Date/orderDateDescription + + SUM + + + GMS_Account/Brand_Date/orderDateDescription + measure["GMS"] + integer + + Account/Brand + Date/orderDateDescription + + SUM + + + GMP_Account/Brand_Date/orderDateDescription + measure["GMP"] + integer + + Account/Brand + Date/orderDateDescription + + SUM + + + GSP_Account/Brand_Date/orderDateDescription + measure["GSP"] + integer + + Account/Brand + Date/orderDateDescription + + SUM + + + GP_Account/Brand_Date/orderDateDescription + measure["GP"] + integer + + Account/Brand + Date/orderDateDescription + + SUM + + + Brand_TOTAL + dimension["Account"]["Brand"]+" TOTAL" + string + + + quantity_Account/Pod_Date/orderDateDescription + measure["quantity"] + integer + + Account/Pod + Date/orderDateDescription + + SUM + + + GS_Account/Pod_Date/orderDateDescription + measure["GS"] + integer + + Account/Pod + Date/orderDateDescription + + SUM + + + GMS_Account/Pod_Date/orderDateDescription + measure["GMS"] + integer + + Account/Pod + Date/orderDateDescription + + SUM + + + GMP_Account/Pod_Date/orderDateDescription + measure["GMP"] + integer + + Account/Pod + Date/orderDateDescription + + SUM + + + GSP_Account/Pod_Date/orderDateDescription + measure["GSP"] + integer + + Account/Pod + Date/orderDateDescription + + SUM + + + GP_Account/Pod_Date/orderDateDescription + measure["GP"] + integer + + Account/Pod + Date/orderDateDescription + + SUM + + + Pod_TOTAL + dimension["Account"]["Pod"]+" TOTAL" + string + + + Pod_GMP% + if ((data["GMP_Account/Pod_Date/orderDateDescription"] != null) && (data["GMS_Account/Pod_Date/orderDateDescription"] != null)) +{ + data["GMP_Account/Pod_Date/orderDateDescription"]/data["GMS_Account/Pod_Date/orderDateDescription"] +} + decimal + + + Brand_GMP% + if ((data["GMP_Account/Brand_Date/orderDateDescription"] != null) && (data["GMS_Account/Brand_Date/orderDateDescription"] !=null)) +{ + data["GMP_Account/Brand_Date/orderDateDescription"]/data["GMS_Account/Brand_Date/orderDateDescription"] +} + decimal + + + Pod_GP% + if ((data["GP_Account/Pod_Date/orderDateDescription"] != null) && (data["GS_Account/Pod_Date/orderDateDescription"] != null)) +{ + data["GP_Account/Pod_Date/orderDateDescription"]/data["GS_Account/Pod_Date/orderDateDescription"] +} + decimal + + + Brand_GP% + if ((data["GP_Account/Brand_Date/orderDateDescription"] != null) && (data["GS_Account/Brand_Date/orderDateDescription"] != null)) +{ + data["GP_Account/Brand_Date/orderDateDescription"]/data["GS_Account/Brand_Date/orderDateDescription"] +} + decimal + + + Pod_AMP + if ((data["GMP_Account/Pod_Date/orderDateDescription"] != null) && (data["quantity_Account/Pod_Date/orderDateDescription"] != null)) +{ + data["GMP_Account/Pod_Date/orderDateDescription"]/data["quantity_Account/Pod_Date/orderDateDescription"] +} + float + + + Brand_AMP + if ((data["GMP_Account/Brand_Date/orderDateDescription"] != null) && (data["quantity_Account/Brand_Date/orderDateDescription"] != null)) +{ + data["GMP_Account/Brand_Date/orderDateDescription"]/data["quantity_Account/Brand_Date/orderDateDescription"] +} + float + + + Pod_AGP + if ((data["GP_Account/Pod_Date/orderDateDescription"] != null) && (data["quantity_Account/Pod_Date/orderDateDescription"] != null)) +{ + data["GP_Account/Pod_Date/orderDateDescription"]/data["quantity_Account/Pod_Date/orderDateDescription"] +} + float + + + Brand_AGP + if ((data["GP_Account/Brand_Date/orderDateDescription"] != null) && (data["quantity_Account/Brand_Date/orderDateDescription"] != null)) +{ + data["GP_Account/Brand_Date/orderDateDescription"]/data["quantity_Account/Brand_Date/orderDateDescription"] +} + float + + + Grand_GMP% + if ((data["GMP_Date/orderDateDescription"] != null) && (data["GMS_Date/orderDateDescription"] != null)) +{ + data["GMP_Date/orderDateDescription"]/data["GMS_Date/orderDateDescription"] +} + decimal + + + Grand_GP% + if ((data["GP_Date/orderDateDescription"] != null) && (data["GS_Date/orderDateDescription"] != null)) +{ + data["GP_Date/orderDateDescription"]/data["GS_Date/orderDateDescription"] +} + decimal + + + Grand_AMP + if ((data["GMP_Date/orderDateDescription"] != null) && (data["quantity_Date/orderDateDescription"] != null)) +{ + data["GMP_Date/orderDateDescription"]/data["quantity_Date/orderDateDescription"] +} + float + + + Grand_AGP + if ((data["GP_Date/orderDateDescription"] != null) && (data["quantity_Date/orderDateDescription"] != null)) +{ + data["GP_Date/orderDateDescription"]/data["quantity_Date/orderDateDescription"] +} + 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/birt/webapp/ordermgr/reports/SalesReportMonth.rptdesign b/birt/webapp/ordermgr/reports/SalesReportMonth.rptdesign new file mode 100644 index 000000000..c1429dc82 --- /dev/null +++ b/birt/webapp/ordermgr/reports/SalesReportMonth.rptdesign @@ -0,0 +1,2168 @@ + + + + Eclipse BIRT Designer Version 2.5.1.v20090903 Build <2.5.1.v20090917-1447> + in + Copyright (c) 2007 <<Your Company Name here>> + Creates a blank report with no predefined content. + + + BIC_DataCube.BIC.x + integer + false + + + BIC_DataCube.BIC.y + integer + false + + + BIC_DataCube.Account.NewTabularHierarchy1.x + integer + false + + + BIC_DataCube.Account.NewTabularHierarchy1.y + integer + false + + + BIC_DataCube.BIC.width + integer + false + + + BIC_DataCube.BIC.height + integer + false + + + BIC_DataCube.Account.NewTabularHierarchy1.width + integer + false + + + BIC_DataCube.Account.NewTabularHierarchy1.height + integer + false + + + SaleOrder_DataCube.Account.x + integer + false + + + SaleOrder_DataCube.Account.y + integer + false + + + SaleOrder_DataCube.DateGroup.NewTabularHierarchy3.x + integer + false + + + SaleOrder_DataCube.DateGroup.NewTabularHierarchy3.y + integer + false + + + SaleOrder_DataCube.Account.width + integer + false + + + SaleOrder_DataCube.Account.height + integer + false + + + SaleOrder_DataCube.DateGroup.NewTabularHierarchy3.width + integer + false + + + SaleOrder_DataCube.DateGroup.NewTabularHierarchy3.height + integer + false + + + 284 + 29 + 70 + 35 + 150 + 200 + 150 + 200 + 280 + 17 + 32 + 39 + 150 + 200 + 150 + 200 + Blank Report + /templates/blank_report.gif + auto layout + + + static + string + true + simple + text-box + + Unformatted + + + + static + false + date + true + simple + text-box + + Unformatted + + + + static + false + date + true + simple + text-box + + Unformatted + + + + static + false + date + true + simple + text-box + + Unformatted + + + + static + false + integer + true + simple + text-box + + Unformatted + + + + static + false + integer + true + simple + text-box + + Unformatted + + + + static + false + integer + true + simple + text-box + + Unformatted + + + + + + + + + + + 1 + Brand + string + + + 2 + Pod + string + + + 3 + Account + string + + + 4 + orderDateYearName + string + + + 5 + orderDateMonthOfYear + string + + + 6 + orderDateMonthName + string + + + 7 + countOrder + integer + + + 8 + quantity + integer + + + 9 + GS + integer + + + 10 + GMS + integer + + + 11 + GMP + integer + + + 12 + GSP + integer + + + 13 + GP + integer + + + + + Brand + Brand + + + Pod + Pod + + + Account + Account + + + orderDateYearName + orderDateYearName + + + orderDateMonthOfYear + orderDateMonthOfYear + + + orderDateMonthName + orderDateMonthName + + + countOrder + countOrder + + + quantity + quantity + + + GS + GS + + + GMS + GMS + + + GMP + GMP + + + GSP + GSP + + + GP + GP + + + + + + 1 + Brand + string + + + 2 + Pod + string + + + 3 + Account + string + + + 4 + orderDateYearName + string + + + 5 + orderDateMonthOfYear + string + + + 6 + orderDateMonthName + string + + + 7 + countOrder + integer + + + 8 + quantity + integer + + + 9 + GS + integer + + + 10 + GMS + integer + + + 11 + GMP + integer + + + 12 + GSP + integer + + + 13 + GP + integer + + + + OFbiz + + = totalRows - 1) return false; +{ + starschema = starschemas.get(currentRow); + orderDateDescription = starschema.getString("orderDateDescription"); + orderDateDayName = starschema.getString("orderDateDayName"); + orderDateDayOfMonth = starschema.getString("orderDateDayOfMonth"); + orderDateMonthName = starschema.getString("orderDateMonthName"); + orderDateYearName = starschema.getString("orderDateYearName"); + orderDateWeekOfYear = starschema.getString("orderDateWeekOfYear"); + orderDateYearMonthDay = starschema.getString("orderDateYearMonthDay"); + orderDateMonthOfYear = starschema.getString("orderDateMonthOfYear"); + + brand = starschema.getString("brand"); + pod = starschema.getString("pod"); + account = starschema.getString("account"); + + quantity = starschema.getString("quantity"); + quantity = starschema.getString("quantity"); + GS = starschema.getString("GS"); + GMS = starschema.getString("GMS"); + GMP = starschema.getString("GMP"); + GSP = starschema.getString("GSP"); + GP = starschema.getString("GP"); + + row["Brand"] = brand; + row["Pod"] = pod; + row["Account"] = account; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["countOrder"] = countOrder; + row["quantity"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + + currentRow ++; +} + +return true;]]> + + + + + + + NewTabularHierarchy + + + + + string + orderDateYearName + + + string + orderDateMonthOfYear + + + string + orderDateMonthName + + + + + + + NewTabularHierarchy1 + + + + + string + Brand + + + string + Pod + + + string + Account + + + + + + + + + + + dataSetRow["countOrder"] + integer + + + dataSetRow["quantity"] + integer + + + dataSetRow["GS"] + integer + + + dataSetRow["GMS"] + integer + + + dataSetRow["GMP"] + integer + + + dataSetRow["GSP"] + integer + + + dataSetRow["GP"] + integer + + + + + BIC + + + + + + + + + + + custom + 10in + 20in + landscape + 0.5in + 0.5in + 0.5in + 0.5in + + + sans-serif + html + new Date()]]> + + + + + + + + + + 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 + + + Account/Account + Date/orderDateMonthName + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + quantity_Account/Account_Date/orderDateMonthName + + + + + + + Account/Brand + Date/orderDateMonthName + sans-serif + #87CEFA + center + + + + Fixed + #,##0 + + quantity_Account/Brand_Date/orderDateMonthName + + + + + Account/Pod + Date/orderDateMonthName + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + quantity_Account/Pod_Date/orderDateMonthName + + + + + Date/orderDateMonthName + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + quantity_Date/orderDateMonthName + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + GMP + + + Account/Account + Date/orderDateMonthName + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + GMP_Account/Account_Date/orderDateMonthName + + + + + + + Account/Brand + Date/orderDateMonthName + sans-serif + #87CEFA + center + + + + Fixed + #,##0 + + GMP_Account/Brand_Date/orderDateMonthName + + + + + Account/Pod + Date/orderDateMonthName + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + GMP_Account/Pod_Date/orderDateMonthName + + + + + Date/orderDateMonthName + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + GMP_Date/orderDateMonthName + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + GSP + + + Account/Account + Date/orderDateMonthName + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + GSP_Account/Account_Date/orderDateMonthName + + + + + + + Account/Brand + Date/orderDateMonthName + sans-serif + #87CEFA + center + + + + Fixed + #,##0 + + GSP_Account/Brand_Date/orderDateMonthName + + + + + Account/Pod + Date/orderDateMonthName + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + GSP_Account/Pod_Date/orderDateMonthName + + + + + Date/orderDateMonthName + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + GSP_Date/orderDateMonthName + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + GP + + + Account/Account + Date/orderDateMonthName + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + GP_Account/Account_Date/orderDateMonthName + + + + + + + Account/Brand + Date/orderDateMonthName + sans-serif + #87CEFA + center + + + + Fixed + #,##0 + + Brand_GP + + + + + Account/Pod + Date/orderDateMonthName + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + Pod_GP + + + + + Date/orderDateMonthName + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + Grand_GP + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + Account/Account + Date/orderDateMonthName + sans-serif + #FFEBCD + center + + + + Percent + #,##0% + + GMP% + + + + + + + Account/Brand + Date/orderDateMonthName + sans-serif + #87CEFA + center + + + + Percent + #,##0% + + Brand_GMP% + + + + + Account/Pod + Date/orderDateMonthName + sans-serif + #B0C4DE + center + + + + Percent + #,##0% + + Pod_GMP% + + + + + Date/orderDateMonthName + sans-serif + #6495ED + center + + + + Percent + #,##0% + + Grand_GMP% + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + Account/Account + Date/orderDateMonthName + sans-serif + #FFEBCD + center + + + + Percent + #,##0% + + GP% + + + + + + + Account/Brand + Date/orderDateMonthName + sans-serif + #87CEFA + center + + + + Percent + #,##0% + + Brand_GP% + + + + + Account/Pod + Date/orderDateMonthName + sans-serif + #B0C4DE + center + + + + Percent + #,##0% + + Pod_GP% + + + + + Date/orderDateMonthName + sans-serif + #6495ED + center + + + + Percent + #,##0% + + Grand_GP% + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + Account/Account + Date/orderDateMonthName + sans-serif + #FFEBCD + center + + + + Fixed + #,##0.0 + + AMP + + + + + + + Account/Brand + Date/orderDateMonthName + sans-serif + #87CEFA + center + + + + Fixed + #,##0.0 + + Brand_AMP + + + + + Account/Pod + Date/orderDateMonthName + sans-serif + #B0C4DE + center + + + + Fixed + #,##0.0 + + Pod_AMP + + + + + Date/orderDateMonthName + sans-serif + #6495ED + center + + + + Fixed + #,##0.0 + + Grand_AMP + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + Account/Account + Date/orderDateMonthName + sans-serif + #FFEBCD + center + + + + Fixed + #,##0.0 + + AGP + + + + + + + Account/Brand + Date/orderDateMonthName + sans-serif + #87CEFA + center + + + + Fixed + #,##0.0 + + Brand_AGP + + + + + Account/Pod + Date/orderDateMonthName + sans-serif + #B0C4DE + center + + + + Fixed + #,##0.0 + + Pod_AGP + + + + + Date/orderDateMonthName + sans-serif + #6495ED + center + + + + Fixed + #,##0.0 + + Grand_AGP + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + + + + + + sans-serif + #ECE9D8 + + + + + Account + + + Account/Brand + + + + + Brand + + + sans-serif + small + bold + #ECE9D8 + + + + + + + + sans-serif + #ECE9D8 + + + + + Account/Pod + + + + + Pod + + + sans-serif + small + bold + #ECE9D8 + + + + + + + + sans-serif + #ECE9D8 + + + + + Account/Account + + + + + Account + + + sans-serif + small + bold + #F5F5DC + + + + + + + after + + + + + + + Date + + + Date/orderDateYearName + + + + + orderDateYearName + + + sans-serif + #FFEFD5 + center + + + + + Date/orderDateMonthOfYear + + + + + orderDateMonthOfYear + + + sans-serif + #FFEFD5 + center + + + + + Date/orderDateMonthName + + + + + orderDateMonthName + + + sans-serif + #ECE9D8 + center + + + + + + + after + + + + + + #FFFFFF + BIC_DataCube + + + quantity + measure["quantity"] + integer + SUM + + + GS + measure["GS"] + integer + SUM + + + GMS + measure["GMS"] + integer + SUM + + + GMP + measure["GMP"] + integer + SUM + + + GSP + measure["GSP"] + integer + SUM + + + GP + measure["GP"] + integer + SUM + + + orderDateYearName + dimension["Date"]["orderDateYearName"] + string + + + quantity_Date/orderDateYearName + measure["quantity"] + integer + + Date/orderDateYearName + + SUM + + + GS_Date/orderDateYearName + measure["GS"] + integer + + Date/orderDateYearName + + SUM + + + GMS_Date/orderDateYearName + measure["GMS"] + integer + + Date/orderDateYearName + + SUM + + + GMP_Date/orderDateYearName + measure["GMP"] + integer + + Date/orderDateYearName + + SUM + + + GSP_Date/orderDateYearName + measure["GSP"] + integer + + Date/orderDateYearName + + SUM + + + GP_Date/orderDateYearName + measure["GP"] + integer + + Date/orderDateYearName + + SUM + + + orderDateMonthOfYear + dimension["Date"]["orderDateMonthOfYear"] + string + + + quantity_Date/orderDateMonthOfYear + measure["quantity"] + integer + + Date/orderDateMonthOfYear + + SUM + + + GS_Date/orderDateMonthOfYear + measure["GS"] + integer + + Date/orderDateMonthOfYear + + SUM + + + GMS_Date/orderDateMonthOfYear + measure["GMS"] + integer + + Date/orderDateMonthOfYear + + SUM + + + GMP_Date/orderDateMonthOfYear + measure["GMP"] + integer + + Date/orderDateMonthOfYear + + SUM + + + GSP_Date/orderDateMonthOfYear + measure["GSP"] + integer + + Date/orderDateMonthOfYear + + SUM + + + GP_Date/orderDateMonthOfYear + measure["GP"] + integer + + Date/orderDateMonthOfYear + + SUM + + + orderDateMonthName + dimension["Date"]["orderDateMonthName"] + string + + + quantity_Date/orderDateMonthName + measure["quantity"] + integer + + Date/orderDateMonthName + + SUM + + + GS_Date/orderDateMonthName + measure["GS"] + integer + + Date/orderDateMonthName + + SUM + + + GMS_Date/orderDateMonthName + measure["GMS"] + integer + + Date/orderDateMonthName + + SUM + + + GMP_Date/orderDateMonthName + measure["GMP"] + integer + + Date/orderDateMonthName + + SUM + + + GSP_Date/orderDateMonthName + measure["GSP"] + integer + + Date/orderDateMonthName + + SUM + + + GP_Date/orderDateMonthName + measure["GP"] + integer + + Date/orderDateMonthName + + SUM + + + Brand + dimension["Account"]["Brand"] + string + + + quantity_Account/Brand_Date/orderDateMonthName + measure["quantity"] + integer + + Account/Brand + Date/orderDateMonthName + + SUM + + + GS_Account/Brand_Date/orderDateMonthName + measure["GS"] + integer + + Account/Brand + Date/orderDateMonthName + + SUM + + + GMS_Account/Brand_Date/orderDateMonthName + measure["GMS"] + integer + + Account/Brand + Date/orderDateMonthName + + SUM + + + GMP_Account/Brand_Date/orderDateMonthName + measure["GMP"] + integer + + Account/Brand + Date/orderDateMonthName + + SUM + + + GSP_Account/Brand_Date/orderDateMonthName + measure["GSP"] + integer + + Account/Brand + Date/orderDateMonthName + + SUM + + + GP_Account/Brand_Date/orderDateMonthName + measure["GP"] + integer + + Account/Brand + Date/orderDateMonthName + + SUM + + + Pod + dimension["Account"]["Pod"] + string + + + quantity_Account/Pod_Date/orderDateMonthName + measure["quantity"] + integer + + Account/Pod + Date/orderDateMonthName + + SUM + + + GS_Account/Pod_Date/orderDateMonthName + measure["GS"] + integer + + Account/Pod + Date/orderDateMonthName + + SUM + + + GMS_Account/Pod_Date/orderDateMonthName + measure["GMS"] + integer + + Account/Pod + Date/orderDateMonthName + + SUM + + + GMP_Account/Pod_Date/orderDateMonthName + measure["GMP"] + integer + + Account/Pod + Date/orderDateMonthName + + SUM + + + GSP_Account/Pod_Date/orderDateMonthName + measure["GSP"] + integer + + Account/Pod + Date/orderDateMonthName + + SUM + + + GP_Account/Pod_Date/orderDateMonthName + measure["GP"] + integer + + Account/Pod + Date/orderDateMonthName + + SUM + + + Account + dimension["Account"]["Account"] + string + + + quantity_Account/Account_Date/orderDateMonthName + measure["quantity"] + integer + + Account/Account + Date/orderDateMonthName + + SUM + + + GS_Account/Account_Date/orderDateMonthName + measure["GS"] + integer + + Account/Account + Date/orderDateMonthName + + SUM + + + GMS_Account/Account_Date/orderDateMonthName + measure["GMS"] + integer + + Account/Account + Date/orderDateMonthName + + SUM + + + GMP_Account/Account_Date/orderDateMonthName + measure["GMP"] + integer + + Account/Account + Date/orderDateMonthName + + SUM + + + GSP_Account/Account_Date/orderDateMonthName + measure["GSP"] + integer + + Account/Account + Date/orderDateMonthName + + SUM + + + GP_Account/Account_Date/orderDateMonthName + measure["GP"] + integer + + Account/Account + Date/orderDateMonthName + + SUM + + + GMP% + if ((data["GMP_Account/Account_Date/orderDateMonthName"] != null) && (data["GMS_Account/Account_Date/orderDateMonthName"] != null)) +{ + data["GMP_Account/Account_Date/orderDateMonthName"]/data["GMS_Account/Account_Date/orderDateMonthName"] +} + decimal + + + GP% + if ((data["GP_Account/Account_Date/orderDateMonthName"] != null) && (data["GS_Account/Account_Date/orderDateMonthName"] != null)) +{ + data["GP_Account/Account_Date/orderDateMonthName"]/data["GS_Account/Account_Date/orderDateMonthName"] +} + decimal + + + AMP + if ((data["GMP_Account/Account_Date/orderDateMonthName"] != null) && (data["quantity_Account/Account_Date/orderDateMonthName"] != null)) +{ + data["GMP_Account/Account_Date/orderDateMonthName"]/data["quantity_Account/Account_Date/orderDateMonthName"] +} + float + + + AGP + if ((data["GP_Account/Account_Date/orderDateMonthName"] != null) && (data["quantity_Account/Account_Date/orderDateMonthName"] != null)) +{ + data["GP_Account/Account_Date/orderDateMonthName"]/data["quantity_Account/Account_Date/orderDateMonthName"] +} + float + + + Brand_TOTAL + dimension["Account"]["Brand"]+" TOTAL" + string + + + Pod_TOTAL + dimension["Account"]["Pod"]+" TOTAL" + string + + + Pod_GMP% + if ((data["GMP_Account/Pod_Date/orderDateMonthName"] != null) && (data["GMS_Account/Pod_Date/orderDateMonthName"] != null)) +{ + data["GMP_Account/Pod_Date/orderDateMonthName"]/data["GMS_Account/Pod_Date/orderDateMonthName"] +} + decimal + + + Brand_GMP% + if ((data["GMP_Account/Brand_Date/orderDateMonthName"] != null) && (data["GMS_Account/Brand_Date/orderDateMonthName"] != null)) +{ + data["GMP_Account/Brand_Date/orderDateMonthName"]/data["GMS_Account/Brand_Date/orderDateMonthName"] +} + decimal + + + Grand_GMP% + if ((data["GMP_Date/orderDateMonthName"] != null) && (data["GMS_Date/orderDateMonthName"] != null)) +{ + data["GMP_Date/orderDateMonthName"]/data["GMS_Date/orderDateMonthName"] +} + decimal + + + Pod_GP% + if ((data["GP_Account/Pod_Date/orderDateMonthName"] != null) && (data["GS_Account/Pod_Date/orderDateMonthName"] != null)) +{ + data["GP_Account/Pod_Date/orderDateMonthName"]/data["GS_Account/Pod_Date/orderDateMonthName"] +} + decimal + + + Brand_GP% + if ((data["GP_Account/Brand_Date/orderDateMonthName"] != null) && (data["GS_Account/Brand_Date/orderDateMonthName"] != null)) +{ + data["GP_Account/Brand_Date/orderDateMonthName"]/data["GS_Account/Brand_Date/orderDateMonthName"] +} + decimal + + + Grand_GP% + if ((data["GP_Date/orderDateMonthName"] != null) && (data["GS_Date/orderDateMonthName"] != null)) +{ + data["GP_Date/orderDateMonthName"]/data["GS_Date/orderDateMonthName"] +} + decimal + + + Pod_AMP + if ((data["GMP_Account/Pod_Date/orderDateMonthName"] != null) && (data["quantity_Account/Pod_Date/orderDateMonthName"] != null)) +{ + data["GMP_Account/Pod_Date/orderDateMonthName"]/data["quantity_Account/Pod_Date/orderDateMonthName"] +} + float + + + Brand_AMP + if ((data["GMP_Account/Brand_Date/orderDateMonthName"] != null) && (data["quantity_Account/Brand_Date/orderDateMonthName"] != null)) +{ + data["GMP_Account/Brand_Date/orderDateMonthName"]/data["quantity_Account/Brand_Date/orderDateMonthName"] +} + float + + + Grand_AMP + if ((data["GMP_Date/orderDateMonthName"] != null) && (data["quantity_Date/orderDateMonthName"] != null)) +{ + data["GMP_Date/orderDateMonthName"]/data["quantity_Date/orderDateMonthName"] +} + float + + + Pod_AGP + if ((data["GP_Account/Pod_Date/orderDateMonthName"] != null) && (data["quantity_Account/Pod_Date/orderDateMonthName"] != null)) +{ + data["GP_Account/Pod_Date/orderDateMonthName"]/data["quantity_Account/Pod_Date/orderDateMonthName"] +} + float + + + Brand_AGP + if ((data["GP_Account/Brand_Date/orderDateMonthName"] != null) && (data["quantity_Account/Brand_Date/orderDateMonthName"] != null)) +{ + data["GP_Account/Brand_Date/orderDateMonthName"]/data["quantity_Account/Brand_Date/orderDateMonthName"] +} + float + + + Grand_AGP + if ((data["GP_Date/orderDateMonthName"] != null) && (data["quantity_Date/orderDateMonthName"] != null)) +{ + data["GP_Date/orderDateMonthName"]/data["quantity_Date/orderDateMonthName"] +} + 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/birt/webapp/ordermgr/reports/SalesReportWeek.rptdesign b/birt/webapp/ordermgr/reports/SalesReportWeek.rptdesign new file mode 100644 index 000000000..376bdad7c --- /dev/null +++ b/birt/webapp/ordermgr/reports/SalesReportWeek.rptdesign @@ -0,0 +1,2213 @@ + + + + Eclipse BIRT Designer Version 2.5.1.v20090903 Build <2.5.1.v20090917-1447> + in + Copyright (c) 2007 <<Your Company Name here>> + Creates a blank report with no predefined content. + + + BIC_DataCube.BIC.x + integer + false + + + BIC_DataCube.BIC.y + integer + false + + + BIC_DataCube.Account.NewTabularHierarchy1.x + integer + false + + + BIC_DataCube.Account.NewTabularHierarchy1.y + integer + false + + + BIC_DataCube.BIC.width + integer + false + + + BIC_DataCube.BIC.height + integer + false + + + BIC_DataCube.Account.NewTabularHierarchy1.width + integer + false + + + BIC_DataCube.Account.NewTabularHierarchy1.height + integer + false + + + SaleOrder_DataCube.Account.x + integer + false + + + SaleOrder_DataCube.Account.y + integer + false + + + SaleOrder_DataCube.DateGroup.NewTabularHierarchy3.x + integer + false + + + SaleOrder_DataCube.DateGroup.NewTabularHierarchy3.y + integer + false + + + SaleOrder_DataCube.Account.width + integer + false + + + SaleOrder_DataCube.Account.height + integer + false + + + SaleOrder_DataCube.DateGroup.NewTabularHierarchy3.width + integer + false + + + SaleOrder_DataCube.DateGroup.NewTabularHierarchy3.height + integer + false + + + 284 + 29 + 70 + 35 + 150 + 200 + 150 + 200 + 280 + 17 + 32 + 39 + 150 + 200 + 150 + 200 + Blank Report + /templates/blank_report.gif + auto layout + + + static + string + true + simple + text-box + + Unformatted + + + + static + false + date + true + simple + text-box + + Unformatted + + + + static + false + date + true + simple + text-box + + Unformatted + + + + static + false + date + true + simple + text-box + + Unformatted + + + + static + false + integer + true + simple + text-box + + Unformatted + + + + static + false + integer + true + simple + text-box + + Unformatted + + + + static + false + integer + true + simple + text-box + + Unformatted + + + + + + + + + + + 1 + Brand + string + + + 2 + Pod + string + + + 3 + Account + string + + + 4 + orderDateYearName + string + + + 5 + orderDateMonthOfYear + string + + + 6 + orderDateMonthName + string + + + 7 + orderDateWeekOfYear + string + + + 8 + countOrder + integer + + + 9 + quantity + integer + + + 10 + GS + integer + + + 11 + GMS + integer + + + 12 + GMP + integer + + + 13 + GSP + integer + + + 14 + GP + integer + + + + + Brand + Brand + + + Pod + Pod + + + Account + Account + + + orderDateYearName + orderDateYearName + + + orderDateMonthOfYear + orderDateMonthOfYear + + + orderDateMonthName + orderDateMonthName + + + orderDateWeekOfYear + orderDateWeekOfYear + + + countOrder + countOrder + + + quantity + quantity + + + GS + GS + + + GMS + GMS + + + GMP + GMP + + + GSP + GSP + + + GP + GP + + + + + + 1 + Brand + string + + + 2 + Pod + string + + + 3 + Account + string + + + 4 + orderDateYearName + string + + + 5 + orderDateMonthOfYear + string + + + 6 + orderDateMonthName + string + + + 7 + orderDateWeekOfYear + string + + + 8 + countOrder + integer + + + 9 + quantity + integer + + + 10 + GS + integer + + + 11 + GMS + integer + + + 12 + GMP + integer + + + 13 + GSP + integer + + + 14 + GP + integer + + + + OFbiz + + = totalRows - 1) return false; +{ + starschema = starschemas.get(currentRow); + orderDateDescription = starschema.getString("orderDateDescription"); + orderDateDayName = starschema.getString("orderDateDayName"); + orderDateDayOfMonth = starschema.getString("orderDateDayOfMonth"); + orderDateMonthName = starschema.getString("orderDateMonthName"); + orderDateYearName = starschema.getString("orderDateYearName"); + orderDateWeekOfYear = starschema.getString("orderDateWeekOfYear"); + orderDateYearMonthDay = starschema.getString("orderDateYearMonthDay"); + orderDateMonthOfYear = starschema.getString("orderDateMonthOfYear"); + + brand = starschema.getString("brand"); + pod = starschema.getString("pod"); + account = starschema.getString("account"); + + quantity = starschema.getString("quantity"); + countOrder = starschema.getString("countOrder"); + GS = starschema.getString("GS"); + GMS = starschema.getString("GMS"); + GMP = starschema.getString("GMP"); + GSP = starschema.getString("GSP"); + GP = starschema.getString("GP"); + + row["Brand"] = brand; + row["Pod"] = pod; + row["Account"] = account; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["countOrder"] = countOrder; + row["quantity"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + + currentRow ++; +} + +return true;]]> + + + + + + + NewTabularHierarchy + + + + + string + orderDateYearName + + + string + orderDateMonthOfYear + + + string + orderDateMonthName + + + string + orderDateWeekOfYear + + + + + + + NewTabularHierarchy1 + + + + + string + Brand + + + string + Pod + + + string + Account + + + + + + + + + + + dataSetRow["countOrder"] + integer + + + dataSetRow["quantity"] + integer + + + dataSetRow["GS"] + integer + + + dataSetRow["GMS"] + integer + + + dataSetRow["GMP"] + integer + + + dataSetRow["GSP"] + integer + + + dataSetRow["GP"] + integer + + + + + BIC + + + + + + + + + + + custom + 10in + 20in + landscape + 0.5in + 0.5in + 0.5in + 0.5in + + + sans-serif + html + new Date()]]> + + + + + + + + + + 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 + + + Account/Account + Date/orderDateWeekOfYear + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + quantity_Account/Account_Date/orderDateWeekOfYear + + + + + + + Account/Brand + Date/orderDateWeekOfYear + sans-serif + #87CEFA + center + + + + Fixed + #,##0 + + quantity_Account/Brand_Date/orderDateWeekOfYear + + + + + Account/Pod + Date/orderDateWeekOfYear + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + quantity_Account/Pod_Date/orderDateWeekOfYear + + + + + Date/orderDateWeekOfYear + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + quantity_Date/orderDateWeekOfYear + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + GMP + + + Account/Account + Date/orderDateWeekOfYear + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + GMP_Account/Account_Date/orderDateWeekOfYear + + + + + + + Account/Brand + Date/orderDateWeekOfYear + sans-serif + #87CEFA + center + + + + Fixed + #,##0 + + GMP_Account/Brand_Date/orderDateWeekOfYear + + + + + Account/Pod + Date/orderDateWeekOfYear + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + GMP_Account/Pod_Date/orderDateWeekOfYear + + + + + Date/orderDateWeekOfYear + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + GMP_Date/orderDateWeekOfYear + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + GSP + + + Account/Account + Date/orderDateWeekOfYear + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + GSP_Account/Account_Date/orderDateWeekOfYear + + + + + + + Account/Brand + Date/orderDateWeekOfYear + sans-serif + #87CEFA + center + + + + Fixed + #,##0 + + GSP_Account/Brand_Date/orderDateWeekOfYear + + + + + Account/Pod + Date/orderDateWeekOfYear + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + GSP_Account/Pod_Date/orderDateWeekOfYear + + + + + Date/orderDateWeekOfYear + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + GSP_Date/orderDateWeekOfYear + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + GP + + + Account/Account + Date/orderDateWeekOfYear + sans-serif + #FFEBCD + center + + + + Fixed + #,##0 + + GP_Account/Account_Date/orderDateWeekOfYear + + + + + + + Account/Brand + Date/orderDateWeekOfYear + sans-serif + #87CEFA + center + + + + Fixed + #,##0 + + Brand_GP + + + + + Account/Pod + Date/orderDateWeekOfYear + sans-serif + #B0C4DE + center + + + + Fixed + #,##0 + + Pod_GP + + + + + Date/orderDateWeekOfYear + sans-serif + #6495ED + center + + + + Fixed + #,##0 + + Grand_GP + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + Account/Account + Date/orderDateWeekOfYear + sans-serif + #FFEBCD + center + + + + Percent + #,##0% + + GMP% + + + + + + + Account/Brand + Date/orderDateWeekOfYear + sans-serif + #87CEFA + center + + + + Percent + #,##0% + + Brand_GMP% + + + + + Account/Pod + Date/orderDateWeekOfYear + sans-serif + #B0C4DE + center + + + + Percent + #,##0% + + Pod_GMP% + + + + + Date/orderDateWeekOfYear + sans-serif + #6495ED + center + + + + Percent + #,##0% + + Grand_GMP% + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + Account/Account + Date/orderDateWeekOfYear + sans-serif + #FFEBCD + center + + + + Percent + #,##0% + + GP% + + + + + + + Account/Brand + Date/orderDateWeekOfYear + sans-serif + #87CEFA + center + + + + Percent + #,##0% + + Brand_GP% + + + + + Account/Pod + Date/orderDateWeekOfYear + sans-serif + #B0C4DE + center + + + + Percent + #,##0% + + Pod_GP% + + + + + Date/orderDateWeekOfYear + sans-serif + #6495ED + center + + + + Percent + #,##0% + + Grand_GP% + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + Account/Account + Date/orderDateWeekOfYear + sans-serif + #FFEBCD + center + + + + Fixed + #,##0.0 + + AMP + + + + + + + Account/Brand + Date/orderDateWeekOfYear + sans-serif + #87CEFA + center + + + + Fixed + #,##0.0 + + Brand_AMP + + + + + Account/Pod + Date/orderDateWeekOfYear + sans-serif + #B0C4DE + center + + + + Fixed + #,##0.0 + + Pod_AMP + + + + + Date/orderDateWeekOfYear + sans-serif + #6495ED + center + + + + Fixed + #,##0.0 + + Grand_AMP + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + Account/Account + Date/orderDateWeekOfYear + sans-serif + #FFEBCD + center + + + + Fixed + #,##0.0 + + AGP + + + + + + + Account/Brand + Date/orderDateWeekOfYear + sans-serif + #87CEFA + center + + + + Fixed + #,##0.0 + + Brand_AGP + + + + + Account/Pod + Date/orderDateWeekOfYear + sans-serif + #B0C4DE + center + + + + Fixed + #,##0.0 + + Pod_AGP + + + + + Date/orderDateWeekOfYear + sans-serif + #6495ED + center + + + + Fixed + #,##0.0 + + Grand_AGP + + + + + + + + + + sans-serif + small + bold + #ECE9D8 + center + + + + + + + + + + + + sans-serif + #ECE9D8 + + + + + Account + + + Account/Brand + + + + + Brand + + + sans-serif + small + bold + #ECE9D8 + + + + + + + + sans-serif + #ECE9D8 + + + + + Account/Pod + + + + + Pod + + + sans-serif + small + bold + #ECE9D8 + + + + + + + + sans-serif + #ECE9D8 + + + + + Account/Account + + + + + Account + + + sans-serif + small + bold + #F5F5DC + + + + + + + after + + + + + + + Date + + + Date/orderDateYearName + + + + + orderDateYearName + + + sans-serif + #FFEBCD + center + + + + + Date/orderDateMonthOfYear + + + + + orderDateMonthOfYear + + + #FFEBCD + center + + + + + Date/orderDateMonthName + + + + + orderDateMonthName + + + sans-serif + #FFEBCD + center + + + + + Date/orderDateWeekOfYear + + + data["orderDateWeekOfYear"] + asc + + + + + + + orderDateWeekOfYear + + + sans-serif + #ECE9D8 + center + + + + + + + after + + + + + + sans-serif + #FFFFFF + BIC_DataCube + + + quantity + measure["quantity"] + integer + SUM + + + GS + measure["GS"] + integer + SUM + + + GMS + measure["GMS"] + integer + SUM + + + GMP + measure["GMP"] + integer + SUM + + + GSP + measure["GSP"] + integer + SUM + + + GP + measure["GP"] + integer + SUM + + + orderDateYearName + dimension["Date"]["orderDateYearName"] + string + + + quantity_Date/orderDateYearName + measure["quantity"] + integer + + Date/orderDateYearName + + SUM + + + GS_Date/orderDateYearName + measure["GS"] + integer + + Date/orderDateYearName + + SUM + + + GMS_Date/orderDateYearName + measure["GMS"] + integer + + Date/orderDateYearName + + SUM + + + GMP_Date/orderDateYearName + measure["GMP"] + integer + + Date/orderDateYearName + + SUM + + + GSP_Date/orderDateYearName + measure["GSP"] + integer + + Date/orderDateYearName + + SUM + + + GP_Date/orderDateYearName + measure["GP"] + integer + + Date/orderDateYearName + + SUM + + + orderDateMonthName + dimension["Date"]["orderDateMonthName"] + string + + + quantity_Date/orderDateMonthName + measure["quantity"] + integer + + Date/orderDateMonthName + + SUM + + + GS_Date/orderDateMonthName + measure["GS"] + integer + + Date/orderDateMonthName + + SUM + + + GMS_Date/orderDateMonthName + measure["GMS"] + integer + + Date/orderDateMonthName + + SUM + + + GMP_Date/orderDateMonthName + measure["GMP"] + integer + + Date/orderDateMonthName + + SUM + + + GSP_Date/orderDateMonthName + measure["GSP"] + integer + + Date/orderDateMonthName + + SUM + + + GP_Date/orderDateMonthName + measure["GP"] + integer + + Date/orderDateMonthName + + SUM + + + orderDateWeekOfYear + dimension["Date"]["orderDateWeekOfYear"] + string + + + quantity_Date/orderDateWeekOfYear + measure["quantity"] + integer + + Date/orderDateWeekOfYear + + SUM + + + GS_Date/orderDateWeekOfYear + measure["GS"] + integer + + Date/orderDateWeekOfYear + + SUM + + + GMS_Date/orderDateWeekOfYear + measure["GMS"] + integer + + Date/orderDateWeekOfYear + + SUM + + + GMP_Date/orderDateWeekOfYear + measure["GMP"] + integer + + Date/orderDateWeekOfYear + + SUM + + + GSP_Date/orderDateWeekOfYear + measure["GSP"] + integer + + Date/orderDateWeekOfYear + + SUM + + + GP_Date/orderDateWeekOfYear + measure["GP"] + integer + + Date/orderDateWeekOfYear + + SUM + + + Brand + dimension["Account"]["Brand"] + string + + + quantity_Account/Brand_Date/orderDateWeekOfYear + measure["quantity"] + integer + + Account/Brand + Date/orderDateWeekOfYear + + SUM + + + GS_Account/Brand_Date/orderDateWeekOfYear + measure["GS"] + integer + + Account/Brand + Date/orderDateWeekOfYear + + SUM + + + GMS_Account/Brand_Date/orderDateWeekOfYear + measure["GMS"] + integer + + Account/Brand + Date/orderDateWeekOfYear + + SUM + + + GMP_Account/Brand_Date/orderDateWeekOfYear + measure["GMP"] + integer + + Account/Brand + Date/orderDateWeekOfYear + + SUM + + + GSP_Account/Brand_Date/orderDateWeekOfYear + measure["GSP"] + integer + + Account/Brand + Date/orderDateWeekOfYear + + SUM + + + GP_Account/Brand_Date/orderDateWeekOfYear + measure["GP"] + integer + + Account/Brand + Date/orderDateWeekOfYear + + SUM + + + Pod + dimension["Account"]["Pod"] + string + + + quantity_Account/Pod_Date/orderDateWeekOfYear + measure["quantity"] + integer + + Account/Pod + Date/orderDateWeekOfYear + + SUM + + + GS_Account/Pod_Date/orderDateWeekOfYear + measure["GS"] + integer + + Account/Pod + Date/orderDateWeekOfYear + + SUM + + + GMS_Account/Pod_Date/orderDateWeekOfYear + measure["GMS"] + integer + + Account/Pod + Date/orderDateWeekOfYear + + SUM + + + GMP_Account/Pod_Date/orderDateWeekOfYear + measure["GMP"] + integer + + Account/Pod + Date/orderDateWeekOfYear + + SUM + + + GSP_Account/Pod_Date/orderDateWeekOfYear + measure["GSP"] + integer + + Account/Pod + Date/orderDateWeekOfYear + + SUM + + + GP_Account/Pod_Date/orderDateWeekOfYear + measure["GP"] + integer + + Account/Pod + Date/orderDateWeekOfYear + + SUM + + + Account + dimension["Account"]["Account"] + string + + + quantity_Account/Account_Date/orderDateWeekOfYear + measure["quantity"] + integer + + Account/Account + Date/orderDateWeekOfYear + + SUM + + + GS_Account/Account_Date/orderDateWeekOfYear + measure["GS"] + integer + + Account/Account + Date/orderDateWeekOfYear + + SUM + + + GMS_Account/Account_Date/orderDateWeekOfYear + measure["GMS"] + integer + + Account/Account + Date/orderDateWeekOfYear + + SUM + + + GMP_Account/Account_Date/orderDateWeekOfYear + measure["GMP"] + integer + + Account/Account + Date/orderDateWeekOfYear + + SUM + + + GSP_Account/Account_Date/orderDateWeekOfYear + measure["GSP"] + integer + + Account/Account + Date/orderDateWeekOfYear + + SUM + + + GP_Account/Account_Date/orderDateWeekOfYear + measure["GP"] + integer + + Account/Account + Date/orderDateWeekOfYear + + SUM + + + GMP% + if ((data["GMP_Account/Account_Date/orderDateWeekOfYear"] != null) && (data["GMS_Account/Account_Date/orderDateWeekOfYear"] != null)) +{ + data["GMP_Account/Account_Date/orderDateWeekOfYear"]/data["GMS_Account/Account_Date/orderDateWeekOfYear"] +} + decimal + + + GP% + if ((data["GP_Account/Account_Date/orderDateWeekOfYear"] != null) && (data["GS_Account/Account_Date/orderDateWeekOfYear"] != null)) +{ + data["GP_Account/Account_Date/orderDateWeekOfYear"]/data["GS_Account/Account_Date/orderDateWeekOfYear"] +} + decimal + + + AMP + if ((data["GMP_Account/Account_Date/orderDateWeekOfYear"] != null) && (data["quantity_Account/Account_Date/orderDateWeekOfYear"] != null)) +{ + data["GMP_Account/Account_Date/orderDateWeekOfYear"]/data["quantity_Account/Account_Date/orderDateWeekOfYear"] +} + float + + + AGP + if ((data["GP_Account/Account_Date/orderDateWeekOfYear"] != null) && (data["quantity_Account/Account_Date/orderDateWeekOfYear"] != null)) +{ + data["GP_Account/Account_Date/orderDateWeekOfYear"]/data["quantity_Account/Account_Date/orderDateWeekOfYear"] +} + float + + + Brand_TOTAL + dimension["Account"]["Brand"]+" TOTAL" + string + + + Pod_TOTAL + dimension["Account"]["Pod"]+" TOTAL" + string + + + Pod_GMP% + if ((data["GMP_Account/Pod_Date/orderDateWeekOfYear"] != null) && (data["GMS_Account/Pod_Date/orderDateWeekOfYear"] != null)) +{ + data["GMP_Account/Pod_Date/orderDateWeekOfYear"]/data["GMS_Account/Pod_Date/orderDateWeekOfYear"] +} + decimal + + + Brand_GMP% + if ((data["GMP_Account/Brand_Date/orderDateWeekOfYear"] != null) && (data["GMS_Account/Brand_Date/orderDateWeekOfYear"] != null)) +{ + data["GMP_Account/Brand_Date/orderDateWeekOfYear"]/data["GMS_Account/Brand_Date/orderDateWeekOfYear"] +} + decimal + + + Pod_GP% + if ((data["GP_Account/Pod_Date/orderDateWeekOfYear"] != null) && (data["GS_Account/Pod_Date/orderDateWeekOfYear"] != null)) +{ + data["GP_Account/Pod_Date/orderDateWeekOfYear"]/data["GS_Account/Pod_Date/orderDateWeekOfYear"] +} + decimal + + + Brand_GP% + if ((data["GP_Account/Brand_Date/orderDateWeekOfYear"] != null) && (data["GS_Account/Brand_Date/orderDateWeekOfYear"] != null)) +{ + data["GP_Account/Brand_Date/orderDateWeekOfYear"]/data["GS_Account/Brand_Date/orderDateWeekOfYear"] +} + decimal + + + Grand_GMP% + if ((data["GMP_Date/orderDateWeekOfYear"] != null) && (data["GMS_Date/orderDateWeekOfYear"] != null)) +{ + data["GMP_Date/orderDateWeekOfYear"]/data["GMS_Date/orderDateWeekOfYear"] +} + decimal + + + Grand_GP% + if ((data["GP_Date/orderDateWeekOfYear"] != null) && (data["GS_Date/orderDateWeekOfYear"] != null)) +{ + data["GP_Date/orderDateWeekOfYear"]/data["GS_Date/orderDateWeekOfYear"] +} + decimal + + + Pod_AMP + if ((data["GMP_Account/Pod_Date/orderDateWeekOfYear"] != null) && (data["quantity_Account/Pod_Date/orderDateWeekOfYear"] != null)) +{ + data["GMP_Account/Pod_Date/orderDateWeekOfYear"]/data["quantity_Account/Pod_Date/orderDateWeekOfYear"] +} + float + + + Brand_AMP + if ((data["GMP_Account/Brand_Date/orderDateWeekOfYear"] != null) && (data["quantity_Account/Brand_Date/orderDateWeekOfYear"] != null)) +{ + data["GMP_Account/Brand_Date/orderDateWeekOfYear"]/data["quantity_Account/Brand_Date/orderDateWeekOfYear"] +} + float + + + Grand_AMP + if ((data["GMP_Date/orderDateWeekOfYear"] != null) && (data["quantity_Date/orderDateWeekOfYear"] != null)) +{ + data["GMP_Date/orderDateWeekOfYear"]/data["quantity_Date/orderDateWeekOfYear"] +} + float + + + Pod_AGP + if ((data["GP_Account/Pod_Date/orderDateWeekOfYear"] != null) && (data["quantity_Account/Pod_Date/orderDateWeekOfYear"] != null)) +{ + data["GP_Account/Pod_Date/orderDateWeekOfYear"]/data["quantity_Account/Pod_Date/orderDateWeekOfYear"] +} + float + + + Brand_AGP + if ((data["GP_Account/Brand_Date/orderDateWeekOfYear"] != null) && (data["quantity_Account/Brand_Date/orderDateWeekOfYear"] != null)) +{ + data["GP_Account/Brand_Date/orderDateWeekOfYear"]/data["quantity_Account/Brand_Date/orderDateWeekOfYear"] +} + float + + + Grand_AGP + if ((data["GP_Date/orderDateWeekOfYear"] != null) && (data["quantity_Date/orderDateWeekOfYear"] != null)) +{ + data["GP_Date/orderDateWeekOfYear"]/data["quantity_Date/orderDateWeekOfYear"] +} + 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/birt/widget/accounting/AccountingForms.xml b/birt/widget/accounting/AccountingForms.xml new file mode 100644 index 000000000..9c5350ca7 --- /dev/null +++ b/birt/widget/accounting/AccountingForms.xml @@ -0,0 +1,37 @@ + + + + + +
+ + + + + + + + + +
+
diff --git a/birt/widget/accounting/AccountingScreens.xml b/birt/widget/accounting/AccountingScreens.xml new file mode 100644 index 000000000..5f94865a8 --- /dev/null +++ b/birt/widget/accounting/AccountingScreens.xml @@ -0,0 +1,44 @@ + + + + + +
+ + + + + + + +
+ + + + + +
+
+
+
+
+
+
\ No newline at end of file diff --git a/example/widget/example/BirtForms.xml b/birt/widget/birt/BirtForms.xml similarity index 97% rename from example/widget/example/BirtForms.xml rename to birt/widget/birt/BirtForms.xml index 82f51fa1b..a377d530c 100644 --- a/example/widget/example/BirtForms.xml +++ b/birt/widget/birt/BirtForms.xml @@ -25,7 +25,7 @@ under the License. - +