Package name.abuchen.portfolio.model

Examples of name.abuchen.portfolio.model.PortfolioTransferEntry


            if (portfolioFrom == null)
                throw new UnsupportedOperationException(Messages.MsgPortfolioFromMissing);
            if (portfolioTo == null)
                throw new UnsupportedOperationException(Messages.MsgPortfolioToMissing);

            PortfolioTransferEntry t = new PortfolioTransferEntry(portfolioFrom, portfolioTo);
            t.setDate(date);
            t.setSecurity(security);
            t.setShares(shares);
            t.setAmount(amount);
            t.insert();
        }
View Full Code Here


            {
                from = portfolio;
                to = crossPortfolio;
            }

            PortfolioTransferEntry entry = new PortfolioTransferEntry(from, to);
            entry.setDate(transaction.getDate());
            entry.setSecurity(transaction.getSecurity());
            entry.setShares(transaction.getShares());
            entry.setAmount(transaction.getAmount());
            entry.insert();

            portfolio.getTransactions().remove(transaction);
        }
View Full Code Here

                    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);
View Full Code Here

TOP

Related Classes of name.abuchen.portfolio.model.PortfolioTransferEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.