MBPartner - minor bug fix (ensure that getPrimaryC_BPartner_Location_ID and getPrimaryAD_User_ID will get first created item)

This commit is contained in:
teo_sarca 2008-08-19 09:53:59 +00:00
parent 3c3075f1be
commit 562e87a0bc
1 changed files with 3 additions and 2 deletions

View File

@ -434,7 +434,7 @@ public class MBPartner extends X_C_BPartner
return m_contacts; return m_contacts;
// //
ArrayList<MUser> list = new ArrayList<MUser>(); ArrayList<MUser> list = new ArrayList<MUser>();
String sql = "SELECT * FROM AD_User WHERE C_BPartner_ID=?"; final String sql = "SELECT * FROM AD_User WHERE C_BPartner_ID=? ORDER BY AD_User_ID";
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
try try
@ -492,7 +492,8 @@ public class MBPartner extends X_C_BPartner
return m_locations; return m_locations;
// //
ArrayList<MBPartnerLocation> list = new ArrayList<MBPartnerLocation>(); ArrayList<MBPartnerLocation> list = new ArrayList<MBPartnerLocation>();
String sql = "SELECT * FROM C_BPartner_Location WHERE C_BPartner_ID=? AND IsActive='Y'"; final String sql = "SELECT * FROM C_BPartner_Location WHERE C_BPartner_ID=? AND IsActive='Y'"
+ " ORDER BY C_BPartner_Location_ID";
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
try try