Package br.com.visualmidia.business

Examples of br.com.visualmidia.business.Expenditure


      this.observation = observation;
    }

    @Override
    protected void execute(PrevalentSystem system) throws BusinessException {
        Expenditure expenditure = new Expenditure(id, description, gdDateNextPaymentDate, frequency, numberOfOcurrencies, value, fixedValue, categoryId, observation);
        expenditure.setFirstPaymentDate(gdDatefirstExpenditurePaymentDate);
        expenditure.setLastPaymentDate();
       
        system.getExpenditure().put(id, expenditure);
    }
View Full Code Here


        if (system.linkedOperations.containsKey(id)) {
            LinkedOperation linkedOperation = system.linkedOperations.get(id);
            linkedOperation.setChecked(checked);
            if (checked) {
               
                Expenditure bill = linkedOperation.getBill();
                if(bill != null){
               
                    Expenditure expenditure = new Expenditure(bill.getId(), bill.getDescription(), bill.getNextPaymentDate(), bill.getFrequency(),bill.getNumberOfOcurrencies(), bill.getValue(), bill.isFixedValue(), bill.getCategoryId(), bill.getObservation());
                    expenditure.setActive(false);
                   
                    Money money = new Money(linkedOperation.getOperation().getValue());
                    GDDate date = new GDDate(linkedOperation.getOperation().getDateTime());
                   
                    Account account = system.accounts.get(accountId);
                   
                    Operation operation = new Operation(id, account, expenditure.getCategoryId(), date, expenditure. getDescription(), money.getFloatValue());
                    system.operations.put(id, operation);
                   
                    bill.skip();
                   
                    if (bill.getFrequency() == 0 || (bill.getLastPaymentDate() == null ? true : bill.getNextPaymentDate().after(bill.getLastPaymentDate()))) {
View Full Code Here

                GDDate billDate = new GDDate(bill.getNextPaymentDate());
                int frequency = bill.getFrequency();
   
                while (end.afterDay(billDate.getCalendar())) {
                    if (start.beforeOrEqualsDay(billDate) && end.afterOrEqualsDay(billDate)) {
                        Expenditure myBill = new Expenditure(bill.getId(), bill.getDescription(), billDate, bill.getFrequency(), bill.getNumberOfOcurrencies(), bill.getValue(), bill.isFixedValue(), bill.getCategoryId(), bill.getObservation());
                        returnList.add(myBill);
                        break;
                    }
                    billDate = skip(billDate, frequency);
                   
View Full Code Here

TOP

Related Classes of br.com.visualmidia.business.Expenditure

Copyright © 2018 www.massapicom. 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.