Sanjeeda - 2013-05-11

Hi,
I've been working on Openbravo JavaPOS 2.30.2's open source code for a few weeks using netbeans.
I added a "Discount" column in the ticket field. I have a list of products in my database, those products have 3 categories "Pharma, Surgical and FMCG". I have to give a 10% discount if the sum of price of all the Pharma and surgical products exceeds Rs.50/-. In the TicketInfo.java class I have defined a method getSum() which holds the sum of all the non-FMCG products but the problem is that how do I accces that sum into the class-TicketLineInfo.java.
Are there any declarations i'm missing?