/** * Overrides the parent to call super.populate and then to call the two methods that are specific * to loading the two select lists on the page. In addition, this also makes sure that the credit * and debit amounts are filled in for situations where validation errors occur and the page * reposts. * * @see * org.kuali.rice.kns.web.struts.pojo.PojoForm#populate(javax.servlet.http.HttpServletRequest) */ @Override public void populate(HttpServletRequest request) { super.populate(request); populateBalanceTypeListForRendering(); }
/** * Override the parent, to push the chosen accounting period and balance type down into the source * accounting line object. In addition, check the balance type to see if it's the "External * Encumbrance" balance and alter the encumbrance update code on the accounting line * appropriately. * * @see * org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase#populateSourceAccountingLine(org.kuali.rice.krad.bo.SourceAccountingLine) */ @Override public void populateSourceAccountingLine( SourceAccountingLine sourceLine, String accountingLinePropertyName, Map parameterMap) { super.populateSourceAccountingLine(sourceLine, accountingLinePropertyName, parameterMap); populateSourceAccountingLineEncumbranceCode(sourceLine); }
/** * If the balance type is an offset generation balance type, then the user is able to enter the * amount as either a debit or a credit, otherwise, they only need to deal with the amount field * in this case we always need to update the underlying bo so that the debit/credit code along * with the amount, is properly set. */ protected void populateCreditAndDebitAmounts() { if (isSelectedBalanceTypeFinancialOffsetGenerationIndicator()) { super.populateCreditAndDebitAmounts(); } }