Examples of Money


Examples of Shop.Money

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetTaxes(Money newTaxes, NotificationChain msgs) {
    Money oldTaxes = taxes;
    taxes = newTaxes;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ShopPackage.CARRIER_BASE__TAXES, oldTaxes, newTaxes);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of bank.bankieren.Money

        int vanRekeningNr = sessie.getLoginAccount().getRekeningNr();
        if (vanRekeningNr == naarRekeningNr) {
            throw new RuntimeException("source and destination must be different");
        }

        Money bedrag = new Money(centen, muntSymbool);
        if (!bedrag.isPositive()) {
            throw new RuntimeException("amount must be positive");
        }

        return bank.maakOver(vanRekeningNr, naarRekeningNr, bedrag);
    }
View Full Code Here

Examples of billing.Money

    @Test
    public void testNormalUserNoPackageNoActivity() {
        Map<UserField, Object> data = new HashMap<UserField, Object>();
        data.put(UserField.kUserType, UserType.kNormal);
        UserMonthUsage usage = new UserMonthUsage(1, data);
        assertEquals(new Money(0), calculator.calculate(usage));
    }
View Full Code Here

Examples of br.com.visualmidia.business.Money

  private void updateAmountAccount() {
      try {
        Map<String, Account> accounts = (Map<String, Account>) system.query(new GetAccounts());
        for (Account account : accounts.values()) {
          Money money = new Money(0);
          Map<String, Operation> operations = (Map<String, Operation>) system.query(new GetOperationByAccountId(account.getId()));
          for (Operation operation : operations.values()) {
            if(operation.isCredit()){
              money.credit(operation.getValue());
            }else{
              money.debit(operation.getValue());
            }
          }
          system.execute(new SetAmountOfAccount(money, account.getId()));
        }
      } catch (Exception e) {
View Full Code Here

Examples of ch.njol.skript.hooks.economy.classes.Money

    register(ExprBalance.class, Money.class, "(money|balance|[bank] account)", "players");
  }
 
  @Override
  public Money convert(final OfflinePlayer p) {
    return new Money(VaultHook.economy.getBalance(p.getName()));
  }
View Full Code Here

Examples of com.avaje.tests.model.ivo.Money

    public BigDecimal unwrapValue(Money beanType) {
        return beanType.getAmount();
    }

    public Money wrapValue(BigDecimal scalarType) {       
        return new Money(scalarType);
    }
View Full Code Here

Examples of com.avaje.tests.model.ivo.Money

        Currency NZD = Currency.getInstance("NZD");
       
        DPerson p = new DPerson();
        p.setFirstName("first");
        p.setLastName("last");
        p.setSalary(new Money("12200"));
        p.setCmoney(new CMoney(new Money("12"), NZD));
       
        SpiEbeanServer server = (SpiEbeanServer)Ebean.getServer(null);
       
        BeanDescriptor<DPerson> descriptor = server.getBeanDescriptor(DPerson.class);
       
        ElPropertyValue elCmoney = descriptor.getElGetValue("cmoney");
//        ElPropertyValue elCmoneyAmt = descriptor.getElGetValue("cmoney.amount");
//        ElPropertyValue elCmoneyCur = descriptor.getElGetValue("cmoney.currency");
       
        JsonContext jsonContext = server.json();
        String json = jsonContext.toJson(p);
       
        DPerson bean = jsonContext.toBean(DPerson.class, json);
        Assert.assertEquals("first", bean.getFirstName());
        Assert.assertEquals(new Money("12200"), bean.getSalary());
        Assert.assertEquals(new Money("12"), bean.getCmoney().getAmount());
        Assert.assertEquals(NZD, bean.getCmoney().getCurrency());
       
       
        EntityBean entityBean = (EntityBean)p;
       
View Full Code Here

Examples of com.cantaa.util.type.Money

        return (DecimalFormat) NumberFormat.getCurrencyInstance(locale);
    }

    @Override
    protected Money createAmount(BigDecimal value) {
        return new Money(value);
    }
View Full Code Here

Examples of com.cedarsoft.business.Money

      double monthYears = getTimeSystem().calculateYears( actualMonthBegin, actualMonthEnd );
      double monthDays = getTimeSystem().calculateDays( actualMonthBegin, actualMonthEnd );
      double monthRate = getInterestRateProvider().getRate( actualMonthBegin );

      //add the rent for the rent
      Money baseForMonth = rentSummer.immutable();

      Money compoundInterest;
      if ( getBackingCalculationSystem().isCompoundSystem() && baseForMonth.getValue() != 0 ) {
        compoundInterest = getBackingCalculationSystem().calculateInterest( baseForMonth, monthYears, monthDays, monthRate );
        rentSummer.plus( compoundInterest );
      } else {
        compoundInterest = Money.ZERO;
      }

      //add the rent for the amount
      Money interest = getBackingCalculationSystem().calculateInterest( amount, monthYears, monthDays, monthRate );
      rentSummer.plus( interest );

      //Build the information object (if expected)
      interestDetails.add( new InterestDetails( actualMonthBegin, actualMonthEnd, monthRate, baseForMonth, interest.plus( compoundInterest ), monthDays ) );

      //Next month --> now we really need the first day of the month
      actualMonthBegin = actualMonthBegin.plusMonths( 1 ).withDayOfMonth( 1 );
    }
View Full Code Here

Examples of com.cedarsoft.sample.fixed.Money

      cents = Long.parseLong( reader.getValue() );
    }
    reader.getValue();
    reader.moveUp();

    return new Money( cents );
  }
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.