Examples of credit()


Examples of br.com.visualmidia.business.Money.credit()

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

Examples of br.com.visualmidia.business.Money.credit()

                item.setText(3, account.getOpenDate().getFormatedDate());
                item.setText(4, account.getAmount().getFormatedValue());
                if(account.isBankAccount()) {
                  item.setText(5, account.getLimit().getFormatedValue());
                  Money money = new Money(account.getAmount());
                  money.credit(account.getLimit());
                  item.setText(6, money.getFormatedValue());
                } else {
                  item.setText(5, "");
                  item.setText(6, "");
                }
View Full Code Here

Examples of br.com.visualmidia.business.Money.credit()

                    bgColorControl = 0;
                } else {
                    bgColorControl = 1;
                }
               
                total.credit(cashFlow.getTotal(date));

                String valueToReceiveStr = (cashFlow.getToReceive(date).toString().equals(VALUE_0_00)) ? "" : cashFlow.getToReceive(date).getFormatedValue();
                String valueToPayStr = (cashFlow.getToPay(date).toString().equals(VALUE_0_00)) ? "" : cashFlow.getToPay(date).getFormatedValue();
                String totalStr = (total.toString().equals(VALUE_0_00)) ? "" : total.getFormatedValue();
View Full Code Here

Examples of br.com.visualmidia.business.Money.credit()

        }

       
        Money amountAccountsSelected = new Money(0);
        for(Account account : getSelectedAccounts().values()){
          amountAccountsSelected.credit(account.getAmount());
        }
        total.credit(amountAccountsSelected);
       
        endCashLabelValue.setText(total.getFormatedValue());
        cashFlowTable.setRedraw(true);
View Full Code Here

Examples of br.com.visualmidia.business.Money.credit()

        Money total = new Money("0");
        String totalStr = "";
       
        Money amountAccountsSelected = new Money(0);
        for(Account account : accountMap.values()){
          amountAccountsSelected.credit(account.getAmount());
        }
        total.credit(amountAccountsSelected);
       
        if (!withDetail){
          page.addElement(insertBoldText("Data: ", posX+5, posY+5, 170));
View Full Code Here

Examples of br.com.visualmidia.business.Money.credit()

  protected boolean totalsAreDifferent() {
        Money total = new Money(totalText.getText());
        Money totalPayment = new Money(0);

        for (int i = 0; i < parcelTable.getItemCount(); i++) {
            totalPayment.credit(new Money(parcelTable.getItem(i).getText(3)));
        }

        return !total.equals(totalPayment);
  }
View Full Code Here

Examples of br.com.visualmidia.business.Money.credit()

                      List<Parcel> parcels = registration.getParcels();
                     
                      sortAlgorithm.sortParcelByDate(parcels);
                     
                      Parcel lastParcel = parcels.get(parcels.size()-1);
                      totalParcel.credit(lastParcel.isPayed()? lastParcel.getPayValue() : new GDDate(lastParcel.getDate()).beforeDay(new GDDate()) ? lastParcel.getValueAfterParcelDateExpiration() : lastParcel.getValueBeforeParcelDateExpiration());
                      for(Parcel parcel : parcels) {
                          parcelsTotal++;
                          if(parcel.isPayed())
                              parcelsPayed++;
                      }
View Full Code Here

Examples of br.com.visualmidia.business.Money.credit()

  protected boolean totalsAreDifferent() {
        Money total = new Money(totalText.getText());
        Money totalPayment = new Money(0);

        for (int i = 0; i < paymentTable.getItemCount(); i++) {
            totalPayment.credit(new Money(paymentTable.getItem(i).getText(3)));
        }

        return !total.equals(totalPayment);
  }
View Full Code Here

Examples of br.com.visualmidia.business.Money.credit()

      ckeckingTextvalues();

      TreeItem[] itens = courses.getItems();
      for (int i = 0; i < itens.length; i++)
        payTotal.credit(new Money(itens[i].getText(2)));
     
      Money total = new Money(payTotal.getFormatedValue());
      payTotal.credit(new Money(additionText.getText()));
      payTotal.debit(new Money(discountingText.getText()));
      totalText.setText(payTotal.getFormatedValue());
View Full Code Here

Examples of br.com.visualmidia.business.Money.credit()

      payTotal.debit(new Money(discountingText.getText()));
      totalText.setText(payTotal.getFormatedValue());
      setMessage("", IMessageProvider.NONE);
     
      if (getCourseTotalValue()<0.0) {
        total.credit(getAddition());
        discountingText.setText(total.getFormatedValue());
        calculateCourseValue();
        setMessage("Valor do desconto superior ao valor Total dos Cursos",IMessageProvider.ERROR);
        discountingText.setSelection(discountingText.getCharCount());
      }
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.