matched.add(suspect);
issues.add(new MissingPortfolioTransferIssue(client, suspect.portfolio, suspect.transaction));
}
else
{
PortfolioTransferEntry crossentry = null;
if (suspect.transaction.getType() == PortfolioTransaction.Type.TRANSFER_IN)
crossentry = new PortfolioTransferEntry(match.portfolio, suspect.portfolio);
else
crossentry = new PortfolioTransferEntry(suspect.portfolio, match.portfolio);
crossentry.setDate(match.transaction.getDate());
crossentry.setSecurity(match.transaction.getSecurity());
crossentry.setShares(match.transaction.getShares());
crossentry.setAmount(match.transaction.getAmount());
crossentry.insert();
suspect.portfolio.getTransactions().remove(suspect.transaction);
match.portfolio.getTransactions().remove(match.transaction);
matched.add(suspect);