package de.fau.amos.virtualledger.android.views.savings.add;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;

import org.apache.commons.lang3.math.NumberUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import de.fau.amos.virtualledger.R;
import de.fau.amos.virtualledger.dtos.AddSavingsAccountData;

public class AddSavingsAccountAmountFragment extends AddSavingsAccountPage {
    @SuppressWarnings("unused")
    private static final String TAG = AddSavingsAccountAmountFragment.class.getSimpleName();

    @BindView(R.id.add_savings_account_edit_text_amount)
    EditText editText;

    @Nullable
    @Override
    public View onCreateView(final LayoutInflater inflater, @Nullable final ViewGroup container, @Nullable final Bundle savedInstanceState) {
        final View view = inflater.inflate(R.layout.saving_accounts_add_fragment_amount, container, false);
        ButterKnife.bind(this, view);

        return view;
    }

    @Override
    public void fillInData(final AddSavingsAccountData addSavingsAccountResult) {
        addSavingsAccountResult.goalBalance = NumberUtils.toDouble(editText.getText().toString());
    }
}

@@ -244,67 +244,18 @@
 get.
-EditText;%0A%0Aimport org.apache.commons.lang3.math.NumberUtils
+DatePicker
 ;%0A%0Ai
@@ -434,38 +434,41 @@
 ddSavingsAccount
-Amount
+FinalDate
 Fragment extends
@@ -583,14 +583,17 @@
 ount
-Amount
+FinalDate
 Frag
@@ -664,47 +664,63 @@
 unt_
-edit_text_amount)%0A    EditText editText
+date_picker_enter_final_date)%0A    DatePicker datePicker
 ;%0A%0A 
@@ -973,14 +973,18 @@
 ent_
-amount
+final_date
 , co
@@ -1167,106 +1167,8 @@
 ) %7B%0A
-        addSavingsAccountResult.goalBalance = NumberUtils.toDouble(editText.getText().toString());
 %0A   

Add fragment class for final date