Openbravo Issue Tracking System - Java Client POS
View Issue Details
0014268Java Client POS(No Category)public2010-08-24 02:432010-10-22 17:27
holyfield 
adrianromero 
urgentminoralways
closedduplicate 
5ALL OS
2.30.1 
2.40 
0014268: ${ticketline.printName()} instead of product name
I have problem viewing and printing closed tickets. It does not show product name on ticket lines, it outputs ${ticketline.printName()} instead of product name.

I attached the sample image too.

This is platform independent, as this occurs on any platform, Linux, Windows, Mac.

As I understanding, it couldn't read XML properties from ticket line?
open closed tickets
enter ticket number
ticket opens
To fix the problem :)

Don't hesitate to contact regarding the issue.
No tags attached.
duplicate of defect 00145852.40 closed adrianromero Cannot load the receipt in the Edit sales window 
jpg 100824-0001.jpg (20,180) 2010-08-24 02:43
https://issues.openbravo.com/file_download.php?file_id=2896&type=bug
jpg
Issue History
2010-08-24 02:43holyfieldNew Issue
2010-08-24 02:43holyfieldAssigned To => adrianromero
2010-08-24 02:43holyfieldFile Added: 100824-0001.jpg
2010-08-24 03:03holyfieldNote Added: 0030239
2010-08-24 09:02adrianromeroNote Added: 0030241
2010-08-24 09:02adrianromeroSeveritycritical => minor
2010-08-24 09:02adrianromeroStatusnew => scheduled
2010-08-24 09:02adrianromeroTarget Version => 2.40
2010-08-24 14:28holyfieldNote Added: 0030251
2010-08-26 13:25mceloneNote Added: 0030350
2010-08-26 13:25mceloneNote Edited: 0030350bug_revision_view_page.php?bugnote_id=0030350#r733
2010-08-26 13:26mceloneNote Edited: 0030350bug_revision_view_page.php?bugnote_id=0030350#r734
2010-08-26 13:26mceloneNote Edited: 0030350bug_revision_view_page.php?bugnote_id=0030350#r735
2010-08-26 13:48holyfieldNote Added: 0030352
2010-08-26 13:49holyfieldNote Edited: 0030352bug_revision_view_page.php?bugnote_id=0030352#r737
2010-09-16 17:48adrianromeroRelationship addedduplicate of 0014585
2010-09-16 17:48adrianromeroNote Added: 0031172
2010-09-16 17:48adrianromeroStatusscheduled => closed
2010-09-16 17:48adrianromeroResolutionopen => duplicate
2010-09-17 00:00anonymoussf_bug_id0 => 3068049
2010-10-22 17:27rooterNote Added: 0032123
2012-11-07 09:40priyamCategory01 - General => (No Category)

Notes
(0030239)
holyfield   
2010-08-24 03:03   
I guess it might be related with method below on class TicketLineInfo

This method reads XML from database field ATTRIBUTES which is mediumblob data type.

    public void readValues(DataRead dr) throws BasicException {
        m_sTicket = dr.getString(1);
        m_iLine = dr.getInt(2).intValue();
        productid = dr.getString(3);
        attsetinstid = dr.getString(4);

        multiply = dr.getDouble(5);
        price = dr.getDouble(6);

        tax = new TaxInfo(dr.getString(7), dr.getString(8), dr.getString(9), dr.getTimestamp(10), dr.getString(11), dr.getString(12), dr.getDouble(13), dr.getBoolean(14), dr.getInt(15));
        attributes = new Properties();
        try {
            byte[] img = dr.getBytes(15);
            if (img != null) {
                attributes.loadFromXML(new ByteArrayInputStream(img));
            }
        } catch (IOException e) {
        }
    }
(0030241)
adrianromero   
2010-08-24 09:02   
Modifying severity according Bug reporting guidelines.
http://wiki.openbravo.com/wiki/Bug_Reporting_Guidelines#How_to_Choose_the_Right_Severity [^]
(0030251)
holyfield   
2010-08-24 14:28   
I can confirm that issue is actual with both MySQL or default database.
(0030350)
mcelone   
2010-08-26 13:25   
(edited on: 2010-08-26 13:26)
we fix this bug. to resolve this you have to change in TicketLineInfo.java al line 154 dr.getBytes(15) to dr.getBytes(16)

(0030352)
holyfield   
2010-08-26 13:48   
(edited on: 2010-08-26 13:49)
Cool!

Thank you!

I will try to recompile the source and will test it!
Do you include this fix into next release too?

(0031172)
adrianromero   
2010-09-16 17:48   
The fix for this issue is the same of issue 14585
(0032123)
rooter   
2010-10-22 17:27   
Hey guys... I have same problem with ticket... But I can`t find TicketLineInfo.java? My OS is Ubuntu 10.04 64 bits, obPOS 2.30.1
Can someone help me?

Thank you in advance