Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019489Openbravo ERPZ. Otherspublic2012-01-13 10:232012-04-02 06:11
jvazquez 
guilleaer 
normalmajoralways
closedfixed 
5
 
3.0MP10 
Core
No
0019489: Variables cannot be used in "Document Type" -> "Report templates" -> "Report filename" field
Wiki page http://wiki.openbravo.com/wiki/Projects/Outbound_Email/Technical_Documentation [^]
states:

"The Report Filename can use the following tags. These tags will be replaced with the proper values when a document is send
@cus_ref@ => The reference of the document which the customer specified
@our_ref@ => The reference of the document within openbravo
@cus_nam@ => The name of the customer
@sal_nam@ => The name of the sales rep."

Only variable @our_ref@ is correctly replaced, the rest are not replaced. Moreover, the current date is always automatically appended to the filename.
Go to "Document Type". Filter by a document name, for example, "Standard order". Select the "Report template" provided by default. Change "Report filename" field entering any of the variables @cus_ref@, @cus_nam@, @sal_nam@.
Print a Standard Order and check PDF filename is not the expected.
No tags attached.
related to defect 00245313.0MP27 closed vmromanos @cus_nam@ in report filename replaced by business partner name instead of user name as it's done in email's subject and body 
Issue History
2012-01-13 10:23jvazquezNew Issue
2012-01-13 10:23jvazquezAssigned To => jonalegriaesarte
2012-01-13 10:23jvazquezModules => Core
2012-02-15 19:03iciordiaAssigned Tojonalegriaesarte => vmromanos
2012-02-16 18:30vmromanosAssigned Tovmromanos => alostale
2012-03-09 09:25alostaleAssigned Toalostale => guilleaer
2012-03-14 12:36hgbotCheckin
2012-03-14 12:36hgbotNote Added: 0046385
2012-03-14 12:36hgbotStatusnew => resolved
2012-03-14 12:36hgbotResolutionopen => fixed
2012-03-14 12:36hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/360551790353128a5498057855089c2cc74592aa [^]
2012-03-14 12:55guilleaerNote Added: 0046387
2012-03-26 10:28hgbotCheckin
2012-03-26 10:28hgbotNote Added: 0046708
2012-03-28 11:57alostaleNote Added: 0046811
2012-03-28 11:57alostaleStatusresolved => closed
2012-03-28 11:57alostaleFixed in Version => 3.0MP10
2012-04-02 06:10hudsonbotCheckin
2012-04-02 06:10hudsonbotNote Added: 0047129
2012-04-02 06:11hudsonbotCheckin
2012-04-02 06:11hudsonbotNote Added: 0047221
2013-08-16 10:32vmromanosRelationship addedrelated to 0024531

Notes
(0046385)
hgbot   
2012-03-14 12:36   
Repository: erp/devel/pi
Changeset: 360551790353128a5498057855089c2cc74592aa
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Wed Mar 14 12:34:28 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/360551790353128a5498057855089c2cc74592aa [^]

Fixed issue 19489: Now variables can be used in the report filename.

In purchase transactions the text @sal_nam@ is ignored.

---
M src/org/openbravo/erpCommon/utility/reporting/Report.java
M src/org/openbravo/erpCommon/utility/reporting/Report_data.xsql
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
---
(0046387)
guilleaer   
2012-03-14 12:55   
The current date is always automatically appended to the filename in order to avoid errors caused by equals filenames.

The are 4 types of reports [quotations & orders, invoices, shipments, payments]
Test Plan:
1. Logged as F&B admin
2. Go to "Document Type". Filter by a document name, for example, "Standard order". Select the "Report template" provided by default. Change "Report filename" field entering any of the variables @cus_ref@, @cus_nam@, @sal_nam@.
3. Print the following documents
 - Standard Order [sale / purchase]
 - Invoice [sale / invoice]
 - Good recipt or out shipment
 - Payment in or payment out

The filename should have correct values in the vars positions.

Probably, documentation should be improved indicating that in case of purchase transactions the text @sal_nam@ is ignored.
(0046708)
hgbot   
2012-03-26 10:28   
Repository: erp/devel/pi
Changeset: d63853373a536f0d70c3a75d56c60ff9d3c89575
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Mon Mar 26 10:26:57 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d63853373a536f0d70c3a75d56c60ff9d3c89575 [^]

Related to issue 19489: Reverting unnecesary changes in printcontroller.
These changes shouldn't have been done in the previous commit

---
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
---
(0046811)
alostale   
2012-03-28 11:57   
Code reviewed and tested on pi@0fc0c86395e6
(0047129)
hudsonbot   
2012-04-02 06:10   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7814864461ac [^]

Maturity status: Test
(0047221)
hudsonbot   
2012-04-02 06:11   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7814864461ac [^]

Maturity status: Test