FR: 2460263 Java POS - minimize BPartner Line and anything to be neater

creating extra BPartner column in QueryTicket Register
Later will pass the Bpartner Name instead of ID.
This commit is contained in:
Redhuan D. Oon 2009-01-28 00:03:21 +00:00
parent 7ab8e7829c
commit f14a49b154
1 changed files with 3 additions and 2 deletions

View File

@ -97,7 +97,8 @@ public class QueryTicket extends PosSubPanel
new ColumnInfo(" ", "C_Order_ID", IDColumn.class), new ColumnInfo(" ", "C_Order_ID", IDColumn.class),
new ColumnInfo(Msg.translate(Env.getCtx(), "DocumentNo"), "DocumentNo", String.class), new ColumnInfo(Msg.translate(Env.getCtx(), "DocumentNo"), "DocumentNo", String.class),
new ColumnInfo(Msg.translate(Env.getCtx(), "TotalLines"), "TotalLines", BigDecimal.class), new ColumnInfo(Msg.translate(Env.getCtx(), "TotalLines"), "TotalLines", BigDecimal.class),
new ColumnInfo(Msg.translate(Env.getCtx(), "GrandTotal"), "GrandTotal", BigDecimal.class) new ColumnInfo(Msg.translate(Env.getCtx(), "GrandTotal"), "GrandTotal", BigDecimal.class),
new ColumnInfo(Msg.translate(Env.getCtx(), "C_BPartner_ID"), "C_BPartner_ID", int.class)
}; };
/** /**
@ -287,7 +288,7 @@ public class QueryTicket extends PosSubPanel
String sql = ""; String sql = "";
try try
{ {
sql = "SELECT o.C_Order_ID, o.DocumentNo, o.TotalLines, o.GrandTotal FROM C_Order o WHERE o.C_DocTypeTarget_ID = " + p_pos.getC_DocType_ID(); sql = "SELECT o.C_Order_ID, o.DocumentNo, o.TotalLines, o.GrandTotal, o.C_BPartner_ID FROM C_Order o WHERE o.C_DocTypeTarget_ID = " + p_pos.getC_DocType_ID();
if (id != null && !id.equalsIgnoreCase("")) if (id != null && !id.equalsIgnoreCase(""))
sql += " AND o.C_Order_ID = " + id; sql += " AND o.C_Order_ID = " + id;
if (doc != null && !doc.equalsIgnoreCase("")) if (doc != null && !doc.equalsIgnoreCase(""))