| org.kuali.module.financial.web.struts.action.VoucherAction org.kuali.module.financial.web.struts.action.JournalVoucherAction
All known Subclasses: org.kuali.module.labor.web.struts.action.JournalVoucherAction,
JournalVoucherAction | public class JournalVoucherAction extends VoucherAction (Code) | | This class piggy backs on all of the functionality in the KualiTransactionalDocumentActionBase but is necessary for this document
type. The Journal Voucher is unique in that it defines several fields that aren't typically used by the other financial
transaction processing eDocs (i.e. external system fields, object type override, credit and debit amounts).
|
Method Summary | |
public ActionForward | changeBalanceType(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) This method processes a change in the balance type for a Journal Voucher document - from either a offset generation balance
type to a non-offset generation balance type or visa-versa. | public ActionForward | correct(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Overrides to call super, and then to repopulate the credit/debit amounts b/c the credit/debit code might change during a JV
error correction. | protected int | determineBalanceTypeAmountChangeMode(JournalVoucherForm journalVoucherForm) This method will determine which balance type amount mode to switch to. | protected int | determineBalanceTypeEncumbranceChangeMode(JournalVoucherForm journalVoucherForm) This method will determine which balance type encumbrance mode to switch to. | public ActionForward | execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Overrides the parent and then calls the super method after building the array lists for valid accounting periods and balance
types. | protected BalanceTyp | 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. | protected void | loadDocument(KualiDocumentFormBase kualiDocumentFormBase) Overrides the parent to make sure that the JV specific accounting line helper forms are properly populated when the document
is first loaded. | protected ActionForward | processRouteOutOfBalanceDocumentConfirmationQuestion(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) This helper method determines from the request object instance whether or not the user has been prompted about the journal
being out of balance. | public ActionForward | route(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Overrides the parent to first prompt the user appropriately to make sure that they want to submit and out of balance
document, then calls super's route method. | protected void | uploadAccountingLines(boolean isSource, ActionForm form) This method determines whether we are uploading source or target lines, and then calls uploadAccountingLines directly on the
document object. | public ActionForward | uploadSourceLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) This action executes a call to upload CSV accounting line values as SourceAccountingLines for a given transactional document. |
CREDIT_DEBIT_TO_SINGLE_AMT_MODE | final protected static int CREDIT_DEBIT_TO_SINGLE_AMT_MODE(Code) | | |
EXT_ENCUMB_TO_NON_EXT_ENCUMB | final protected static int EXT_ENCUMB_TO_NON_EXT_ENCUMB(Code) | | |
NON_EXT_ENCUMB_TO_EXT_ENCUMB | final protected static int NON_EXT_ENCUMB_TO_EXT_ENCUMB(Code) | | |
NO_MODE_CHANGE | final protected static int NO_MODE_CHANGE(Code) | | |
SINGLE_AMT_TO_CREDIT_DEBIT_MODE | final protected static int SINGLE_AMT_TO_CREDIT_DEBIT_MODE(Code) | | |
changeBalanceType | public ActionForward changeBalanceType(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code) | | This method processes a change in the balance type for a Journal Voucher document - from either a offset generation balance
type to a non-offset generation balance type or visa-versa.
Parameters: mapping - Parameters: form - Parameters: request - Parameters: response - ActionForward throws: Exception - |
determineBalanceTypeAmountChangeMode | protected int determineBalanceTypeAmountChangeMode(JournalVoucherForm journalVoucherForm) throws Exception(Code) | | This method will determine which balance type amount mode to switch to. A change in the balance type selection will
eventually invoke this mechanism, which looks at the old balance type value, and the new balance type value to determine what
the next mode is.
Parameters: journalVoucherForm - throws: Exception - |
determineBalanceTypeEncumbranceChangeMode | protected int determineBalanceTypeEncumbranceChangeMode(JournalVoucherForm journalVoucherForm) throws Exception(Code) | | This method will determine which balance type encumbrance mode to switch to. A change in the balance type selection will
eventually invoke this mechanism, which looks at the old balance type value, and the new balance type value to determine what
the next mode is.
Parameters: journalVoucherForm - throws: Exception - |
getPopulatedBalanceTypeInstance | protected BalanceTyp getPopulatedBalanceTypeInstance(String balanceTypeCode)(Code) | | 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.
Parameters: balanceTypeCode - BalanceTyp |
processRouteOutOfBalanceDocumentConfirmationQuestion | protected ActionForward processRouteOutOfBalanceDocumentConfirmationQuestion(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code) | | This helper method determines from the request object instance whether or not the user has been prompted about the journal
being out of balance. If they haven't, then the method will build the appropriate message given the state of the document and
return control to the question component so that the user receives the "yes"/"no" prompt. If the question has been asked, the
we evaluate the user's answer and direct the flow appropriately. If they answer with a "No", then we build out a message
stating that they chose that value and return an ActionForward of a MAPPING_BASIC which keeps them at the same page that they
were on. If they choose "Yes", then we return a null ActionForward, which the calling action method recognizes as a "Yes" and
continues on processing the "Route."
Parameters: mapping - Parameters: form - Parameters: request - Parameters: response - ActionForward throws: Exception - |
uploadAccountingLines | protected void uploadAccountingLines(boolean isSource, ActionForm form) throws FileNotFoundException, IOException(Code) | | This method determines whether we are uploading source or target lines, and then calls uploadAccountingLines directly on the
document object. This method handles retrieving the actual upload file as an input stream into the document.
Parameters: isSource - Parameters: form - throws: FileNotFoundException - throws: IOException - |
uploadSourceLines | public ActionForward uploadSourceLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FileNotFoundException, IOException(Code) | | This action executes a call to upload CSV accounting line values as SourceAccountingLines for a given transactional document.
The "uploadAccountingLines()" method handles the multi-part request.
Parameters: mapping - Parameters: form - Parameters: request - Parameters: response - ActionForward throws: FileNotFoundException - throws: IOException - |
Methods inherited from org.kuali.module.financial.web.struts.action.VoucherAction | public ActionForward correct(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc) public ActionForward deleteSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc) public ActionForward insertSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc) protected void loadDocument(KualiDocumentFormBase kualiDocumentFormBase) throws WorkflowException(Code)(Java Doc) protected void populateAllVoucherAccountingLineHelpers(VoucherForm voucherForm)(Code)(Java Doc) protected VoucherAccountingLineHelper populateNewVoucherAccountingLineHelper(VoucherForm voucherForm)(Code)(Java Doc) protected void populateSelectedAccountingPeriod(VoucherDocument voucherDocument, VoucherForm voucherForm)(Code)(Java Doc) protected VoucherAccountingLineHelper populateVoucherAccountingLineHelper(VoucherForm voucherForm)(Code)(Java Doc) protected ActionForward processRouteOutOfBalanceDocumentConfirmationQuestion(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc) protected boolean revertAccountingLine(KualiAccountingDocumentFormBase transForm, int revertIndex, AccountingLine originalLine, AccountingLine brokenLine)(Code)(Java Doc) protected void uploadAccountingLines(boolean isSource, ActionForm form) throws FileNotFoundException, IOException(Code)(Java Doc) public ActionForward uploadSourceLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FileNotFoundException, IOException(Code)(Java Doc)
|
|
|