public class JournalVoucherDocument extends AccountingDocumentBase implements VoucherDocument, org.kuali.rice.krad.document.Copyable, Correctable, AmountTotaling
| Modifier and Type | Field and Description |
|---|---|
protected BalanceType |
balanceType |
protected String |
balanceTypeCode |
protected static org.apache.log4j.Logger |
LOG |
protected Date |
reversalDate |
dataDictionaryEntry, nextSourceLineNumber, nextTargetLineNumber, sourceAccountingLineClass, sourceAccountingLines, targetAccountingLineClass, targetAccountingLinesgeneralLedgerPendingEntriesaccountingPeriod, accountingPeriodService, checkPostingYearForCopy, dataDictionaryService, dateTimeService, postingPeriodCode, postingYearUPDATE_TOTAL_AMOUNT_IN_POST_PROCESSING_PARAMETER_NAME| Constructor and Description |
|---|
JournalVoucherDocument()
Constructs a JournalVoucherDocument instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<SufficientFundsItem> |
checkSufficientFunds()
This method will check sufficient funds for the document
|
void |
customizeExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail postable,
GeneralLedgerPendingEntry explicitEntry)
This method sets attributes on the explicitly general ledger pending entry specific to JournalVoucher documents.
|
AccountingLineParser |
getAccountingLineParser()
Used to get the appropriate
for the Document |
BalanceType |
getBalanceType()
This method retrieves the balance typ associated with this document.
|
String |
getBalanceTypeCode()
Gets the balanceTypeCode attribute.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getCreditTotal()
This method calculates the credit total for a JV document keying off of the debit/credit code, only summing the accounting
lines with a debitCreditCode that matched the debit constant, and returns the results.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getDebitTotal()
This method calculates the debit total for a JV document keying off of the debit/debit code, only summing the accounting
lines with a debitDebitCode that matched the debit constant, and returns the results.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getGeneralLedgerPendingEntryAmountForDetail(GeneralLedgerPendingEntrySourceDetail accountingLine)
GLPE amounts are ALWAYS positive, so just take the absolute value of the accounting line's amount.
|
Date |
getReversalDate()
This method retrieves the reversal date associated with this document.
|
Class |
getSourceAccountingLineClass()
Returns the default Source accounting line class.
|
String |
getSourceAccountingLinesSectionTitle()
Overrides the base implementation to return an empty string.
|
String |
getTargetAccountingLinesSectionTitle()
Overrides the base implementation to return an empty string.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalDollarAmount()
This method determines the "total" for the JV document.
|
boolean |
isDebit(GeneralLedgerPendingEntrySourceDetail postable)
The following are credits (return false)
(debitCreditCode isNotBlank) && debitCreditCode != 'D'
The following are debits (return true)
debitCreditCode == 'D'
debitCreditCode isBlank
|
protected void |
processJournalVoucherErrorCorrections()
This method checks to make sure that the JV that we are dealing with was one that was created in debit/credit mode, not
single amount entry mode.
|
boolean |
processOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
GeneralLedgerPendingEntrySourceDetail glpeSourceDetail,
GeneralLedgerPendingEntry explicitEntry,
GeneralLedgerPendingEntry offsetEntry)
A Journal Voucher document doesn't generate an offset entry at all, so this method overrides to do nothing more than return
true.
|
void |
setBalanceType(BalanceType balanceType)
Deprecated.
|
void |
setBalanceTypeCode(String balanceTypeCode)
Sets the balanceTypeCode attribute value.
|
void |
setReversalDate(Date reversalDate)
This method sets the reversal date associated with this document.
|
void |
toErrorCorrection()
Converts this Document instance into an error correction of itself.
|
addSourceAccountingLine, addTargetAccountingLine, buildAccountingLineMap, buildListOfDeletionAwareLists, copyAccountingLines, customizeOffsetGeneralLedgerPendingEntry, generateDocumentGeneralLedgerPendingEntries, generateEvents, generateGeneralLedgerPendingEntries, generateSaveEvents, getDataDictionaryEntry, getDocumentClassForAccountingLineValueAllowedValidation, getEntryValue, getGeneralLedgerPendingEntrySourceDetails, getNextSourceLineNumber, getNextTargetLineNumber, getPersistedSourceAccountingLinesForComparison, getPersistedTargetAccountingLinesForComparison, getSourceAccountingLine, getSourceAccountingLineEntryName, getSourceAccountingLines, getSourceAccountingLinesForComparison, getSourceTotal, getTargetAccountingLine, getTargetAccountingLineClass, getTargetAccountingLineEntryName, getTargetAccountingLines, getTargetAccountingLinesForComparison, getTargetTotal, isDocumentFinalOrProcessed, prepareForSave, processExplicitGeneralLedgerPendingEntry, setNextSourceLineNumber, setNextTargetLineNumber, setSourceAccountingLines, setTargetAccountingLines, toCopy, updatePostingYearForAccountingLinesaddPendingEntry, changeGeneralLedgerPendingEntriesApprovedStatusCode, clearAnyGeneralLedgerPendingEntries, documentPerformsSufficientFundsCheck, doRouteStatusChange, getGeneralLedgerPendingEntries, getGeneralLedgerPendingEntry, getPendingLedgerEntriesForSufficientFundsChecking, removeGeneralLedgerPendingEntries, setGeneralLedgerPendingEntriescreateInitialAccountingPeriod, getAccountingPeriod, getAccountingPeriodCompositeString, getAccountingPeriodService, getDataDictionaryService, getDateTimeService, getFinancialDocumentTypeCode, getPostingPeriodCode, getPostingYear, retrieveCurrentAccountingPeriod, setAccountingPeriod, setAccountingPeriodCompositeString, setPostingPeriodCode, setPostingYearanswerSplitNodeQuestion, doRouteLevelChange, getApplicationDocumentStatus, getBusinessObjectService, getFinancialSystemDocumentHeader, getFinancialSystemDocumentService, getParameterService, prepareForSave, processAfterRetrieve, setApplicationDocumentStatus, setDocumentHeader, updateAndSaveAppDocStatusgetAllowsCopy, isSessionDocumentaddCopyErrorDocumentNote, addNote, addPessimisticLock, afterActionTaken, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, createPropertySerializabilityEvaluator, doActionTaken, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAttachmentService, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNonLockingActionTakenCodes, getNote, getNotes, getNoteService, getNoteTarget, getNoteType, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, logErrors, populateDocumentForRouting, postLoad, postProcessSave, refresh, refreshIfEmpty, refreshPessimisticLocks, refreshReferenceObject, removeNote, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentNumber, setNewDocumentHeader, setNotes, setPessimisticLocks, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerializationafterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refreshNonUpdateableReferences, setExtension, setNewCollectionRecord, setObjectId, setVersionNumberclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSourceAccountingLine, addTargetAccountingLine, getDocumentClassForAccountingLineValueAllowedValidation, getNextSourceLineNumber, getNextTargetLineNumber, getSourceAccountingLine, getSourceAccountingLineEntryName, getSourceAccountingLines, getSourceTotal, getTargetAccountingLine, getTargetAccountingLineClass, getTargetAccountingLineEntryName, getTargetAccountingLines, getTargetTotal, isDocumentFinalOrProcessed, setNextSourceLineNumber, setNextTargetLineNumber, setSourceAccountingLines, setTargetAccountingLinesgetGeneralLedgerPendingEntries, getGeneralLedgerPendingEntry, getPendingLedgerEntriesForSufficientFundsChecking, setGeneralLedgerPendingEntriesgetAccountingPeriod, getPostingPeriodCode, getPostingYear, setAccountingPeriod, setPostingPeriodCode, setPostingYearanswerSplitNodeQuestion, getFinancialSystemDocumentHeaderaddNote, addPessimisticLock, afterActionTaken, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, doActionTaken, doRouteLevelChange, doRouteStatusChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAllowsCopy, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNote, getNotes, getNoteTarget, getNoteType, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, populateDocumentForRouting, postProcessSave, prepareForSave, prepareForSave, processAfterRetrieve, refreshPessimisticLocks, removeNote, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, setNotes, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerializationbuildListOfDeletionAwareLists, getExtension, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumberaddPendingEntry, clearAnyGeneralLedgerPendingEntries, generateDocumentGeneralLedgerPendingEntries, generateGeneralLedgerPendingEntries, getDocumentHeader, getFinancialDocumentTypeCode, getFinancialSystemDocumentHeader, getGeneralLedgerPendingEntrySourceDetails, getPostingYearprotected static org.apache.log4j.Logger LOG
protected String balanceTypeCode
protected BalanceType balanceType
protected Date reversalDate
public JournalVoucherDocument()
public List<SufficientFundsItem> checkSufficientFunds()
GeneralLedgerPostingDocumentcheckSufficientFunds in interface GeneralLedgerPostingDocumentcheckSufficientFunds in class GeneralLedgerPostingDocumentBaseGeneralLedgerPostingDocumentBase.checkSufficientFunds()public Class getSourceAccountingLineClass()
AccountingDocumentBasegetSourceAccountingLineClass in interface AccountingDocumentgetSourceAccountingLineClass in class AccountingDocumentBaseAccountingDocumentBase.getSourceAccountingLineClass()public BalanceType getBalanceType()
@Deprecated public void setBalanceType(BalanceType balanceType)
balanceType - public String getBalanceTypeCode()
public void setBalanceTypeCode(String balanceTypeCode)
balanceTypeCode - The balanceTypeCode to set.public Date getReversalDate()
getReversalDate in interface VoucherDocumentpublic void setReversalDate(Date reversalDate)
setReversalDate in interface VoucherDocumentreversalDate - public String getSourceAccountingLinesSectionTitle()
getSourceAccountingLinesSectionTitle in interface AccountingDocumentgetSourceAccountingLinesSectionTitle in class AccountingDocumentBaseAccountingDocument.getSourceAccountingLinesSectionTitle()public String getTargetAccountingLinesSectionTitle()
getTargetAccountingLinesSectionTitle in interface AccountingDocumentgetTargetAccountingLinesSectionTitle in class AccountingDocumentBaseAccountingDocument.getTargetAccountingLinesSectionTitle()public org.kuali.rice.core.api.util.type.KualiDecimal getDebitTotal()
getDebitTotal in interface VoucherDocumentpublic org.kuali.rice.core.api.util.type.KualiDecimal getCreditTotal()
getCreditTotal in interface VoucherDocumentpublic org.kuali.rice.core.api.util.type.KualiDecimal getTotalDollarAmount()
getTotalDollarAmount in interface AmountTotalinggetTotalDollarAmount in class AccountingDocumentBasepublic AccountingLineParser getAccountingLineParser()
AccountingLineParser for the DocumentgetAccountingLineParser in interface AccountingDocumentgetAccountingLineParser in class AccountingDocumentBasepublic void toErrorCorrection() throws org.kuali.rice.kew.api.exception.WorkflowException
CorrectabletoErrorCorrection in interface CorrectabletoErrorCorrection in class AccountingDocumentBaseorg.kuali.rice.kew.api.exception.WorkflowExceptionAccountingDocumentBase.toErrorCorrection()protected void processJournalVoucherErrorCorrections()
public boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable) throws IllegalStateException
isDebit in interface GeneralLedgerPendingEntrySourceisDebit in class AccountingDocumentBasefinancialDocument - The document which contains the accounting line being analyzed.accountingLine - The accounting line which will be analyzed to determine if it is a debit line.IllegalStateException - Thrown by method IsDebitUtiles.isDebitCode()org.kuali.rice.krad.rule.AccountingLineRule#isDebit(org.kuali.rice.krad.document.FinancialDocument,
org.kuali.rice.krad.bo.AccountingLine),
org.kuali.ole.sys.document.validation.impl.AccountingDocumentRuleBase.IsDebitUtils#isDebitCode(String)public void customizeExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail postable, GeneralLedgerPendingEntry explicitEntry)
customizeExplicitGeneralLedgerPendingEntry in class AccountingDocumentBasefinancialDocument - The document which contains the general ledger pending entry being modified.accountingLine - The accounting line the explicit entry was generated from.explicitEntry - The explicit entry being updated.org.kuali.module.financial.rules.FinancialDocumentRuleBase#customizeExplicitGeneralLedgerPendingEntry(org.kuali.rice.krad.document.FinancialDocument,
org.kuali.rice.krad.bo.AccountingLine, org.kuali.module.gl.bo.GeneralLedgerPendingEntry)public boolean processOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntrySourceDetail glpeSourceDetail, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry)
processOffsetGeneralLedgerPendingEntry in class AccountingDocumentBasefinancialDocument - The document the offset will be stored within.sequenceHelper - The sequence object to be modified.accountingLineToCopy - The accounting line the offset is generated for.explicitEntry - The explicit entry the offset will be generated for.offsetEntry - The offset entry to be processed.org.kuali.module.financial.rules.FinancialDocumentRuleBase#processOffsetGeneralLedgerPendingEntry(org.kuali.rice.krad.document.FinancialDocument,
org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper, org.kuali.rice.krad.bo.AccountingLine,
org.kuali.module.gl.bo.GeneralLedgerPendingEntry, org.kuali.module.gl.bo.GeneralLedgerPendingEntry)public org.kuali.rice.core.api.util.type.KualiDecimal getGeneralLedgerPendingEntryAmountForDetail(GeneralLedgerPendingEntrySourceDetail accountingLine)
AccountingDocumentBasegetGeneralLedgerPendingEntryAmountForDetail in interface GeneralLedgerPendingEntrySourcegetGeneralLedgerPendingEntryAmountForDetail in class AccountingDocumentBaseaccountingLine - the detail line from the general ledger pending entry source to find an amount fororg.kuali.ole.sys.document.validation.impl.AccountingDocumentRuleBase#getGeneralLedgerPendingEntryAmountForAccountingLine(org.kuali.ole.sys.businessobject.AccountingLine)Copyright © 2004–2014 The Kuali Foundation. All rights reserved.