public class JournalVoucherForm extends VoucherForm
Modifier and Type | Field and Description |
---|---|
protected List |
balanceTypes |
protected String |
originalBalanceType |
protected BalanceType |
selectedBalanceType |
accountingPeriods, newSourceLineCredit, newSourceLineDebit, selectedAccountingPeriod, voucherLineHelpers
editableAccounts, forcedLookupOptionalFields, hideDetails, newSourceLine, newTargetLine, sourceFile, targetFile
forcedReadOnlyFields
adHocActionRequestCodes, attachmentFile, documentActions, editingMode, suppressAllButtons
Constructor and Description |
---|
JournalVoucherForm()
Constructs a JournalVoucherForm instance.
|
Modifier and Type | Method and Description |
---|---|
List |
getBalanceTypes()
This method retrieves the list of valid balance types to display.
|
protected String |
getDefaultDocumentTypeName() |
boolean |
getIsEncumbranceBalanceType()
Using the selected accounting period to determine university fiscal year and look up all the encumbrance
balance type - check if the selected balance type is for encumbrance
|
JournalVoucherDocument |
getJournalVoucherDocument()
This method returns the journal voucher document associated with this form.
|
String |
getOriginalBalanceType()
This method retrieves the originalBalanceType attribute.
|
protected BalanceType |
getPopulatedBalanceTypeInstance(String balanceTypeCode)
This method will fully populate a balance type given the passed in code, by calling the business object service that
retrieves the rest of the instances' information.
|
BalanceType |
getSelectedBalanceType()
This method sets the selected balance type.
|
protected boolean |
isSelectedBalanceTypeFinancialOffsetGenerationIndicator()
This is a convenience helper method that is used several times throughout this action class to determine if the selected
balance type contained within the form instance is a financial offset generation balance type or not.
|
void |
populate(javax.servlet.http.HttpServletRequest request)
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.
|
protected void |
populateBalanceTypeListForRendering()
This method retrieves all of the balance types in the system and prepares them to be rendered in a dropdown UI component.
|
protected void |
populateCreditAndDebitAmounts()
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.
|
void |
populateSourceAccountingLine(SourceAccountingLine sourceLine,
String accountingLinePropertyName,
Map parameterMap)
Override the parent, to push the chosen accounting period and balance type down into the source accounting line object.
|
protected void |
populateSourceAccountingLineEncumbranceCode(SourceAccountingLine sourceLine)
Sets the encumbrance code of the line based on the balance type.
|
void |
setBalanceTypes(List balanceTypes)
This method sets the list of valid balance types to display.
|
void |
setJournalVoucherDocument(JournalVoucherDocument journalVoucherDocument)
This method sets the journal voucher document associated with this form.
|
void |
setOriginalBalanceType(String changedBalanceType)
This method sets the originalBalanceType attribute.
|
void |
setSelectedBalanceType(BalanceType selectedBalanceType)
This method retrieves the selected balance type.
|
getAccountingPeriod, getAccountingPeriods, getCurrencyFormattedCreditTotal, getCurrencyFormattedDebitTotal, getCurrencyFormattedTotal, getFormattedReversalDate, getNewSourceLineCredit, getNewSourceLineDebit, getSelectedAccountingPeriod, getSelectedPostingPeriodCode, getSelectedPostingYear, getVoucherDocument, getVoucherLineHelper, getVoucherLineHelpers, populateAccountingPeriodListForRendering, populateDefaultSelectedAccountingPeriod, populateSelectedVoucherAccountingPeriod, processDebitAndCreditForAllSourceLines, processDebitAndCreditForNewSourceLine, processDebitAndCreditForSourceLine, setAccountingPeriods, setNewSourceLineCredit, setNewSourceLineDebit, setSelectedAccountingPeriod, setVoucherLineHelpers, validateCreditAndDebitAmounts
createNewSourceAccountingLine, createNewTargetAccountingLine, customInitMaxUploadSizes, getAccountingLineImportInstructionsUrl, getCurrencyFormattedSourceTotal, getCurrencyFormattedTargetTotal, getEditableAccounts, getExcludedmethodToCall, getFinancialDocument, getForcedLookupOptionalFields, getHideDetails, getNewSourceLine, getNewTargetLine, getSourceFile, getTargetFile, harvestAccountingLines, isHideDetails, populateAccountingLine, populateAccountingLines, populateAccountingLinesForResponse, populateTargetAccountingLine, repopulateOverrides, setEditableAccounts, setForcedLookupOptionalFields, setHideDetails, setNewSourceLine, setNewTargetLine, setSourceFile, setTargetFile, shouldMethodToCallParameterBeUsed
extendDocInfoToThreeColumns, generateErrorCorrectionButton, getExtraButtons, populateHeaderFields
discoverDocumentTypeName, formatReversalDate, getForcedReadOnlyFields, getTransactionalDocument, instantiateTransactionalDocumentByDocumentTypeName, populateEmptyMultiSelect, populateFalseCheckboxes, populationSpecialEmptyFields, setForcedReadOnlyFields
addRequiredNonEditableProperties, buildHtmlLink, getActionRequests, getActionRequestsRequiringApproval, getAdditionalScriptFile, getAdditionalScriptFiles, getAdHocActionRequestCodes, getAdHocRoutePerson, getAdHocRoutePersons, getAdHocRouteWorkgroup, getAdHocRouteWorkgroups, getAnnotation, getAttachmentFile, getBoNotes, getCommand, getDocId, getDocNum, getDocTypeName, getDocument, getDocumentActions, getDocumentHandlerUrl, getEditingMode, getFormKey, getInitiator, getInitiatorNetworkId, getMessageMapFromPreviousRequest, getNewAdHocRoutePerson, getNewAdHocRouteWorkgroup, getNewNote, getPersonInquiryUrlLink, getSelectedActionRequests, getStandardHeaderFields, getSuperUserAnnotation, getWorkflowDocument, hasDocumentId, initializeHeaderNavigationTabs, instantiateDocument, isDocumentEnRoute, isFormDocumentInitialized, isHasWorkflowDocument, isReturnToActionList, isStateAllowsApproveOrDisapprove, isStateAllowsApproveSingleActionRequest, isStateInitiatedFinalCancelled, isStateProcessedOrDisapproved, isSuperUserActionAvaliable, isSuperUserApproveDocumentAuthorized, isSuperUserApproveSingleActionRequestAuthorized, isSuperUserAuthorized, isSuperUserDisapproveDocumentAuthorized, isSuppressAllButtons, isUserDocumentInitiator, reset, setActionRequests, setAdditionalScriptFile, setAdditionalScriptFiles, setAdHocActionRequestCodes, setAdHocRoutePersons, setAdHocRouteWorkgroups, setAnnotation, setAttachmentFile, setBoNotes, setCommand, setDerivedValuesOnForm, setDocId, setDocNum, setDocTypeName, setDocument, setDocumentActions, setEditingMode, setFormKey, setMessageMapFromPreviousRequest, setNewAdHocRoutePerson, setNewAdHocRouteWorkgroup, setNewNote, setReturnToActionList, setSelectedActionRequests, setSuperUserAnnotation, setSuppressAllButtons, shouldPropertyBePopulatedInForm, validate
clearEditablePropertyInformation, getActionFormUtilMap, getAnchor, getBackLocation, getCurrentTabIndex, getDisplayedErrors, getDisplayedInfo, getDisplayedWarnings, getDocInfo, getExtraButton, getFieldNameToFocusOnAfterSubmit, getHeaderNavigationTabs, getMethodToCall, getNavigationCss, getNextArbitrarilyHighIndex, getNumColumns, getRefreshCaller, getTabState, getTabStates, incrementTabIndex, isFieldLevelHelpEnabled, populateBackLocation, populateFieldLevelHelpEnabled, reset, retrieveFormValueForLookupInquiryParameters, setActionFormUtilMap, setAnchor, setBackLocation, setCurrentTabIndex, setDocInfo, setExtraButton, setExtraButtons, setFieldLevelHelpEnabled, setFieldNameToFocusOnAfterSubmit, setHeaderNavigationTabs, setMethodToCall, setNavigationCss, setNumColumns, setRefreshCaller, setTabStates
addMaxUploadSize, cacheUnconvertedValue, copyPopulateEditablePropertiesToActionEditableProperties, formatterClassForKeypath, formatValue, getActionEditablePropertiesGuid, getEditableProperties, getFormatter, getFormatterTypes, getIsNewForm, getMaxUploadSizes, getMethodToCallsToBypassSessionRetrievalForGETRequests, getParameter, getParameterValues, getPopulateEditableProperties, getPopulateEditablePropertiesGuid, getPropertyType, getRequiredNonEditableProperties, getStrutsActionMappingScope, getUnconvertedValues, getUnknownKeys, initMaxUploadSizes, isPropertyEditable, isPropertyNonEditableButRequired, populateForProperty, postprocessRequestParameters, processValidationFail, registerEditableProperty, registerIsNewForm, registerRequiredNonEditableProperty, registerStrutsActionMappingScope, setActionEditablePropertiesGuid, setFormatterType, setFormatterTypes, setPopulateEditablePropertiesGuid, setUnconvertedValues
protected List balanceTypes
protected String originalBalanceType
protected BalanceType selectedBalanceType
public JournalVoucherForm()
protected String getDefaultDocumentTypeName()
getDefaultDocumentTypeName
in class KualiDocumentFormBase
public void populate(javax.servlet.http.HttpServletRequest request)
populate
in interface org.kuali.rice.kns.web.struts.form.pojo.PojoForm
populate
in class VoucherForm
org.kuali.rice.kns.web.struts.pojo.PojoForm#populate(javax.servlet.http.HttpServletRequest)
public void populateSourceAccountingLine(SourceAccountingLine sourceLine, String accountingLinePropertyName, Map parameterMap)
populateSourceAccountingLine
in class VoucherForm
accountingLinePropertyName
- the property path from the form to the accounting lineparameterMap
- the map of parameters that were sent in with the requestorg.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase#populateSourceAccountingLine(org.kuali.rice.krad.bo.SourceAccountingLine)
protected void populateSourceAccountingLineEncumbranceCode(SourceAccountingLine sourceLine)
sourceLine
- - line to set code onpublic List getBalanceTypes()
public BalanceType getSelectedBalanceType()
public void setSelectedBalanceType(BalanceType selectedBalanceType)
selectedBalanceType
- public void setBalanceTypes(List balanceTypes)
balanceTypes
- public JournalVoucherDocument getJournalVoucherDocument()
public void setJournalVoucherDocument(JournalVoucherDocument journalVoucherDocument)
journalVoucherDocument
- The journalVoucherDocument to set.public String getOriginalBalanceType()
public void setOriginalBalanceType(String changedBalanceType)
changedBalanceType
- public boolean getIsEncumbranceBalanceType()
protected void populateBalanceTypeListForRendering()
protected BalanceType getPopulatedBalanceTypeInstance(String balanceTypeCode)
balanceTypeCode
- protected void populateCreditAndDebitAmounts()
populateCreditAndDebitAmounts
in class VoucherForm
protected boolean isSelectedBalanceTypeFinancialOffsetGenerationIndicator()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.