Package br.com.visualmidia.business

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


          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


                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));
                    page.addElement(insertNormalText(operation.getId(), posX+2, posY, 35, 15));
                    page.addElement(drawVerticalLine(posX+40, posY, 15));
View Full Code Here

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

    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);
    else
      setMessage("Valor do desconto superior ao valor da Parcela",
          IMessageProvider.ERROR);
View Full Code Here

                page.addElement(insertRightText(totalDebit.getFormatedValue(), posX+462, posY, 67));
               
                posY += 20;
               
                Money total = new Money(totalCredit);
                total.debit(totalDebit);
                page.addElement(insertBoldText("Total L�quido: R$ " + total.getFormatedValue() , posX+370, posY, convert(190)-370));
               
                posY += 35;
                page.addElement(insertNormalText("Recebi a importancia de R$ " + total.getFormatedValue() + " dando plena, geral e irrevog�vel quita��o referente aos itens acima descritos:", posX, posY, convert(190), 30));
                posY += 35;
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.