public class AccountsPayableActionBase extends PurchasingAccountsPayableActionBase
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
LOG |
UPDATE_EVENT_ACTIONS
MODULE_LOCKED_MESSAGE, MODULE_LOCKED_URL_SUFFIX
DOCUMENT_LOAD_COMMANDS
Constructor and Description |
---|
AccountsPayableActionBase() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.struts.action.ActionForward |
askCancelQuestion(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Constructs and asks the question as to whether the user wants to cancel, for payment requests and credit memos.
|
protected org.apache.struts.action.ActionForward |
askQuestionsAndPerformReopenPurchaseOrder(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected org.apache.struts.action.ActionForward |
askQuestionWithInput(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String questionType,
String notePrefix,
String operation,
String messageKey,
PurQuestionCallback callback)
A wrapper method which prompts for a reason to hold a payment request or credit memo.
|
protected org.apache.struts.action.ActionForward |
askQuestionWithInput(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String questionType,
String notePrefix,
String operation,
String messageKey,
TreeMap<String,PurQuestionCallback> questionsAndCallbacks,
String messagePrefix,
org.apache.struts.action.ActionForward redirect)
Builds and asks questions which require text input by the user for a payment request or a credit memo.
|
org.apache.struts.action.ActionForward |
calculate(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Perform calculation on item line.
|
org.apache.struts.action.ActionForward |
cancel(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected PurQuestionCallback |
cancelCallbackMethod()
Returns a question callback for the Cancel action.
|
protected PurQuestionCallback |
cancelPOActionCallbackMethod()
Returns a question callback for the Cancel Purchase Order action.
|
org.apache.struts.action.ActionForward |
clearAllTaxes(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Adds check for accountingLine updates, generates and dispatches any events caused by such updates
|
String |
getActionName()
Returns the current action name.
|
OleSelectDocumentService |
getOleSelectDocumentService() |
protected PurApItem |
getPOItem(List<PurApItem> pOItems,
Integer itemLineNumber)
returns the matching po item based on matching item identifier and item line numbner
from preq items.
|
protected String |
getQuestionProperty(String messageKey,
String messagePrefix,
org.kuali.rice.core.api.config.property.ConfigurationService kualiConfiguration,
String question)
Used to look up messages to be displayed, from the ConfigurationService, given either a whole key or two parts of a key
that may be concatenated together.
|
protected String[] |
getSelectedItemNumber(javax.servlet.http.HttpServletRequest request)
Will return an array of Strings containing 2 indexes, the first String is the item index and the second String is the account
index.
|
PurchaseOrderDocument |
initiateReopenPurchaseOrder(PurchaseOrderDocument po,
String annotation) |
protected void |
loadDocument(KualiDocumentFormBase kualiDocumentFormBase)
Checks the continuation account indicator and generates warnings if continuation accounts were used to replace original
accounts on the document.
|
org.apache.struts.action.ActionForward |
recalculateItemAccountsAmounts(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
gets the item from preq and restores the values from the original PO and then
redistributes the amounts based on extended cost and quantity
|
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)
Performs refresh of objects after a lookup.
|
org.apache.struts.action.ActionForward |
reopenPo(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected boolean |
requiresCaculate(AccountsPayableFormBase apForm)
Checks if calculation is required.
|
protected void |
restoreItemAccountsAmounts(AccountsPayableDocument apDoc,
PurApItem preqItem)
restores the preq preqItem' accounts amounts with po's item's account lines
amounts.
|
org.apache.struts.action.ActionForward |
restoreItemAccountsAmounts(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
gets the item from preq and restores the values from the original PO
|
org.apache.struts.action.ActionForward |
route(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.apache.struts.action.ActionForward |
save(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService) |
protected void |
updateItemAccountLine(PurApItem pOItem,
PurApAccountingLine lineAcct)
finds the line with matching sequence number, chart code, account number, financial
object code and updates amount/percent on the account line.
|
copy, customAccountRetrieval, customCalculate, deleteSourceLine, downloadBOAttachment, getSelectedLineForAccounts, getSourceAccountingLine, hideAllAccounts, insertAccountingLine, insertAccountingLine, insertBONote, insertSourceLine, processAccountingLineOverrides, processCustomInsertAccountingLine, refreshAccountSummary, showAllAccounts, updateBaseline, uploadAccountingLines
approve, blanketApprove, checkSalesTax, checkSalesTaxRequiredAllLines, checkUploadFile, deepCopyAccountingLinesList, deleteAccountingLine, deleteTargetLine, getObjectTypeCodeFromLine, getTargetAccountingLine, handleSalesTaxRequired, handleSalesTaxRequiredAllLines, hasSalesTaxBeenEntered, hideDetails, insertAccountingLine, insertTargetLine, isSalesTaxRequired, isValidSalesTaxEntered, performBalanceInquiryForAccountingLine, performBalanceInquiryForSourceLine, performBalanceInquiryForTargetLine, performLookup, populateSalesTax, processAccountingLineOverrides, processAccountingLineOverrides, processAccountingLineOverrides, processAccountingLines, refreshSalesTaxInfo, removeSalesTax, showDetails, toggleTab, uploadSourceLines, uploadTargetLines
correct, isDocumentLocked
populateAuthorizationFields
acknowledge, attemptLockRelease, buildAuthorizationException, cancelBOAttachment, canSave, checkAndWarnAboutSensitiveData, checkAuthorization, close, combineAdHocRecipients, complete, convertSetToMap, createDocument, delete, deleteAdHocRoutePerson, deleteAdHocRouteWorkgroup, deleteBONote, determineNoteWorkflowNotificationAction, disapprove, docHandler, doProcessingAfterPost, exitingDocument, fyi, generatePessimisticLockMessage, getAttachmentService, getBusinessObjectAuthorizationService, getBusinessObjectMetaDataService, getBusinessObjectService, getDataDictionaryService, getDocumentHelperService, getDocumentService, getEntityManagerFactory, getGroupService, getKualiConfigurationService, getKualiRuleService, getNoteService, getParameterService, getPessimisticLockService, getQuestion, hasPendingAdhocForCompletion, hideAllTabs, insertAdHocRoutePerson, insertAdHocRouteWorkgroup, 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
protected static org.apache.log4j.Logger LOG
public AccountsPayableActionBase()
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
KualiAccountingDocumentActionBase
execute
in class KualiAccountingDocumentActionBase
Exception
Action.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm,
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
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
refresh
in class KualiAccountingDocumentActionBase
Exception
KualiDocumentActionBase.refresh(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected void loadDocument(KualiDocumentFormBase kualiDocumentFormBase) throws org.kuali.rice.kew.api.exception.WorkflowException
loadDocument
in class PurchasingAccountsPayableActionBase
org.kuali.rice.kew.api.exception.WorkflowException
KualiDocumentActionBase.loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase)
public org.apache.struts.action.ActionForward calculate(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
calculate
in class PurchasingAccountsPayableActionBase
mapping
- An ActionMappingform
- An ActionFormrequest
- The HttpServletRequestresponse
- The HttpServletResponseException
public org.apache.struts.action.ActionForward clearAllTaxes(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
clearAllTaxes
in class PurchasingAccountsPayableActionBase
Exception
protected boolean requiresCaculate(AccountsPayableFormBase apForm)
apForm
- A Form, which must inherit from AccountsPayableFormBase
public String getActionName()
public org.apache.struts.action.ActionForward route(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
route
in class KualiAccountingDocumentActionBase
Exception
KualiDocumentActionBase.route(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public org.apache.struts.action.ActionForward save(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
save
in class KualiAccountingDocumentActionBase
Exception
KualiDocumentActionBase.save(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected org.apache.struts.action.ActionForward askQuestionWithInput(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String questionType, String notePrefix, String operation, String messageKey, PurQuestionCallback callback) throws Exception
mapping
- An ActionMappingform
- An ActionFormrequest
- The HttpServletRequestresponse
- The HttpServletResponsequestionType
- A String used to distinguish which question is being askednotePrefix
- A String explaining what action was taken, to be prepended to the note containing the reason, which gets
written to the documentoperation
- A one-word String description of the action to be taken, to be substituted into the message. (Can be an
empty String for some messages.)messageKey
- A key to the message which will appear on the question screencallback
- A PurQuestionCallbackException
protected org.apache.struts.action.ActionForward askQuestionWithInput(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String questionType, String notePrefix, String operation, String messageKey, TreeMap<String,PurQuestionCallback> questionsAndCallbacks, String messagePrefix, org.apache.struts.action.ActionForward redirect) throws Exception
mapping
- An ActionMappingform
- An ActionFormrequest
- The HttpServletRequestresponse
- The HttpServletResponsequestionType
- A String used to distinguish which question is being askednotePrefix
- A String explaining what action was taken, to be prepended to the note containing the reason, which gets
written to the documentoperation
- A one-word String description of the action to be taken, to be substituted into the message. (Can be an
empty String for some messages.)messageKey
- A (whole) key to the message which will appear on the question screenquestionsAndCallbacks
- A TreeMap associating the type of question to be asked and the type of callback which should
happen in that casemessagePrefix
- The most general part of a key to a message text to be retrieved from ConfigurationService,
Describes a collection of questions.redirect
- An ActionForward to return to if done with questionsException
protected String getQuestionProperty(String messageKey, String messagePrefix, org.kuali.rice.core.api.config.property.ConfigurationService kualiConfiguration, String question)
messageKey
- String. One of the message keys in PurapKeyConstants.messagePrefix
- String. A prefix to the question key, such as "ap.question." that, concatenated with the question,
comprises the whole key of the message.kualiConfiguration
- An instance of ConfigurationServicequestion
- String. The most specific part of the message key in PurapKeyConstants.public org.apache.struts.action.ActionForward reopenPo(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public org.apache.struts.action.ActionForward cancel(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
cancel
in class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase
Exception
KualiDocumentActionBase.cancel(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected org.apache.struts.action.ActionForward askCancelQuestion(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
- An ActionMappingform
- An ActionFormrequest
- The HttpServletRequestresponse
- The HttpServletResponseException
protected PurQuestionCallback cancelPOActionCallbackMethod()
protected PurQuestionCallback cancelCallbackMethod()
protected org.apache.struts.action.ActionForward askQuestionsAndPerformReopenPurchaseOrder(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public PurchaseOrderDocument initiateReopenPurchaseOrder(PurchaseOrderDocument po, String annotation)
public org.apache.struts.action.ActionForward recalculateItemAccountsAmounts(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 restoreItemAccountsAmounts(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 String[] getSelectedItemNumber(javax.servlet.http.HttpServletRequest request)
request
- The HttpServletRequestprotected void restoreItemAccountsAmounts(AccountsPayableDocument apDoc, PurApItem preqItem)
apDoc
- preqItem
- protected PurApItem getPOItem(List<PurApItem> pOItems, Integer itemLineNumber)
purchaseItems
- itemLineNumber
- protected void updateItemAccountLine(PurApItem pOItem, PurApAccountingLine lineAcct)
pOItem
- lineAcct
- public OleSelectDocumentService getOleSelectDocumentService()
public void setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.