public void findTaxCategoryID(){
  m_AD_Client_ID=Env.getAD_Client_ID(Env.getCtx());
  m_AD_Org_ID=Env.getAD_Org_ID(Env.getCtx());
  m_CreatedBy=Env.getAD_User_ID(Env.getCtx());
  String sql="SELECT C_TaxCategory_ID FROM C_TaxCategory " + "WHERE IsDefault='Y' AND AD_Client_ID=?";
  m_C_TaxCategory_ID=0;
  try {
    PreparedStatement pstmt=DB.prepareStatement(sql,null);
    pstmt.setInt(1,m_AD_Client_ID);
    ResultSet rs=pstmt.executeQuery();
    if (rs.next())     m_C_TaxCategory_ID=rs.getInt(1);
    rs.close();
    pstmt.close();
  }
 catch (  SQLException e) {
    log.log(Level.SEVERE,sql,e);
  }
}

public void findTaxCategoryID ( ) { m_AD_Client_ID = Env . getAD_Client_ID ( Env . getCtx ( ) ) ; m_AD_Org_ID = Env . getAD_Org_ID ( Env . getCtx ( ) ) ; m_CreatedBy = Env . getAD_User_ID ( Env . getCtx ( ) ) ; String sql = "SELECT C_TaxCategory_ID FROM C_TaxCategory " + "WHERE IsDefault='Y' AND AD_Client_ID=?" ; m_C_TaxCategory_ID = 0 ; try { PreparedStatement pstmt = DB . prepareStatement ( sql , null ) ; pstmt . setInt ( 1 , m_AD_Client_ID ) ; ResultSet rs = pstmt . executeQuery ( ) ; if ( rs . next ( ) ) m_C_TaxCategory_ID = rs . getInt ( 1 ) ; rs . close ( ) ; pstmt . close ( ) ; } catch ( SQLException e ) { log . log ( Level . SEVERE , sql , e ) ; } }
finds the identifier for the tax category for the client .
