Author: jleroux
Date: Fri Apr 7 04:49:50 2017 New Revision: 1790501 URL: http://svn.apache.org/viewvc?rev=1790501&view=rev Log: Fixed: Implement and demonstrate few services in Birt Report Builder (OFBIZ-9192) This fixes an issue I put in while removing partyName. The couple ("Customer", "Customer name") should also have been removed While at it I formatted to make things more legible Modified: ofbiz/ofbiz-plugins/trunk/birt/src/main/java/org/apache/ofbiz/birt/flexible/BirtMasterReportServices.java Modified: ofbiz/ofbiz-plugins/trunk/birt/src/main/java/org/apache/ofbiz/birt/flexible/BirtMasterReportServices.java URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/birt/src/main/java/org/apache/ofbiz/birt/flexible/BirtMasterReportServices.java?rev=1790501&r1=1790500&r2=1790501&view=diff ============================================================================== --- ofbiz/ofbiz-plugins/trunk/birt/src/main/java/org/apache/ofbiz/birt/flexible/BirtMasterReportServices.java (original) +++ ofbiz/ofbiz-plugins/trunk/birt/src/main/java/org/apache/ofbiz/birt/flexible/BirtMasterReportServices.java Fri Apr 7 04:49:50 2017 @@ -37,13 +37,23 @@ public class BirtMasterReportServices { // The following methods are flexible report services as examples for reporting public static Map<String, Object> workEffortPerPersonPrepareDate(DispatchContext dctx, Map<String, Object> context) { - Map<String, String> dataMap = UtilMisc.toMap("lastName", "name", "firstName", "name", "hours", "floating-point", "fromDate", "date-time", "thruDate", "date-time"); + Map<String, String> dataMap = UtilMisc.toMap( + "lastName", "name", + "firstName", "name", + "hours", "floating-point", + "fromDate", "date-time", + "thruDate", "date-time"); LinkedHashMap<String, String> filterMap = new LinkedHashMap<String, String>(); filterMap.put("firstName", "name"); filterMap.put("lastName", "name"); filterMap.put("fromDate", "date-time"); filterMap.put("thruDate", "date-time"); - Map<String, String> fieldDisplayLabels = UtilMisc.toMap("lastName", "Last name", "firstName", "First name", "hours", "Hours", "fromDate", "From date", "thruDate", "Thru date"); + Map<String, String> fieldDisplayLabels = UtilMisc.toMap( + "lastName", "Last name", + "firstName", "First name", + "hours", "Hours", + "fromDate", "From date", + "thruDate", "Thru date"); LinkedHashMap<String, String> filterDisplayLabels = new LinkedHashMap<String, String>(); filterDisplayLabels.put("firstName", "First name"); filterDisplayLabels.put("lastName", "Last name"); @@ -127,8 +137,38 @@ public class BirtMasterReportServices { } public static Map<String, Object> turnOverPrepareFields(DispatchContext dctx, Map<String, Object> context) { - Map<String, String> dataMap = UtilMisc.toMap("invoiceTypeId", "short-varchar", "invoicePartyId", "short-varchar", "statusId", "short-varchar", "invoiceDate", "date", "dueDate", "date", "currencyUomId", "short-varchar", "invoiceItemTypeId", "short-varchar", "invoiceItemSeqId", "short-varchar", "productId", "short-varchar", "partyId", "short-varchar", "primaryProductCategoryId", "short-varchar", "quantity", "numeric", "amount", "currency-amount", "productStoreId", "short-varchar", "storeName", "short-varchar"); - Map<String, String> fieldDisplayLabels = UtilMisc.toMap("invoiceTypeId", "invoice Type", "invoicePartyId", "Invoice", "statusId", "Status", "invoiceDate", "Date", "dueDate", "Due date ", "currencyUomId", "Currency", "invoiceItemTypeId", "Invoice type line", "invoiceItemSeqId", "Invoice line", "productId", "Product", "partyId", "Customer", "Customer name", "primaryProductCategoryId", "Product category", "quantity", "Qty", "amount", "Montant", "productStoreId", "Product Store", "storeName", "Product store name"); + Map<String, String> dataMap = UtilMisc.toMap( + "invoiceTypeId", "short-varchar", + "invoicePartyId", "short-varchar", + "statusId", "short-varchar", + "invoiceDate", "date", + "dueDate", "date", + "currencyUomId", "short-varchar", + "invoiceItemTypeId", "short-varchar", + "invoiceItemSeqId", "short-varchar", + "productId", "short-varchar", + "partyId", "short-varchar", + "primaryProductCategoryId", "short-varchar", + "quantity", "numeric", + "amount", "currency-amount", + "productStoreId", "short-varchar", + "storeName", "short-varchar"); + Map<String, String> fieldDisplayLabels = UtilMisc.toMap( + "invoiceTypeId", "invoice Type", + "invoicePartyId", "Invoice", + "statusId", "Status", + "invoiceDate", "Date", + "dueDate", "Due date ", + "currencyUomId", "Currency", + "invoiceItemTypeId", "Invoice type line", + "invoiceItemSeqId", "Invoice line", + "productId", "Product", + "partyId", "Customer", + "primaryProductCategoryId", "Product category", + "quantity", "Qty", + "amount", "Amount", + "productStoreId", "Product Store", + "storeName", "Product store name"); LinkedHashMap<String, String> filterMap = new LinkedHashMap<String, String>(); filterMap.put("productCategoryId", "short-varchar"); filterMap.put("productStoreId", "short-varchar"); |
Free forum by Nabble | Edit this page |