From: Anneli <an...@us...> - 2005-01-11 17:11:50
|
Update of /cvsroot/redpos/RedPOS/src/org/redpos/client/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11881/src/org/redpos/client/ui Modified Files: POSDashboardHome.java Log Message: New function, save and find receipt Index: POSDashboardHome.java =================================================================== RCS file: /cvsroot/redpos/RedPOS/src/org/redpos/client/ui/POSDashboardHome.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** POSDashboardHome.java 23 Nov 2004 16:02:09 -0000 1.1 --- POSDashboardHome.java 11 Jan 2005 17:11:40 -0000 1.2 *************** *** 197,200 **** --- 197,201 ---- { ReceiptNotificationData data = (ReceiptNotificationData)n.getUserData(); + if(data.receiptRow == null) { *************** *** 205,210 **** ProductReceiptRow prr = (ProductReceiptRow)data.receiptRow; setHeaderText(prr.getText()); ! setSaleSupportText(prr.getProduct().getSalesupport()); ! // create sale info string final ReceiptRow rr = data.receiptRow; --- 206,218 ---- ProductReceiptRow prr = (ProductReceiptRow)data.receiptRow; setHeaderText(prr.getText()); ! try ! { ! setSaleSupportText(prr.getProduct().getSalesupport()); ! } ! catch (Exception e) ! { ! setSaleSupportText(""); ! } ! // create sale info string final ReceiptRow rr = data.receiptRow; |