diff --git a/birt/src/main/java/org/apache/ofbiz/birt/flexible/BirtMasterReportServices.java b/birt/src/main/java/org/apache/ofbiz/birt/flexible/BirtMasterReportServices.java index 1f8f8e409..05b4dbdb0 100644 --- a/birt/src/main/java/org/apache/ofbiz/birt/flexible/BirtMasterReportServices.java +++ b/birt/src/main/java/org/apache/ofbiz/birt/flexible/BirtMasterReportServices.java @@ -37,13 +37,23 @@ public class BirtMasterReportServices { // The following methods are flexible report services as examples for reporting public static Map workEffortPerPersonPrepareDate(DispatchContext dctx, Map context) { - Map dataMap = UtilMisc.toMap("lastName", "name", "firstName", "name", "hours", "floating-point", "fromDate", "date-time", "thruDate", "date-time"); + Map dataMap = UtilMisc.toMap( + "lastName", "name", + "firstName", "name", + "hours", "floating-point", + "fromDate", "date-time", + "thruDate", "date-time"); LinkedHashMap filterMap = new LinkedHashMap(); filterMap.put("firstName", "name"); filterMap.put("lastName", "name"); filterMap.put("fromDate", "date-time"); filterMap.put("thruDate", "date-time"); - Map fieldDisplayLabels = UtilMisc.toMap("lastName", "Last name", "firstName", "First name", "hours", "Hours", "fromDate", "From date", "thruDate", "Thru date"); + Map fieldDisplayLabels = UtilMisc.toMap( + "lastName", "Last name", + "firstName", "First name", + "hours", "Hours", + "fromDate", "From date", + "thruDate", "Thru date"); LinkedHashMap filterDisplayLabels = new LinkedHashMap(); filterDisplayLabels.put("firstName", "First name"); filterDisplayLabels.put("lastName", "Last name"); @@ -127,8 +137,38 @@ public class BirtMasterReportServices { } public static Map turnOverPrepareFields(DispatchContext dctx, Map context) { - Map 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 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 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 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 filterMap = new LinkedHashMap(); filterMap.put("productCategoryId", "short-varchar"); filterMap.put("productStoreId", "short-varchar");