protected void addExpenseToBudget(IBudgetPlanningFormView view) { HasValue<PaymentDTO> editor = view.getExpenseEditor(); PaymentDTO paymentDTO = editor.getValue(); budget.addPlannedExpense( paymentDTO.getCategory(), paymentDTO.getTitle(), paymentDTO.getDescription(), paymentDTO.getDate(), Double.valueOf(paymentDTO.getAmmount()), paymentDTO.getCurrencyCode()); view.refreshBudgetInfo(budget); view.refreshExpenses(budget); }
public String getBaseCurrency() { return budget.getBaseCurrency(); }