public boolean checkAccounts(){
  if (m_lines.size() == 0)   return true;
  for (int i=0; i < m_lines.size(); i++) {
    FactLine line=(FactLine)m_lines.get(i);
    MAccount account=line.getAccount();
    if (account == null) {
      log.warning("No Account for " + line);
      return false;
    }
    MElementValue ev=account.getAccount();
    if (ev == null) {
      log.warning("No Element Value for " + account + ": "+ line);
      return false;
    }
    if (ev.isSummary()) {
      log.warning("Cannot post to Summary Account " + ev + ": "+ line);
      return false;
    }
    if (!ev.isActive()) {
      log.warning("Cannot post to Inactive Account " + ev + ": "+ line);
      return false;
    }
  }
  return true;
}

public boolean checkAccounts ( ) { if ( m_lines . size ( ) == 0 ) return true ; for ( int i = 0 ; i < m_lines . size ( ) ; i ++ ) { FactLine line = ( FactLine ) m_lines . get ( i ) ; MAccount account = line . getAccount ( ) ; if ( account == null ) { log . warning ( "No Account for " + line ) ; return false ; } MElementValue ev = account . getAccount ( ) ; if ( ev == null ) { log . warning ( "No Element Value for " + account + ": " + line ) ; return false ; } if ( ev . isSummary ( ) ) { log . warning ( "Cannot post to Summary Account " + ev + ": " + line ) ; return false ; } if ( ! ev . isActive ( ) ) { log . warning ( "Cannot post to Inactive Account " + ev + ": " + line ) ; return false ; } } return true ; }
check accounts of fact lines
