From ecdab9670ff27e773025e7fa3c6ff54263f8dd32 Mon Sep 17 00:00:00 2001 From: "Redhuan D. Oon" Date: Tue, 27 Jan 2009 09:03:26 +0000 Subject: [PATCH] reorganize import --- client/src/org/compiere/pos/PosPanel.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/client/src/org/compiere/pos/PosPanel.java b/client/src/org/compiere/pos/PosPanel.java index 4e278247ce..8287b5ffbd 100644 --- a/client/src/org/compiere/pos/PosPanel.java +++ b/client/src/org/compiere/pos/PosPanel.java @@ -18,10 +18,7 @@ import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.GridBagLayout; import java.awt.KeyboardFocusManager; -import java.sql.PreparedStatement; -import java.sql.ResultSet; import java.sql.Timestamp; -import java.util.ArrayList; import java.util.Properties; import java.util.logging.Level; @@ -34,7 +31,6 @@ import org.compiere.apps.form.FormPanel; import org.compiere.model.MPOS; import org.compiere.swing.CPanel; import org.compiere.util.CLogger; -import org.compiere.util.DB; import org.compiere.util.Env; import org.compiere.util.Msg; @@ -295,14 +291,13 @@ public class PosPanel extends CPanel private MPOS[] getPOSs (int SalesRep_ID) { String pass_field = "SalesRep_ID"; - int pass_ID = 0; + int pass_ID = SalesRep_ID; if (SalesRep_ID==0) { pass_field = "AD_Client_ID"; pass_ID = Env.getAD_Client_ID(m_ctx); } - MPOS[] allPOSes = MPOS.getAll(m_ctx, pass_field, pass_ID); - return allPOSes; + return MPOS.getAll(m_ctx, pass_field, pass_ID); } // getPOSs /**