|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kns.bo.BusinessObjectBase
org.kuali.rice.kns.bo.PersistableBusinessObjectBase
org.kuali.rice.kns.document.DocumentBase
org.kuali.rice.kns.document.TransactionalDocumentBase
org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase
org.kuali.kfs.sys.document.LedgerPostingDocumentBase
org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase
org.kuali.kfs.sys.document.AccountingDocumentBase
org.kuali.kfs.fp.document.JournalVoucherDocument
public class JournalVoucherDocument
This is the business object that represents the JournalVoucherDocument in Kuali. This is a transactional document that will eventually post transactions to the G/L. It integrates with workflow and contains a single group of accounting lines. The Journal Voucher is unique in that we only make use of one accounting line list: the source accounting lines seeing as a JV only records accounting lines as debits or credits.
| Field Summary | |
|---|---|
protected BalanceType |
balanceType
|
protected String |
balanceTypeCode
|
protected static org.apache.log4j.Logger |
LOG
|
protected Date |
reversalDate
|
| Fields inherited from class org.kuali.kfs.sys.document.AccountingDocumentBase |
|---|
dataDictionaryEntry, nextSourceLineNumber, nextTargetLineNumber, sourceAccountingLineClass, sourceAccountingLines, targetAccountingLineClass, targetAccountingLines |
| Fields inherited from class org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase |
|---|
generalLedgerPendingEntries |
| Fields inherited from class org.kuali.kfs.sys.document.LedgerPostingDocumentBase |
|---|
accountingPeriod, accountingPeriodService, checkPostingYearForCopy, dataDictionaryService, dateTimeService, postingPeriodCode, postingYear |
| Fields inherited from class org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase |
|---|
documentHeader |
| Fields inherited from class org.kuali.rice.kns.document.DocumentBase |
|---|
documentBusinessObject, documentNumber |
| Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase |
|---|
extension, versionNumber |
| Constructor Summary | |
|---|---|
JournalVoucherDocument()
Constructs a JournalVoucherDocument instance. |
|
| Method Summary | |
|---|---|
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.kns.util.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.kns.util.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.kns.util.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.kns.util.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. |
| Methods inherited from class org.kuali.kfs.sys.document.LedgerPostingDocumentBase |
|---|
createInitialAccountingPeriod, getAccountingPeriod, getAccountingPeriodService, getDataDictionaryService, getDateTimeService, getFinancialDocumentTypeCode, getPostingPeriodCode, getPostingYear, retrieveCurrentAccountingPeriod, setAccountingPeriod, setPostingPeriodCode, setPostingYear |
| Methods inherited from class org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase |
|---|
answerSplitNodeQuestion, getDocumentHeader, prepareForSave, processAfterRetrieve, setDocumentHeader |
| Methods inherited from class org.kuali.rice.kns.document.TransactionalDocumentBase |
|---|
getAllowsCopy, isSessionDocument |
| Methods inherited from class org.kuali.rice.kns.document.DocumentBase |
|---|
addCopyErrorDocumentNote, addPessimisticLock, afterLookup, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, createPropertySerializabilityEvaluator, doActionTaken, doRouteLevelChange, getAdHocRoutePersons, getAdHocRouteWorkgroups, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNonLockingActionTakenCodes, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, logErrors, populateDocumentForRouting, postProcessSave, refresh, refreshIfEmpty, refreshPessimisticLocks, refreshReferenceObject, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentNumber, setNewDocumentHeader, setPessimisticLocks, toString, toStringBuilder, toStringMapper, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization |
| Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase |
|---|
addNote, afterDelete, afterInsert, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes |
| Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase |
|---|
prepareForWorkflow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.kuali.kfs.sys.document.GeneralLedgerPostingDocument |
|---|
getGeneralLedgerPendingEntries, getGeneralLedgerPendingEntry, getPendingLedgerEntriesForSufficientFundsChecking, setGeneralLedgerPendingEntries |
| Methods inherited from interface org.kuali.kfs.sys.document.LedgerPostingDocument |
|---|
getAccountingPeriod, getPostingPeriodCode, getPostingYear, setAccountingPeriod, setPostingPeriodCode, setPostingYear |
| Methods inherited from interface org.kuali.kfs.sys.document.FinancialSystemTransactionalDocument |
|---|
answerSplitNodeQuestion, getDocumentHeader |
| Methods inherited from interface org.kuali.rice.kns.document.Document |
|---|
addPessimisticLock, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, doActionTaken, doRouteLevelChange, doRouteStatusChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAllowsCopy, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, populateDocumentForRouting, postProcessSave, prepareForSave, prepareForSave, processAfterRetrieve, refreshPessimisticLocks, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization |
| Methods inherited from interface org.kuali.rice.kns.bo.PersistableBusinessObject |
|---|
addNote, buildListOfDeletionAwareLists, deleteNote, getBoNote, getBoNotes, getExtension, getObjectId, getVersionNumber, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, refreshReferenceObject, setAutoIncrementSet, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber |
| Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject |
|---|
prepareForWorkflow, refresh |
| Methods inherited from interface org.apache.ojb.broker.PersistenceBrokerAware |
|---|
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate |
| Methods inherited from interface org.kuali.kfs.sys.document.GeneralLedgerPendingEntrySource |
|---|
addPendingEntry, clearAnyGeneralLedgerPendingEntries, generateDocumentGeneralLedgerPendingEntries, generateGeneralLedgerPendingEntries, getDocumentHeader, getFinancialDocumentTypeCode, getGeneralLedgerPendingEntrySourceDetails, getPostingYear |
| Methods inherited from interface org.kuali.rice.kns.document.Copyable |
|---|
toCopy |
| Field Detail |
|---|
protected static org.apache.log4j.Logger LOG
protected String balanceTypeCode
protected BalanceType balanceType
protected Date reversalDate
| Constructor Detail |
|---|
public JournalVoucherDocument()
| Method Detail |
|---|
public List<SufficientFundsItem> checkSufficientFunds()
GeneralLedgerPostingDocument
checkSufficientFunds in interface GeneralLedgerPostingDocumentcheckSufficientFunds in class GeneralLedgerPostingDocumentBaseGeneralLedgerPostingDocumentBase.checkSufficientFunds()public Class getSourceAccountingLineClass()
AccountingDocumentBase
getSourceAccountingLineClass 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.kns.util.KualiDecimal getDebitTotal()
getDebitTotal in interface VoucherDocumentpublic org.kuali.rice.kns.util.KualiDecimal getCreditTotal()
getCreditTotal in interface VoucherDocumentpublic org.kuali.rice.kns.util.KualiDecimal getTotalDollarAmount()
getTotalDollarAmount in interface AmountTotalinggetTotalDollarAmount in class AccountingDocumentBasepublic AccountingLineParser getAccountingLineParser()
AccountingLineParser for the Document
getAccountingLineParser in interface AccountingDocumentgetAccountingLineParser in class AccountingDocumentBase
public void toErrorCorrection()
throws org.kuali.rice.kew.exception.WorkflowException
Correctable
toErrorCorrection in interface CorrectabletoErrorCorrection in class AccountingDocumentBaseorg.kuali.rice.kew.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.kns.rule.AccountingLineRule#isDebit(org.kuali.rice.kns.document.FinancialDocument,
org.kuali.rice.kns.bo.AccountingLine),
org.kuali.kfs.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.kns.document.FinancialDocument,
org.kuali.rice.kns.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.kns.document.FinancialDocument,
org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper, org.kuali.rice.kns.bo.AccountingLine,
org.kuali.module.gl.bo.GeneralLedgerPendingEntry, org.kuali.module.gl.bo.GeneralLedgerPendingEntry)public org.kuali.rice.kns.util.KualiDecimal getGeneralLedgerPendingEntryAmountForDetail(GeneralLedgerPendingEntrySourceDetail accountingLine)
AccountingDocumentBase
getGeneralLedgerPendingEntryAmountForDetail in interface GeneralLedgerPendingEntrySourcegetGeneralLedgerPendingEntryAmountForDetail in class AccountingDocumentBaseaccountingLine - the detail line from the general ledger pending entry source to find an amount for
org.kuali.kfs.sys.document.validation.impl.AccountingDocumentRuleBase#getGeneralLedgerPendingEntryAmountForAccountingLine(org.kuali.kfs.sys.businessobject.AccountingLine)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||