diff --git a/client/src/org/compiere/pos/QueryTicket.java b/client/src/org/compiere/pos/QueryTicket.java index bab500ca04..65706235c5 100644 --- a/client/src/org/compiere/pos/QueryTicket.java +++ b/client/src/org/compiere/pos/QueryTicket.java @@ -97,7 +97,8 @@ public class QueryTicket extends PosSubPanel new ColumnInfo(" ", "C_Order_ID", IDColumn.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(), "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 = ""; 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("")) sql += " AND o.C_Order_ID = " + id; if (doc != null && !doc.equalsIgnoreCase(""))