public abstract class CapitalAccountingLinesActionBase extends CapitalAssetInformationActionBase
LOG
UPDATE_EVENT_ACTIONS
MODULE_LOCKED_MESSAGE, MODULE_LOCKED_URL_SUFFIX
DOCUMENT_LOAD_COMMANDS
Constructor and Description |
---|
CapitalAccountingLinesActionBase() |
Modifier and Type | Method and Description |
---|---|
protected CapitalAccountingLines |
addCapitalAccountingLine(List<CapitalAccountingLines> capitalAccountingLines,
AccountingLine line)
convenience method to add a new capital accounting line to the collection of capital
accounting lines.
|
protected boolean |
capitalAccountingLinesSelected(CapitalAccountingLinesFormBase calfb)
checks the capital accounting lines if any of the lines have been selected for
further processing.
|
protected boolean |
checkDistributedAccountingLineExists(List<CapitalAccountingLines> capitalAccountingLines,
CapitalAssetAccountsGroupDetails groupAccountLine)
checks capital accounting lines again the distributed accounting line and if found
return true else false so that this distributed accounting line may be removed.
|
protected boolean |
checkObjecSubTypeCrossingCapitalAccountingLines(org.kuali.rice.krad.document.Document document)
runs the validation to check if object subtypes crosses groups on
selected capital accounting lines.
|
org.apache.struts.action.ActionForward |
correct(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
removes capitalaccountinglines which is a transient bo..
|
org.apache.struts.action.ActionForward |
createAsset(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Action "create" creates assets for the selected capital
accounting lines.
|
protected List<CapitalAccountingLines> |
createCapitalAccountingLine(List<CapitalAccountingLines> capitalAccountingLines,
AccountingLine line,
String distributionAmountCode)
Checks if the accounting line has an object code that belongs to object sub type group codes and
if so, creates a capital accounting line that will be displayed on the jsp.
|
protected void |
createCapitalAccountingLines(List<CapitalAccountingLines> capitalAccountingLines,
AccountingDocument tdoc,
String distributionAmountCode)
creates the capital accounting lines looking at source and/or target accounting lines.
|
protected void |
createCapitalAssetsForSelectedAccountingLines(org.apache.struts.action.ActionForm form,
CapitalAccountingLinesFormBase calfb,
String actionTypeIndicator,
String distributionAmountCode)
Helper method to first calculate the percents for the selected capital accounting lines as
the percent is required if the user is distributing the amounts by individual amount
method.
|
protected void |
deleteAccountingLine(boolean isSource,
KualiAccountingDocumentFormBase financialDocumentForm,
int deleteIndex)
When user deletes an accounting line to the either source or target, the corresponding line in
capital accounting line is deleted and the distributed accounting line under the
created or modified capital asset line.
|
protected List<CapitalAccountingLines> |
deleteCapitalAccountingLine(List<CapitalAccountingLines> capitalAccountingLines,
AccountingLine line)
If the line exists in capital accounting lines, that will be deleted.
|
protected org.kuali.rice.krad.service.KualiRuleService |
getRuleService()
Get the rule service
|
protected void |
insertAccountingLine(boolean isSource,
KualiAccountingDocumentFormBase financialDocumentForm,
AccountingLine line)
When user adds an accounting line to the either source or target, if the object code on
that line has capital object type code group then a capital accounting line is created.
|
protected void |
loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase)
All document-load operations get routed through here
|
org.apache.struts.action.ActionForward |
modifyAsset(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Action "modify" creates assets for the selected capital
accounting lines.
|
protected org.apache.struts.action.ActionForward |
performQuestionPrompt(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String actionTypeCode,
String distributionAmountCode) |
org.apache.struts.action.ActionForward |
refresh(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Multi-value asset lookup is implemented through the integration package by module's service
to gather the results.
|
protected boolean |
removeOrphanCapitalAccountingLine(List<AccountingLine> accountLines,
CapitalAccountingLines capitalAccountingLine)
If the line exists in capital accounting lines, and that line does not exist in
accounting lines (source or target) then remove the line from capital accounting lines.
|
protected List<CapitalAccountingLines> |
removeOrphanCapitalAccountingLines(List<CapitalAccountingLines> capitalAccountingLines,
AccountingDocument tdoc)
updates the capital accounting lines looking at source and/or target accounting lines.
|
protected void |
removeOrphanDisributedAccountingLine(List<CapitalAccountingLines> capitalAccountingLines,
CapitalAssetInformation capitalAsset)
Method to check for any distributed accounting line for a given capital
accounting line that are not listed in the capital assets accounting lines and remove it.
|
protected void |
removeOrphanDisributedAccountingLines(List<CapitalAccountingLines> capitalAccountingLines,
List<CapitalAssetInformation> capitalAssets)
Method to check for any distributed accounting lines that are not listed in the
capital accounting lines and remove them.
|
protected void |
sortCaptitalAccountingLines(List<CapitalAccountingLines> capitalAccountingLines)
sort the capital accounting lines collection based on financial object code and account number.
|
protected void |
updateCapitalAccountingLine(List<CapitalAccountingLines> capitalAccountingLines,
AccountingLine line)
Checks if the accounting line exits in the capital accounting lines
and if so, updates the other information.
|
protected List<CapitalAccountingLines> |
updateCapitalAccountingLines(List<CapitalAccountingLines> capitalAccountingLines,
AccountingDocument tdoc)
updates the capital accounting lines looking at source and/or target accounting lines.
|
protected void |
uploadAccountingLines(boolean isSource,
org.apache.struts.action.ActionForm form)
After uploading the accounting lines, the capital accounting lines will be created from these.
|
accountingLinesAmountDistributed, addCapitalAssetInfoDetailLines, addCapitalAssetTagLocationInfo, addMissingAccountingLinesToCapitalAsset, adjustAccountingLineAmountOnLastCapitalAsset, adjustAccountingLinesAmounts, adjustCapitalAssetsAccountingLinesAmounts, adjustVarianceOnCapitalAssets, calculatePercentsForSelectedCapitalAccountingLines, calculateRemainingDistributedAmount, calculateTotalCapitalLinesSelectedAmount, capitalAccountingLineAmountDistributed, capitalAccountingLineMissing, capitalAssetAmountAlreadyDistributedToGroupAccountingLines, capitalAssetCreated, capitalAssetExists, checkCapitalAccountingLinesSelected, checkCreateAssetsExist, checkModifyAssetsExist, checkSelectForCapitalAccountingLines, clearCapitalAssetInfo, clearCapitalAssetModify, copy, createCapitalAssetAccountingLinesDetails, createCapitalAssetForGroupAccountingLines, createCapitalAssetInformationDetail, createNewCapitalAsset, createNewModifyCapitalAsset, deleteCapitalAssetInfo, deleteCapitalAssetInfoDetailLine, deleteCapitalAssetLines, deleteCapitalAssetModify, DistributeCapitalAssetAmountToGroupAccountingLines, getAccountingLineAmount, getAccountingLinesDistributedAmount, getAccountingLinesTotalAmount, getCapitalAccountingLinePercent, getCapitalAssetAccountLineAmount, getCapitalAssetCreated, getCapitalAssetsAmountAllocated, getCurrentCapitalAssetInformationObject, getNextAccountingLineNumber, getNextCapitalAssetLineNumber, getNextLineItemNumber, getNumberOfModifiedAssetsExist, getRemainingAmounToDistribute, getTotalCapitalAccountsAmounts, getTotalQuantityOfCreateAssets, insertCapitalAssetInfo, modifyAssetAlreadyExists, modifyCapitalAssetCreated, numberOfCreateAssetsExist, processRemainingCapitalAssetInfo, redistributeAmountsForAccountingsLineForModifyAssets, redistributeAmountsForAccountingsLineForModifyAssetsByAmounts, redistributeCostEquallyForModifiedAssets, redistributeCreateCapitalAssetAmount, redistributeEqualAmounts, redistributeEqualAmountsForAccountingLineForCreateAssets, redistributeEqualAmountsOnLastCapitalAsset, redistributeIndividualAmounts, redistributeIndividualAmountsForAccountingLinesForCreateAssets, redistributeIndividualAmountsForAccountingLinesForModifyAssets, redistributeModifyCapitalAssetAmount, redistributeToGroupAccountingLinesFromAssetsByAmounts, refreshCapitalAssetModify, removeDistributedAccountingLine, removeEmptyCapitalAssetModify, resetCapitalAssetInfo, setTabStatesForCapitalAssets, setupIntialNextCapitalAssetLineNumber, uncheckCapitalAccountingLinesSelected
approve, blanketApprove, checkSalesTax, checkSalesTaxRequiredAllLines, checkUploadFile, deepCopyAccountingLinesList, deleteSourceLine, deleteTargetLine, execute, getObjectTypeCodeFromLine, getSourceAccountingLine, getTargetAccountingLine, handleSalesTaxRequired, handleSalesTaxRequiredAllLines, hasSalesTaxBeenEntered, hideDetails, insertSourceLine, insertTargetLine, isSalesTaxRequired, isValidSalesTaxEntered, performBalanceInquiryForAccountingLine, performBalanceInquiryForSourceLine, performBalanceInquiryForTargetLine, performLookup, populateSalesTax, processAccountingLineOverrides, processAccountingLineOverrides, processAccountingLineOverrides, processAccountingLineOverrides, processAccountingLines, refreshSalesTaxInfo, removeSalesTax, route, save, showDetails, toggleTab, uploadSourceLines, uploadTargetLines
isDocumentLocked
populateAuthorizationFields
acknowledge, attemptLockRelease, buildAuthorizationException, cancel, cancelBOAttachment, canSave, checkAndWarnAboutSensitiveData, checkAuthorization, close, combineAdHocRecipients, complete, convertSetToMap, createDocument, delete, deleteAdHocRoutePerson, deleteAdHocRouteWorkgroup, deleteBONote, determineNoteWorkflowNotificationAction, disapprove, docHandler, doProcessingAfterPost, downloadBOAttachment, exitingDocument, fyi, generatePessimisticLockMessage, getAttachmentService, getBusinessObjectAuthorizationService, getBusinessObjectMetaDataService, getBusinessObjectService, getDataDictionaryService, getDocumentHelperService, getDocumentService, getEntityManagerFactory, getGroupService, getKualiConfigurationService, getKualiRuleService, getNoteService, getParameterService, getPessimisticLockService, getQuestion, hasPendingAdhocForCompletion, hideAllTabs, insertAdHocRoutePerson, insertAdHocRouteWorkgroup, insertBONote, isFormRepresentingLockObject, performRouteReport, populateAdHocActionRequestCodes, promptBeforeValidation, promptBeforeValidation, recall, refreshAdHocRoutingWorkgroupLookups, releaseLocks, reload, returnToSender, selectedAttachmentIndex, sendAdHocRequests, sendNoteWorkflowNotification, setupDocumentExit, setupPessimisticLockMessages, showAllTabs, streamToResponse, superUserApprove, superUserDisapprove, supervisorFunctions, takeSuperUserActions
addMethodToCallToUncheckedList, defaultDispatch, dispatchMethod, findMethodToCall, getApplicationBaseUrl, getEncryptionService, getHeaderTabDispatch, getHeaderTabNavigateTo, getImageContext, getKualiModuleService, getLineToDelete, getLineToEdit, getReturnLocation, getRoleQualification, getSelectedLine, getTabToToggle, headerTab, isModuleLocked, performInquiry, performQuestionWithInput, performQuestionWithInputAgainBecauseOfErrors, performQuestionWithoutInput, performWorkgroupLookup, postTextAreaToParent, retrieveLookupParameterValue, updateTextArea, validateLookupInquiryFullParameter
cancelled, getMethod, getMethodName, getParameter, unspecified
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
public CapitalAccountingLinesActionBase()
public org.apache.struts.action.ActionForward correct(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
correct
in class FinancialSystemTransactionalDocumentActionBase
Exception
- KRAD Conversion: Customizing the extra buttons on the formFinancialSystemTransactionalDocumentActionBase.correct(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected void loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase) throws org.kuali.rice.kew.api.exception.WorkflowException
loadDocument
in class KualiAccountingDocumentActionBase
org.kuali.rice.kew.api.exception.WorkflowException
KualiDocumentActionBase.loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase)
public org.apache.struts.action.ActionForward refresh(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
CapitalAssetInformationActionBase
refresh
in class CapitalAssetInformationActionBase
Exception
KualiAction.refresh(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected void insertAccountingLine(boolean isSource, KualiAccountingDocumentFormBase financialDocumentForm, AccountingLine line)
protected void deleteAccountingLine(boolean isSource, KualiAccountingDocumentFormBase financialDocumentForm, int deleteIndex)
protected void uploadAccountingLines(boolean isSource, org.apache.struts.action.ActionForm form) throws FileNotFoundException, IOException
protected void createCapitalAccountingLines(List<CapitalAccountingLines> capitalAccountingLines, AccountingDocument tdoc, String distributionAmountCode)
capitalAccountingLines
- tdoc
- distributionAmountCode
- distribution amount code for the lineprotected List<CapitalAccountingLines> updateCapitalAccountingLines(List<CapitalAccountingLines> capitalAccountingLines, AccountingDocument tdoc)
capitalAccountingLines
- tdoc
- protected List<CapitalAccountingLines> removeOrphanCapitalAccountingLines(List<CapitalAccountingLines> capitalAccountingLines, AccountingDocument tdoc)
capitalAccountingLines
- tdoc
- protected boolean removeOrphanCapitalAccountingLine(List<AccountingLine> accountLines, CapitalAccountingLines capitalAccountingLine)
capitalAccountingLines
- line
- to removeprotected void removeOrphanDisributedAccountingLines(List<CapitalAccountingLines> capitalAccountingLines, List<CapitalAssetInformation> capitalAssets)
capitalAccountingLines
- capitalAssets
- protected void removeOrphanDisributedAccountingLine(List<CapitalAccountingLines> capitalAccountingLines, CapitalAssetInformation capitalAsset)
capitalAccountingLines
- capitalAsset
- protected boolean checkDistributedAccountingLineExists(List<CapitalAccountingLines> capitalAccountingLines, CapitalAssetAccountsGroupDetails groupAccountLine)
capitalAccountingLines
- groupAccountLine
- protected List<CapitalAccountingLines> createCapitalAccountingLine(List<CapitalAccountingLines> capitalAccountingLines, AccountingLine line, String distributionAmountCode)
capitalAccountingLines
- line
- distributionAmountCode
- protected void updateCapitalAccountingLine(List<CapitalAccountingLines> capitalAccountingLines, AccountingLine line)
capitalAccountingLines
- line
- protected CapitalAccountingLines addCapitalAccountingLine(List<CapitalAccountingLines> capitalAccountingLines, AccountingLine line)
capitalAccountingLines
- line
- protected List<CapitalAccountingLines> deleteCapitalAccountingLine(List<CapitalAccountingLines> capitalAccountingLines, AccountingLine line)
capitalAccountingLines
- line
- to removeprotected void sortCaptitalAccountingLines(List<CapitalAccountingLines> capitalAccountingLines)
capitalAccountingLines
- List of capital accounting linespublic org.apache.struts.action.ActionForward createAsset(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- request
- response
- Exception
public org.apache.struts.action.ActionForward modifyAsset(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- request
- response
- Exception
protected void createCapitalAssetsForSelectedAccountingLines(org.apache.struts.action.ActionForm form, CapitalAccountingLinesFormBase calfb, String actionTypeIndicator, String distributionAmountCode)
form
- calfb
- actionTypeIndicator
- indicates whether creating an asset for "create" or "modify" actions.distributionAmountCode
- amount distribution codeprotected boolean capitalAccountingLinesSelected(CapitalAccountingLinesFormBase calfb)
calfb
- protected boolean checkObjecSubTypeCrossingCapitalAccountingLines(org.kuali.rice.krad.document.Document document)
form
- protected org.apache.struts.action.ActionForward performQuestionPrompt(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String actionTypeCode, String distributionAmountCode) throws Exception
mapping
- An ActionMappingform
- An ActionFormrequest
- The HttpServletRequestresponse
- The HttpServletResponsedistributionAmountCode
- Exception
protected org.kuali.rice.krad.service.KualiRuleService getRuleService()
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.