Examples of addPrice()


Examples of com.peusoft.ptcollect.core.persistance.domain.UserProjectActivity.addPrice()

        UserProjectActivityPrice price = new UserProjectActivityPrice();
        price.setUserProjectActivity(upa);
        price.setPrice(new BigDecimal("123.00").setScale(2, BigDecimal.ROUND_HALF_UP));
        price.setPeriod(new DayPeriod());
        upa.addPrice(price);

        // create test data

        WorkDay wd1 = new WorkDay();
        wd1.setUser(user);
View Full Code Here

Examples of com.peusoft.ptcollect.core.persistance.domain.UserProjectActivity.addPrice()

        UserProjectActivityPrice price = new UserProjectActivityPrice();
        price.setUserProjectActivity(upa);
        price.setPrice(new BigDecimal("123.00").setScale(2, BigDecimal.ROUND_HALF_UP));
        price.setPeriod(new DayPeriod());
        upa.addPrice(price);

        // create test data

        WorkDay wd1 = new WorkDay();
        wd1.setUser(user);
View Full Code Here

Examples of it.hotel.model.typology.Typology.addPrice()

      price.setPrice(priceValue);
      price.setCalendarDate(CalendarUtils.GetGregorianCalendar(priceListDTO.getDate()));
      price.setTypology_id(typology.getId());
      price.setStructure(structure);
      price.setHotelId(typology.getStructure().getId());
      typology.addPrice(price);
        typologyManager.add(typology)
    }
    else {
      Typology typologyEdit = priceListDTO.getTypology();
      String dateString = priceListDTO.getDate();
View Full Code Here

Examples of name.abuchen.portfolio.model.Security.addPrice()

    public void testCapitalGains()
    {
        Client client = new Client();

        Security security = new Security();
        security.addPrice(new SecurityPrice(Dates.date(2010, Calendar.JANUARY, 1), 10000));
        security.addPrice(new SecurityPrice(Dates.date(2011, Calendar.JUNE, 1), 11000));
        client.addSecurity(security);

        Portfolio portfolio = new Portfolio();
        portfolio.addTransaction(new PortfolioTransaction(Dates.date(2010, Calendar.JANUARY, 1), security,
View Full Code Here

Examples of name.abuchen.portfolio.model.Security.addPrice()

    {
        Client client = new Client();

        Security security = new Security();
        security.addPrice(new SecurityPrice(Dates.date(2010, Calendar.JANUARY, 1), 10000));
        security.addPrice(new SecurityPrice(Dates.date(2011, Calendar.JUNE, 1), 11000));
        client.addSecurity(security);

        Portfolio portfolio = new Portfolio();
        portfolio.addTransaction(new PortfolioTransaction(Dates.date(2010, Calendar.JANUARY, 1), security,
                        PortfolioTransaction.Type.BUY, 1000000, 100, 0, 0));
View Full Code Here

Examples of name.abuchen.portfolio.model.Security.addPrice()

    public void testCapitalGainsWithBuyDuringReportPeriod()
    {
        Client client = new Client();

        Security security = new Security();
        security.addPrice(new SecurityPrice(Dates.date(2010, Calendar.JANUARY, 1), 10000));
        security.addPrice(new SecurityPrice(Dates.date(2011, Calendar.JUNE, 1), 11000));
        client.addSecurity(security);

        Portfolio portfolio = new Portfolio();
        portfolio.addTransaction(new PortfolioTransaction(Dates.date(2010, Calendar.JANUARY, 1), security,
View Full Code Here

Examples of name.abuchen.portfolio.model.Security.addPrice()

    {
        Client client = new Client();

        Security security = new Security();
        security.addPrice(new SecurityPrice(Dates.date(2010, Calendar.JANUARY, 1), 10000));
        security.addPrice(new SecurityPrice(Dates.date(2011, Calendar.JUNE, 1), 11000));
        client.addSecurity(security);

        Portfolio portfolio = new Portfolio();
        portfolio.addTransaction(new PortfolioTransaction(Dates.date(2010, Calendar.JANUARY, 1), security,
                        PortfolioTransaction.Type.BUY, 1000000, 100, 0, 0));
View Full Code Here

Examples of name.abuchen.portfolio.model.Security.addPrice()

    public void testCapitalGainsWithPartialSellDuringReportPeriod()
    {
        Client client = new Client();

        Security security = new Security();
        security.addPrice(new SecurityPrice(Dates.date(2010, Calendar.JANUARY, 1), 10000));
        security.addPrice(new SecurityPrice(Dates.date(2011, Calendar.JUNE, 1), 11000));
        client.addSecurity(security);

        Portfolio portfolio = new Portfolio();
        portfolio.addTransaction(new PortfolioTransaction(Dates.date(2010, Calendar.JANUARY, 1), security,
View Full Code Here

Examples of name.abuchen.portfolio.model.Security.addPrice()

    {
        Client client = new Client();

        Security security = new Security();
        security.addPrice(new SecurityPrice(Dates.date(2010, Calendar.JANUARY, 1), 10000));
        security.addPrice(new SecurityPrice(Dates.date(2011, Calendar.JUNE, 1), 11000));
        client.addSecurity(security);

        Portfolio portfolio = new Portfolio();
        portfolio.addTransaction(new PortfolioTransaction(Dates.date(2010, Calendar.JANUARY, 1), security,
                        PortfolioTransaction.Type.BUY, 1000000, 100, 0, 0));
View Full Code Here

Examples of name.abuchen.portfolio.model.Security.addPrice()

    public void testCapitalGainsWithPartialSellDuringReportPeriodWithFees()
    {
        Client client = new Client();

        Security security = new Security();
        security.addPrice(new SecurityPrice(Dates.date(2010, Calendar.JANUARY, 1), 10000));
        security.addPrice(new SecurityPrice(Dates.date(2011, Calendar.JUNE, 1), 11000));
        client.addSecurity(security);

        Portfolio portfolio = new Portfolio();
        portfolio.addTransaction(new PortfolioTransaction(Dates.date(2010, Calendar.JANUARY, 1), security,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.