Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0044026 | Openbravo ERP | B. User interface | public | 2020-05-11 15:49 | 2023-01-31 16:10 |
|
Reporter | shuehner | |
Assigned To | shuehner | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | PR23Q2 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0044026: Review and probably removed old jrxml report templates replaced in 2013 |
Description | In 2013 for 3.0MP24 release 'new' jrxml templates where added in issue 23745
However the old templates are still present in pi today in 2020 causing extra work i.e. for translations and sometimes mass-updates to 'all jrxml' files.
List of files (old & new):
./src/org/openbravo/erpReports/C_OrderJR.jrxml
./src/org/openbravo/erpReports/C_OrderJR_new.jrxml
./src/org/openbravo/erpReports/C_OrderLinesJR.jrxml
./src/org/openbravo/erpReports/C_OrderLinesJR_new.jrxml
./src/org/openbravo/erpReports/C_OrderLinesTaxIncludedJR.jrxml
./src/org/openbravo/erpReports/C_OrderLinesTaxIncludedJR_new.jrxml
./src/org/openbravo/erpReports/RptC_Invoice.jrxml
./src/org/openbravo/erpReports/RptC_Invoice_Lines.jrxml
./src/org/openbravo/erpReports/RptC_Invoice_Lines_new.jrxml
./src/org/openbravo/erpReports/RptC_Invoice_new.jrxml
./src/org/openbravo/erpReports/RptC_Invoice_TaxLines.jrxml
./src/org/openbravo/erpReports/RptC_Invoice_TaxLines_new.jrxml
./src/org/openbravo/erpReports/RptC_Order_TaxLines.jrxml
./src/org/openbravo/erpReports/RptC_Order_TaxLines_new.jrxml
./src/org/openbravo/erpReports/RptM_InOut.jrxml
./src/org/openbravo/erpReports/Rptm_InOut_Lines.jrxml
./src/org/openbravo/erpReports/Rptm_InOut_Lines_new.jrxml
./src/org/openbravo/erpReports/RptM_InOut_new.jrxml
Review is needed to double-check if those 'old' files are completely unused and if they can be safely removed.
|
Steps To Reproduce | - |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | feature request | 0023745 | | closed | Sandrahuguet | New printable jrxml form for orders, invoices goods shipment and goods receipt | blocks | design defect | 0032688 | | acknowledged | Triage Platform Base | remove unused resources |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2020-05-11 15:49 | shuehner | New Issue | |
2020-05-11 15:49 | shuehner | Assigned To | => platform |
2020-05-11 15:49 | shuehner | Modules | => Core |
2020-05-11 15:49 | shuehner | Triggers an Emergency Pack | => No |
2020-05-11 15:50 | shuehner | Relationship added | blocks 0032688 |
2020-05-11 15:50 | shuehner | Relationship added | related to 0023745 |
2020-05-11 15:53 | shuehner | Note Added: 0119738 | |
2020-05-11 16:00 | shuehner | Assigned To | platform => Triage Finance |
2021-10-06 10:15 | vmromanos | Note Added: 0132183 | |
2021-10-06 10:16 | vmromanos | Note Edited: 0132183 | bug_revision_view_page.php?bugnote_id=0132183#r23157 |
2021-10-15 11:28 | hgbot | Note Added: 0132362 | |
2022-12-02 15:14 | hgbot | Note Added: 0144376 | |
2022-12-02 15:19 | hgbot | Note Added: 0144377 | |
2022-12-02 15:23 | hgbot | Note Added: 0144378 | |
2022-12-02 15:26 | hgbot | Note Added: 0144379 | |
2023-01-31 11:40 | hgbot | Note Added: 0146071 | |
2023-01-31 15:40 | hgbot | Note Added: 0146086 | |
2023-01-31 15:40 | hgbot | Note Added: 0146087 | |
2023-01-31 15:40 | hgbot | Note Added: 0146088 | |
2023-01-31 15:40 | hgbot | Note Added: 0146089 | |
2023-01-31 15:40 | hgbot | Note Added: 0146090 | |
2023-01-31 15:40 | hgbot | Note Added: 0146091 | |
2023-01-31 15:40 | hgbot | Note Added: 0146092 | |
2023-01-31 15:40 | hgbot | Note Added: 0146093 | |
2023-01-31 15:40 | hgbot | Note Added: 0146094 | |
2023-01-31 15:40 | hgbot | Note Added: 0146095 | |
2023-01-31 15:41 | hgbot | Resolution | open => fixed |
2023-01-31 15:41 | hgbot | Status | new => closed |
2023-01-31 15:41 | hgbot | Note Added: 0146096 | |
2023-01-31 15:41 | hgbot | Fixed in Version | => PR23Q2 |
2023-01-31 15:41 | hgbot | Note Added: 0146097 | |
2023-01-31 15:47 | shuehner | Assigned To | Triage Finance => shuehner |
2023-01-31 16:10 | hgbot | Note Added: 0146099 | |
Notes |
|
|
Potential leftover usages today:
a.) src-util/modulescript/src/org/openbravo/modulescript/CreateDoctypeTemplate.java
Very old module-script still references the 'old file'
b.) While issues 23745 updated sampledata + 'Initial Client' dataset in 20013
No code seems to be around to update existing installs to 'new files'
For that item b.) if correct need to decide how to deal with those cases today in 2020. I.e. BuildValidation to block updates or force move leftover instances to new files.
For removal:
Several of the jrxml ('old' versions) have manual java file in erpReports related to them which is also unused.
Examples are RptC_Invoice.java & RptC_Order.java those should also be cleanup while working on this issue. |
|
|
(0132183)
|
vmromanos
|
2021-10-06 10:15
(edited on: 2021-10-06 10:16) |
|
These are the reports that can be removed because they are not used anymore:
./src/org/openbravo/erpReports/C_OrderJR.jrxml
./src/org/openbravo/erpReports/C_OrderLinesJR.jrxml
./src/org/openbravo/erpReports/C_OrderLinesTaxIncludedJR.jrxml
./src/org/openbravo/erpReports/RptC_Order_TaxLines.jrxml
./src/org/openbravo/erpReports/RptC_Invoice.jrxml
./src/org/openbravo/erpReports/RptC_Invoice_Lines.jrxml
./src/org/openbravo/erpReports/RptC_Invoice_TaxLines.jrxml
./src/org/openbravo/erpReports/RptM_InOut.jrxml
./src/org/openbravo/erpReports/Rptm_InOut_Lines.jrxml
The following java classes are no longer used and they can be removed:
./src/org/openbravo/erpReports/RptC_Order.java
./src/org/openbravo/erpReports/RptC_Invoice.java
The module script CreateDoctypeTemplate makes reference to one of the reports about to be removed. It has a last version ModuleScriptExecutionLimits that points to Openbravo 2.50, so we can safely remove the associated files:
./src-util/modulescript/src/org/openbravo/modulescript/CreateDoctypeTemplate.java
./src-util/modulescript/src/org/openbravo/modulescript/CreateDoctypeTemplate_Data.xsql
As part of the removal, please clean up also any reference to those in the tables:
AD_TextInterfaces
AD_Model_Object
AD_Model_Object_Mapping
Finally change the name attribute within the jrxml files to avoid confusions:
./src/org/openbravo/erpReports/RptM_RMInOut.jrxml: name="RptM_InOut" --> name="RptM_RMInOut"
./src/org/openbravo/erpReports/RptM_RMInOut_Lines.jrxml: name="Rptm_InOut_Lines" --> name="RptM_RMInOut_Lines"
Most likely these files were created as a copy of the files that we are about to remove, and it was forgotten to change that attribute.
|
|
|
(0132362)
|
hgbot
|
2021-10-15 11:28
|
|
|
|
(0144376)
|
hgbot
|
2022-12-02 15:14
|
|
|
|
(0144377)
|
hgbot
|
2022-12-02 15:19
|
|
|
|
(0144378)
|
hgbot
|
2022-12-02 15:23
|
|
|
|
(0144379)
|
hgbot
|
2022-12-02 15:26
|
|
|
|
(0146071)
|
hgbot
|
2023-01-31 11:40
|
|
|
|
(0146086)
|
hgbot
|
2023-01-31 15:40
|
|
|
|
(0146087)
|
hgbot
|
2023-01-31 15:40
|
|
|
|
(0146088)
|
hgbot
|
2023-01-31 15:40
|
|
|
|
(0146089)
|
hgbot
|
2023-01-31 15:40
|
|
|
|
(0146090)
|
hgbot
|
2023-01-31 15:40
|
|
|
|
(0146091)
|
hgbot
|
2023-01-31 15:40
|
|
|
|
(0146092)
|
hgbot
|
2023-01-31 15:40
|
|
|
|
(0146093)
|
hgbot
|
2023-01-31 15:40
|
|
|
|
(0146094)
|
hgbot
|
2023-01-31 15:40
|
|
|
|
(0146095)
|
hgbot
|
2023-01-31 15:40
|
|
|
|
(0146096)
|
hgbot
|
2023-01-31 15:41
|
|
|
|
(0146097)
|
hgbot
|
2023-01-31 15:41
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 0efae9cda9c4447e360de52dacfbbaa0fe1e1649
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 31-01-2023 10:16:49
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/0efae9cda9c4447e360de52dacfbbaa0fe1e1649 [^]
Fixes ISSUE-44026. Remove old/obsolete jrxml report templates
Issue 23745 from 2013 added new jrxml report template called _new.jrxml
Sampledata & Initial_Setup.xml was also updated back then to use the new
files already.
This removed all the old version of those 3 reports still left today.
- C_OrderJR.jrxml
- Remove main + 2 secondary jrxml files (and ad_textinterfaces entry)
- Remove unused RptC_Invoice.java pointing to it with the its related
AD entries (ad_process, ad_model_object*)
- RptC_Invoice.jrxml
- Same as C_OrderJR (jrxml, java pointing to it and ad_process, ...)
- For both above ad 2 ad_process entires were removed remove the
ad_process_access entries from the sampledata also.
- RptM_InOut.jrxml
- Remove jrxml + subreport and related ad_textinterfaces entries
- Remove related modulescript: CreateDoctypeTemplate
This was gated to only run until 2.50.17398 (<2.50MP18)
- Update misleading text-references in two other jrxml files
to stop (wrongly) pointing to the remove files
- One ad_textinterfaces entries 'moves' from ad_module_id= without
filename and is now appearing in paymentreport module.
Happens automatically by translation code.
---
M modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_TEXTINTERFACES.xml
M referencedata/sampledata/F_B_International_Group/AD_PROCESS_ACCESS.xml
M referencedata/sampledata/QA_Testing/AD_PROCESS_ACCESS.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
M src-db/database/sourcedata/AD_PROCESS.xml
M src-db/database/sourcedata/AD_TEXTINTERFACES.xml
M src/org/openbravo/erpReports/RptM_RMInOut.jrxml
M src/org/openbravo/erpReports/RptM_RMInOut_Lines.jrxml
R src-util/modulescript/build/classes/org/openbravo/modulescript/CreateDoctypeTemplate.class
R src-util/modulescript/build/classes/org/openbravo/modulescript/CreateDoctypeTemplateData.class
R src-util/modulescript/src/org/openbravo/modulescript/CreateDoctypeTemplate.java
R src-util/modulescript/src/org/openbravo/modulescript/CreateDoctypeTemplate_Data.xsql
R src/org/openbravo/erpReports/C_OrderJR.jrxml
R src/org/openbravo/erpReports/C_OrderLinesJR.jrxml
R src/org/openbravo/erpReports/C_OrderLinesTaxIncludedJR.jrxml
R src/org/openbravo/erpReports/RptC_Invoice.java
R src/org/openbravo/erpReports/RptC_Invoice.jrxml
R src/org/openbravo/erpReports/RptC_Invoice_Header_data.xsql
R src/org/openbravo/erpReports/RptC_Invoice_Lines.jrxml
R src/org/openbravo/erpReports/RptC_Invoice_TaxLines.jrxml
R src/org/openbravo/erpReports/RptC_Invoice_data.xsql
R src/org/openbravo/erpReports/RptC_Order.java
R src/org/openbravo/erpReports/RptC_Order_Header_data.xsql
R src/org/openbravo/erpReports/RptC_Order_TaxLines.jrxml
R src/org/openbravo/erpReports/RptM_InOut.jrxml
R src/org/openbravo/erpReports/Rptm_InOut_Lines.jrxml
---
|
|
|
(0146099)
|
hgbot
|
2023-01-31 16:10
|
|
|