class LoanAccountActionForm extends BaseActionForm implements QuestionResponseCapturer, CashFlowCaptor {

    void validateTransactionDate(ActionErrors errors, PaymentDataHtmlBean template, java.util.Date disbursementDate) {
        if (template.hasTotalAmount()) {
            try {
                if (!DateUtils.dateFallsOnOrBeforeDate(template.getTransactionDate(), DateUtils.currentDate())) {
                    errors.add(LoanExceptionConstants.INVALIDTRANSACTIONDATEFORPAYMENT, new ActionMessage(
                            LoanExceptionConstants.INVALIDTRANSACTIONDATEFORPAYMENT));
                } else if (!DateUtils.dateFallsBeforeDate(disbursementDate, template.getTransactionDate())) {
                    errors.add(LoanExceptionConstants.INVALIDTRANSACTIONDATE, new ActionMessage(
                            LoanExceptionConstants.INVALIDTRANSACTIONDATE));
                }
            } catch (FrameworkRuntimeException ide) {
                errors.add(LoanExceptionConstants.INVALIDTRANSACTIONDATEFORPAYMENT, new ActionMessage(
                        LoanExceptionConstants.INVALIDTRANSACTIONDATEFORPAYMENT));
            }
        }
    }

    public  LoanAccountActionForm();

}