Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015255Openbravo ERP01. General setuppublic2010-11-21 22:292012-05-25 12:10
tgarcia 
marvintm 
highminoralways
closedfixed 
20Community Appliance
 
3.0MP12 
Core
No
0015255: erpCommon Utility class doesn't retrieve Client Documentation Image
this is related src.org.openbravo.erpCommon.utility.Utility.java, when invoking the getImageLogo function (line 2637 and following) with "yourcompanydoc" as 1st argument. The expected behaviour would be:
1- if there's a "org" argument, get the doc image for the organization
2- else if exists a doc image for current client, return it
3- else return default client's image

Step 2 is not implemented, so there is no way to get the client's document image from the api.
follow the steps on this page from the wiki:

http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/How_to_change_an_existing_report [^]
add the following lines to src.org.openbravo.erpCommon.utility.Utility.java, after line 2667:

        if (img == null) {
          img = OBDal.getInstance().get(ClientInformation.class,
              OBContext.getOBContext().getCurrentClient().getId()).getYourCompanyDocumentImage();
        }

(this code is syntacticly validated but was not tested in any other way)
No tags attached.
Issue History
2010-11-21 22:29tgarciaNew Issue
2010-11-21 22:29tgarciaAssigned To => adrianromero
2011-06-03 10:58dalsasuaAssigned Toadrianromero => dalsasua
2011-07-20 18:13dalsasuaAssigned Todalsasua => jonalegriaesarte
2011-09-19 11:35psarobePrioritynormal => high
2011-09-19 11:35psarobeStatusnew => scheduled
2012-02-15 19:04iciordiaAssigned Tojonalegriaesarte => vmromanos
2012-02-16 16:20vmromanosAssigned Tovmromanos => alostale
2012-03-30 15:30alostaleAssigned Toalostale => marvintm
2012-05-08 15:59hgbotCheckin
2012-05-08 15:59hgbotNote Added: 0048454
2012-05-08 15:59hgbotStatusscheduled => resolved
2012-05-08 15:59hgbotResolutionopen => fixed
2012-05-08 15:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/26977a15e890b8db3a12014218865b5aeebb820a [^]
2012-05-09 16:21AugustoMauchNote Added: 0048513
2012-05-09 16:21AugustoMauchStatusresolved => closed
2012-05-09 16:22AugustoMauchFixed in Version => 3.0MP12
2012-05-25 12:10hudsonbotCheckin
2012-05-25 12:10hudsonbotNote Added: 0049053

Notes
(0048454)
hgbot   
2012-05-08 15:59   
Repository: erp/devel/pi
Changeset: 26977a15e890b8db3a12014218865b5aeebb820a
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue May 08 15:57:47 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/26977a15e890b8db3a12014218865b5aeebb820a [^]

Fixed issue 15255. Client image will be retrieved if there is no org image.

---
M src/org/openbravo/erpCommon/utility/Utility.java
---
(0048513)
AugustoMauch   
2012-05-09 16:21   
Code reviewed and verified in pi@e720f25cba62
(0049053)
hudsonbot   
2012-05-25 12: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/5401e185a8b0 [^]

Maturity status: Test