Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0014268
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Java Client POS] (No Category)minoralways2010-08-24 02:432010-10-22 17:27
ReporterholyfieldView Statuspublic 
Assigned Toadrianromero 
PriorityurgentResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version2.40
OSAnyDatabaseAnyJava version
OS VersionALL OSDatabase versionMySQL 5.1.36Ant version
Product Version2.30.1SCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0014268: ${ticketline.printName()} instead of product name

DescriptionI 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?
Steps To Reproduceopen closed tickets
enter ticket number
ticket opens
Proposed SolutionTo fix the problem :)

Don't hesitate to contact regarding the issue.
TagsNo tags attached.
Attached Filesjpg file icon 100824-0001.jpg [^] (20,180 bytes) 2010-08-24 02:43

- Relationships Relation Graph ] Dependency Graph ]
duplicate of defect 00145852.40 closedadrianromero Cannot load the receipt in the Edit sales window 

-  Notes
(0030239)
holyfield (reporter)
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 (manager)
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 (reporter)
2010-08-24 14:28

I can confirm that issue is actual with both MySQL or default database.
(0030350)
mcelone (reporter)
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 (reporter)
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 (manager)
2010-09-16 17:48

The fix for this issue is the same of issue 14585
(0032123)
rooter (reporter)
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

- Issue History
Date Modified Username Field Change
2010-08-24 02:43 holyfield New Issue
2010-08-24 02:43 holyfield Assigned To => adrianromero
2010-08-24 02:43 holyfield File Added: 100824-0001.jpg
2010-08-24 03:03 holyfield Note Added: 0030239
2010-08-24 09:02 adrianromero Note Added: 0030241
2010-08-24 09:02 adrianromero Severity critical => minor
2010-08-24 09:02 adrianromero Status new => scheduled
2010-08-24 09:02 adrianromero Target Version => 2.40
2010-08-24 14:28 holyfield Note Added: 0030251
2010-08-26 13:25 mcelone Note Added: 0030350
2010-08-26 13:25 mcelone Note Edited: 0030350 View Revisions
2010-08-26 13:26 mcelone Note Edited: 0030350 View Revisions
2010-08-26 13:26 mcelone Note Edited: 0030350 View Revisions
2010-08-26 13:48 holyfield Note Added: 0030352
2010-08-26 13:49 holyfield Note Edited: 0030352 View Revisions
2010-09-16 17:48 adrianromero Relationship added duplicate of 0014585
2010-09-16 17:48 adrianromero Note Added: 0031172
2010-09-16 17:48 adrianromero Status scheduled => closed
2010-09-16 17:48 adrianromero Resolution open => duplicate
2010-09-17 00:00 anonymous sf_bug_id 0 => 3068049
2010-10-22 17:27 rooter Note Added: 0032123
2012-11-07 09:40 priyam Category 01 - General => (No Category)


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker