Examples of credit()


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

                Money balanceValueDebit = new Money(0);
                Money balanceValueTotal = new Money(getBalanceUntilLastDay(account.getId(), startDate).getValue());
                for (Operation operation : operations) {
                    if(operation.isCredit()) {
                        balanceValueCredit.credit(operation.getValue());
                        balanceValueTotal.credit(operation.getValue());
                    } else {
                        balanceValueTotal.debit(operation.getValue());
                        balanceValueDebit.credit(operation.getValue());
                    }
                    page.addElement(drawRectangle(posX, posY, convert(190), 15, 0));
View Full Code Here

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

          if(operationDateTime.beforeDay(beginDate)){
//          float inMoney = (!operation.isCredit()) ? 0f : operation.getValue();
//          float outMoney = (operation.isCredit()) ? 0f : operation.getValue() * -1;
//          balanceUntilLastDay += (inMoney + outMoney);
            if (operation.isCredit()){
              balanceUntilLastDayMoney.credit(operation.getValue());
            }else{
              balanceUntilLastDayMoney.debit(operation.getValue());
            }
          }
        }
View Full Code Here

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

        } else {
            if (!expenditure.isFixedValue()) {
                for (Operation operationTemp : system.getOperations().values()) {
                    if(operationTemp.isExpenditure()) {
                        if (operationTemp.getBillId().equals(expenditure.getId())) {
                            total.credit(operationTemp.getValue());
                            count++;
                        }
                    }
                }
                expenditure.setValue(new Money(total.getValue() / count));
View Full Code Here

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

                      if (!parcel.isRegistrationTax()){
                        if ( parcelid==1 ){
                          totalPerAttendant++; 
                          total += new Money(parcel.getValueBeforeParcelDateExpiration()).getFloatValue();
                          totalStudents++;
                          totalMoney.credit(parcel.getValueBeforeParcelDateExpiration());
                        }
                        if ( parcel.getPayDate() != null){
                          paidParcelsAndTotalParcels = (parcelid > 9 ? parcelid : "0"+(parcelid) ) + " / " ( registration.getParcels().size() > 9 ? registration.getParcels().size() :"0"+registration.getParcels().size());
                        }
                       
View Full Code Here

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

//                            insertHeaderTable(page, posX);
                        }
                    }
                   
                    if(i > 0){
                      totalDesistent.credit(total);
                      totalStudents+=totalPerAttendant;
                      page.addElement(insertFooter(boldStyle, "Total de Alunos: " +  totalPerAttendant + "          Total R$ " + new Money(total).getFormatedValue(), posY));
                      posY += 18;
                    }
                    if (status.equals(statusList.get(statusList.size()-1)) ){
View Full Code Here

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

            }
           
            Money total = new Money(0);
           
            for (PaidExpenditure bills : tempMap.values()) {
                total.credit(bills.getValue());
            }
           
            bill.setValue(new Money(total.getValue()/tempMap.size()));
        }
       
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(2)));
    }

    return (total.equals(totalPayment)) ? false : true;
  }
View Full Code Here

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

  private void calculateValue() {
    Money calculation = new Money(totalToPayMoney);

    if (!additionText.getText().equals(""))
      calculation.credit(new Money(additionText.getText()));
    if ((!discountingText.getText().equals(""))
        && (getDiscounting() <= totalToPayMoney.getFloatValue())) {
      calculation.debit(new Money(discountingText.getText()));
    } else if (discountingText.getText().equals(""))
      setMessage("", IMessageProvider.NONE);
View Full Code Here

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

                            }
   
                            Money total = new Money(0);
   
                            for (PaidExpenditure bills : tempMap.values()) {
                                total.credit(bills.getValue());
                            }
   
                            bill.setValue(new Money(total.getValue() / tempMap.size()));
                        }
                    }
View Full Code Here

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

            if (!incoming.isFixedValue()) {
                for (Operation operationTemp : system.getOperations().values()) {
                    if(!operationTemp.isExpenditure()) {
                      if(operationTemp.getBillId() != null)
                          if (operationTemp.getBillId().equals(incoming.getId())) {
                              total.credit(operationTemp.getValue());
                              count++;
                          }
                    }
                }
                incoming.setValue(new Money(total.getValue() / count));
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.