コード例 #1
0
  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);
  }
コード例 #2
0
 public String getBaseCurrency() {
   return budget.getBaseCurrency();
 }