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, targetAccountingLines
generalLedgerPendingEntries
accountingPeriod, accountingPeriodService, checkPostingYearForCopy, dataDictionaryService, dateTimeService, postingPeriodCode, postingYear
UPDATE_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, updatePostingYearForAccountingLines
addPendingEntry, changeGeneralLedgerPendingEntriesApprovedStatusCode, clearAnyGeneralLedgerPendingEntries, documentPerformsSufficientFundsCheck, doRouteStatusChange, getGeneralLedgerPendingEntries, getGeneralLedgerPendingEntry, getPendingLedgerEntriesForSufficientFundsChecking, removeGeneralLedgerPendingEntries, setGeneralLedgerPendingEntries
createInitialAccountingPeriod, getAccountingPeriod, getAccountingPeriodCompositeString, getAccountingPeriodService, getDataDictionaryService, getDateTimeService, getFinancialDocumentTypeCode, getPostingPeriodCode, getPostingYear, retrieveCurrentAccountingPeriod, setAccountingPeriod, setAccountingPeriodCompositeString, setPostingPeriodCode, setPostingYear
answerSplitNodeQuestion, doRouteLevelChange, getApplicationDocumentStatus, getBusinessObjectService, getFinancialSystemDocumentHeader, getFinancialSystemDocumentService, getParameterService, prepareForSave, processAfterRetrieve, setApplicationDocumentStatus, setDocumentHeader, updateAndSaveAppDocStatus
getAllowsCopy, isSessionDocument
addCopyErrorDocumentNote, 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, wrapDocumentWithMetadataForXmlSerialization
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refreshNonUpdateableReferences, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSourceAccountingLine, addTargetAccountingLine, getDocumentClassForAccountingLineValueAllowedValidation, getNextSourceLineNumber, getNextTargetLineNumber, getSourceAccountingLine, getSourceAccountingLineEntryName, getSourceAccountingLines, getSourceTotal, getTargetAccountingLine, getTargetAccountingLineClass, getTargetAccountingLineEntryName, getTargetAccountingLines, getTargetTotal, isDocumentFinalOrProcessed, setNextSourceLineNumber, setNextTargetLineNumber, setSourceAccountingLines, setTargetAccountingLines
getGeneralLedgerPendingEntries, getGeneralLedgerPendingEntry, getPendingLedgerEntriesForSufficientFundsChecking, setGeneralLedgerPendingEntries
getAccountingPeriod, getPostingPeriodCode, getPostingYear, setAccountingPeriod, setPostingPeriodCode, setPostingYear
answerSplitNodeQuestion, getFinancialSystemDocumentHeader
addNote, 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, wrapDocumentWithMetadataForXmlSerialization
buildListOfDeletionAwareLists, getExtension, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
addPendingEntry, clearAnyGeneralLedgerPendingEntries, generateDocumentGeneralLedgerPendingEntries, generateGeneralLedgerPendingEntries, getDocumentHeader, getFinancialDocumentTypeCode, getFinancialSystemDocumentHeader, getGeneralLedgerPendingEntrySourceDetails, getPostingYear
protected static org.apache.log4j.Logger LOG
protected String balanceTypeCode
protected BalanceType balanceType
protected Date reversalDate
public JournalVoucherDocument()
public List<SufficientFundsItem> checkSufficientFunds()
GeneralLedgerPostingDocument
checkSufficientFunds
in interface GeneralLedgerPostingDocument
checkSufficientFunds
in class GeneralLedgerPostingDocumentBase
GeneralLedgerPostingDocumentBase.checkSufficientFunds()
public Class getSourceAccountingLineClass()
AccountingDocumentBase
getSourceAccountingLineClass
in interface AccountingDocument
getSourceAccountingLineClass
in class AccountingDocumentBase
AccountingDocumentBase.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 VoucherDocument
public void setReversalDate(Date reversalDate)
setReversalDate
in interface VoucherDocument
reversalDate
- public String getSourceAccountingLinesSectionTitle()
getSourceAccountingLinesSectionTitle
in interface AccountingDocument
getSourceAccountingLinesSectionTitle
in class AccountingDocumentBase
AccountingDocument.getSourceAccountingLinesSectionTitle()
public String getTargetAccountingLinesSectionTitle()
getTargetAccountingLinesSectionTitle
in interface AccountingDocument
getTargetAccountingLinesSectionTitle
in class AccountingDocumentBase
AccountingDocument.getTargetAccountingLinesSectionTitle()
public org.kuali.rice.core.api.util.type.KualiDecimal getDebitTotal()
getDebitTotal
in interface VoucherDocument
public org.kuali.rice.core.api.util.type.KualiDecimal getCreditTotal()
getCreditTotal
in interface VoucherDocument
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalDollarAmount()
getTotalDollarAmount
in interface AmountTotaling
getTotalDollarAmount
in class AccountingDocumentBase
public AccountingLineParser getAccountingLineParser()
AccountingLineParser
for the Document
getAccountingLineParser
in interface AccountingDocument
getAccountingLineParser
in class AccountingDocumentBase
public void toErrorCorrection() throws org.kuali.rice.kew.api.exception.WorkflowException
Correctable
toErrorCorrection
in interface Correctable
toErrorCorrection
in class AccountingDocumentBase
org.kuali.rice.kew.api.exception.WorkflowException
AccountingDocumentBase.toErrorCorrection()
protected void processJournalVoucherErrorCorrections()
public boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable) throws IllegalStateException
isDebit
in interface GeneralLedgerPendingEntrySource
isDebit
in class AccountingDocumentBase
financialDocument
- 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 AccountingDocumentBase
financialDocument
- 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 AccountingDocumentBase
financialDocument
- 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)
AccountingDocumentBase
getGeneralLedgerPendingEntryAmountForDetail
in interface GeneralLedgerPendingEntrySource
getGeneralLedgerPendingEntryAmountForDetail
in class AccountingDocumentBase
accountingLine
- 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–2015 The Kuali Foundation. All rights reserved.