Openbravo Issue Tracking System - Modules
View Issue Details
0038340ModulesAdvanced Warehouse Operationspublic2018-04-11 22:122018-05-25 08:39
VictorVillar 
vmromanos 
urgentmajoralways
closedfixed 
5
 
 
dmiguelez
0038340: There is no possibility to put a report template for Distribution Orders in the Document Type
There is no possibility to put a report template for Distribution Orders in the Document Type
There is no possibility to put a report template for Distribution Orders in the Document Type
No tags attached.
depends on feature request 0038518 closed caristu Openbravo ERP Ability of compiling subreports with HttpSecureAppServlet.renderJR 
related to design defect 0038619 new Triage Omni WMS Modules Not possible to define a custom Print Out for Issue/Receive Distribution Order 
diff FIXED_ISSUE_38340.diff (16,163) 2018-05-10 18:00
https://issues.openbravo.com/file_download.php?file_id=11790&type=bug
Issue History
2018-04-11 22:12VictorVillarNew Issue
2018-04-11 22:12VictorVillarAssigned To => dmiguelez
2018-04-11 22:12VictorVillarResolution time => 1525212000
2018-04-16 15:38martinsdanIssue Monitored: martinsdan
2018-04-17 12:28ngarciaIssue Monitored: ngarcia
2018-04-18 16:45dmiguelezAssigned Todmiguelez => Triage Finance
2018-04-20 11:19dmiguelezAssigned ToTriage Finance => collazoandy4
2018-04-30 17:07collazoandy4Statusnew => scheduled
2018-05-04 13:48dmiguelezResolution time1525212000 => 1527199200
2018-05-08 02:36collazoandy4Note Added: 0104315
2018-05-10 17:50vmromanosRelationship addeddepends on 0038518
2018-05-10 18:00vmromanosFile Added: FIXED_ISSUE_38340.diff
2018-05-10 18:04vmromanosNote Added: 0104459
2018-05-10 18:05vmromanosNote Edited: 0104459bug_revision_view_page.php?bugnote_id=0104459#r17122
2018-05-21 14:04vmromanosAssigned Tocollazoandy4 => vmromanos
2018-05-24 15:46dmiguelezRelationship addedrelated to 0038619
2018-05-25 08:38hgbotCheckin
2018-05-25 08:38hgbotNote Added: 0104686
2018-05-25 08:38hgbotStatusscheduled => resolved
2018-05-25 08:38hgbotResolutionopen => fixed
2018-05-25 08:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/c0b2758211904436961fd21f51ce285241cf0bc6 [^]
2018-05-25 08:38hgbotCheckin
2018-05-25 08:38hgbotNote Added: 0104687
2018-05-25 08:38hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/c0b2758211904436961fd21f51ce285241cf0bc6 [^] => http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/31b6036d6777d1e151b6f59f7187d32ee4c834ba [^]
2018-05-25 08:38hgbotCheckin
2018-05-25 08:38hgbotNote Added: 0104688
2018-05-25 08:38hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/31b6036d6777d1e151b6f59f7187d32ee4c834ba [^] => http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/541a157c057a3fa354819387d1eb81aa811d2ad2 [^]
2018-05-25 08:38hgbotCheckin
2018-05-25 08:38hgbotNote Added: 0104689
2018-05-25 08:38hgbotCheckin
2018-05-25 08:38hgbotNote Added: 0104690
2018-05-25 08:38hgbotCheckin
2018-05-25 08:38hgbotNote Added: 0104691
2018-05-25 08:39dmiguelezReview Assigned To => dmiguelez
2018-05-25 08:39dmiguelezNote Added: 0104692
2018-05-25 08:39dmiguelezStatusresolved => closed
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

Notes
(0104315)
collazoandy4   
2018-05-08 02:36   
Test Plan
  As AWO-QA Admin Role
    Go to Distribution Order Issue and click on Print button and check the process ends successfull and a new report file is open
    Go to Document Type and edit Distribution Order Issue record, set a new report template
    Go back to Distribution Order Issue window and clic on Print button and check the newly report templated defined in document type is now used for the report.

Test Plan II
  Repeat the Previous test plan for Distribution Order Receipt document.
(0104459)
vmromanos   
2018-05-10 18:04   
(edited on: 2018-05-10 18:05)
Proper fix for this issue is blocked by platform issue 0038518.

In the attached file the first changeset ONLY, with node id 407ffc93b2b0f10b2f8ede129d2d6b4217914fa6, is a workaround for this issue without waiting for 0038518 fix.

If the fix for 0038518 changes the internal HttpSecureAppServlet.renderJR() to always compile subreports, then the last changesets in attached solution will work fine.

If platform decides another way to fix it, like adding a new param to renderJR, then we will need to adapt changeset 259a0ed202429935f2bfb5f9ca187e297d9cd06c

(0104686)
hgbot   
2018-05-25 08:38   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: c0b2758211904436961fd21f51ce285241cf0bc6
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Thu May 03 16:00:52 2018 -0400
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/c0b2758211904436961fd21f51ce285241cf0bc6 [^]

Fixes issue 38340: There is no possibility to put a report template for
Distribution Orders in the Document Type

The Distribution Order document type is ignoring the AD definition for Report
Template.

Now the code have been modified to properly take into account the AD definition
for Report Template.

---
M src/org/openbravo/distributionorder/erpReports/OBDO_DistOrder.jrxml
M src/org/openbravo/distributionorder/erpReports/Print_DistOrder.java
---
(0104687)
hgbot   
2018-05-25 08:38   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: 31b6036d6777d1e151b6f59f7187d32ee4c834ba
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Thu May 10 17:16:27 2018 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/31b6036d6777d1e151b6f59f7187d32ee4c834ba [^]

Fixes issue 38340: reverted changes in Print_DistOrder as they are not right

---
M src/org/openbravo/distributionorder/erpReports/Print_DistOrder.java
---
(0104688)
hgbot   
2018-05-25 08:38   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: 541a157c057a3fa354819387d1eb81aa811d2ad2
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Thu May 10 17:58:51 2018 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/541a157c057a3fa354819387d1eb81aa811d2ad2 [^]

Fixed issue 38340: improved solution based on 0038518
The Template is gotten from the standard TemplateData.getDocumentTemplates() API. If not returns the hardcoded template for DO.
Logic related to download is directly managed by HttpSecureAppServlet

---
M src/org/openbravo/distributionorder/erpReports/Print_DistOrder.java
---
(0104689)
hgbot   
2018-05-25 08:38   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: bbf6184109dcee0e68c8632ac37771f7619d8915
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Mon May 21 13:32:28 2018 -0400
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/bbf6184109dcee0e68c8632ac37771f7619d8915 [^]

Related to issue 38340:Set the report file name exporting the report

The Report File Name defined in the document type template it's was not taking
into account when the is exported to pdf file.

The report file name is now the one defined in the document type report template
if not template is defined a default file name is set

---
M src/org/openbravo/distributionorder/erpReports/Print_DistOrder.java
---
(0104690)
hgbot   
2018-05-25 08:38   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: 2681b9e5570bddf785de47fabf7404bb1cc60cc3
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Wed May 23 11:35:40 2018 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/2681b9e5570bddf785de47fabf7404bb1cc60cc3 [^]

Related to Issue 38340. Code Review changes:

* Added logger
* Renamed variables and constants to make names more descriptive
* Added missing Override annotations
* Added missing try-catch in doPost method
* In getDocumentTypeTemplate method, return an empty array if no
  templates are found
* In printPagePartePDF check only if the template variable is empty,
  no null results can be returned after the change

---
M src/org/openbravo/distributionorder/erpReports/Print_DistOrder.java
---
(0104691)
hgbot   
2018-05-25 08:38   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: 79d72cb76ebf64b4623f942ebb168496228a05b8
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri May 25 08:37:59 2018 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/79d72cb76ebf64b4623f942ebb168496228a05b8 [^]

Related to Issue 38340. Updates Module version

---
M src-db/database/sourcedata/AD_MODULE.xml
---
(0104692)
dmiguelez   
2018-05-25 08:39   
Code Review + Testing Ok