|
||||||||||
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
org.kuali.kfs.module.ld.document.LaborJournalVoucherDocument
public class LaborJournalVoucherDocument
Labor Document class for the Labor Ledger Journal Voucher.
Field Summary | |
---|---|
protected org.kuali.rice.kew.doctype.bo.DocumentTypeEBO |
financialSystemDocumentTypeCode
|
protected List<LaborLedgerPendingEntry> |
laborLedgerPendingEntries
|
protected static org.apache.log4j.Logger |
LOG
|
protected String |
offsetTypeCode
|
Fields inherited from class org.kuali.kfs.fp.document.JournalVoucherDocument |
---|
balanceType, balanceTypeCode, 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 | |
---|---|
LaborJournalVoucherDocument()
Constructs a LaborJournalVoucherDocument.java. |
Method Summary | |
---|---|
protected void |
changeLedgerPendingEntriesApprovedStatusCode()
This method iterates over all of the pending entries for a document and sets their approved status code to APPROVED "A". |
void |
doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
Override to call super and then iterate over all GLPEs and update the approved code appropriately. |
boolean |
generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySourceDetail glpeSourceDetail,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
This is a "do nothing" version of the method - it just won't create GLPEs |
boolean |
generateLaborLedgerBenefitClearingPendingEntries(GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
creating a list of benefit clearing Pending entries |
boolean |
generateLaborLedgerPendingEntries(AccountingLine accountingLine,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
creating a list of Expense Pending entries and Benefit pending Entries |
AccountingLineParser |
getAccountingLineParser()
Used to get the appropriate for the Document |
org.kuali.rice.kew.doctype.bo.DocumentTypeEBO |
getFinancialSystemDocumentTypeCode()
Gets the financialSystemDocumentTypeCode attribute. |
List<LaborLedgerPendingEntry> |
getLaborLedgerPendingEntries()
Gets the laborLedgerPendingEntries attribute. |
List |
getLaborLedgerPendingEntriesForSearching()
Retrieves the list of Labor Ledger Pending Entries for the document. |
LaborLedgerPendingEntry |
getLaborLedgerPendingEntry(int index)
Get the pending entry with the given index in the list of labor ledger pending entries |
String |
getOffsetTypeCode()
Gets the offsetTypeCode attribute. |
Class |
getSourceAccountingLineClass()
Returns the default Source accounting line class. |
boolean |
isDebit(GeneralLedgerPendingEntrySourceDetail postable)
Labor docs never generate general ledger pending entries, and therefore, this method is never called, but we always return true, since we're required to have a concrete representation |
void |
prepareForSave()
If the document has a total amount, call method on document to get the total and set in doc header. |
void |
prepareForSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
|
protected void |
removeLedgerPendingEntries()
This method calls the service to remove all of the pending entries associated with this document |
void |
setLaborLedgerPendingEntries(List<LaborLedgerPendingEntry> laborLedgerPendingEntries)
Sets the laborLedgerPendingEntries attribute value. |
void |
setOffsetTypeCode(String offsetTypeCode)
Sets the offsetTypeCode attribute value. |
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, 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 |
---|
checkSufficientFunds, 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, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAllowsCopy, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, populateDocumentForRouting, postProcessSave, 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, getDocumentHeader, getFinancialDocumentTypeCode, getGeneralLedgerPendingEntryAmountForDetail, getGeneralLedgerPendingEntrySourceDetails, getPostingYear |
Methods inherited from interface org.kuali.kfs.sys.document.AmountTotaling |
---|
getTotalDollarAmount |
Methods inherited from interface org.kuali.rice.kns.document.Copyable |
---|
toCopy |
Field Detail |
---|
protected static org.apache.log4j.Logger LOG
protected String offsetTypeCode
protected List<LaborLedgerPendingEntry> laborLedgerPendingEntries
protected org.kuali.rice.kew.doctype.bo.DocumentTypeEBO financialSystemDocumentTypeCode
Constructor Detail |
---|
public LaborJournalVoucherDocument()
Method Detail |
---|
public Class getSourceAccountingLineClass()
AccountingDocumentBase
getSourceAccountingLineClass
in interface AccountingDocument
getSourceAccountingLineClass
in class JournalVoucherDocument
AccountingDocumentBase.getSourceAccountingLineClass()
public LaborLedgerPendingEntry getLaborLedgerPendingEntry(int index)
LaborLedgerPostingDocument
getLaborLedgerPendingEntry
in interface LaborLedgerPostingDocument
index
- the given index
LaborLedgerPostingDocument.getLaborLedgerPendingEntry(int)
public String getOffsetTypeCode()
public void setOffsetTypeCode(String offsetTypeCode)
offsetTypeCode
- The offsetTypeCode to set.public List<LaborLedgerPendingEntry> getLaborLedgerPendingEntries()
getLaborLedgerPendingEntries
in interface LaborLedgerPostingDocument
public void setLaborLedgerPendingEntries(List<LaborLedgerPendingEntry> laborLedgerPendingEntries)
setLaborLedgerPendingEntries
in interface LaborLedgerPostingDocument
laborLedgerPendingEntries
- The laborLedgerPendingEntries to set.public org.kuali.rice.kew.doctype.bo.DocumentTypeEBO getFinancialSystemDocumentTypeCode()
public AccountingLineParser getAccountingLineParser()
AccountingLineParser
for the Document
getAccountingLineParser
in interface AccountingDocument
getAccountingLineParser
in class JournalVoucherDocument
public void doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
doRouteStatusChange
in interface org.kuali.rice.kns.document.Document
doRouteStatusChange
in class GeneralLedgerPostingDocumentBase
Document#doRouteStatusChange()
protected void changeLedgerPendingEntriesApprovedStatusCode()
protected void removeLedgerPendingEntries()
public boolean generateLaborLedgerBenefitClearingPendingEntries(GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
LaborLedgerPostingDocument
generateLaborLedgerBenefitClearingPendingEntries
in interface LaborLedgerPostingDocument
sequenceHelper
- the sequence number generator
LaborLedgerPostingDocument.generateLaborLedgerBenefitClearingPendingEntries(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)
public boolean generateLaborLedgerPendingEntries(AccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
LaborLedgerPostingDocument
generateLaborLedgerPendingEntries
in interface LaborLedgerPostingDocument
accountingLine
- the accounting line being used to generate pending entriessequenceHelper
- the sequence number generator
LaborLedgerPostingDocument.generateLaborLedgerPendingEntries(org.kuali.kfs.sys.businessobject.AccountingLine,
org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)
public void prepareForSave()
prepareForSave
in interface org.kuali.rice.kns.document.Document
prepareForSave
in class FinancialSystemTransactionalDocumentBase
Document.prepareForSave()
public void prepareForSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
prepareForSave
in interface org.kuali.rice.kns.document.Document
prepareForSave
in class AccountingDocumentBase
AccountingDocumentBase.prepareForSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent)
public boolean generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySourceDetail glpeSourceDetail, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
generateGeneralLedgerPendingEntries
in interface GeneralLedgerPendingEntrySource
generateGeneralLedgerPendingEntries
in class AccountingDocumentBase
glpeSourceDetail
- the source detail line to generate general ledger pending entries forsequenceHelper
- the sequence helper which will assign sequence number to generated general ledger pending entries
AccountingDocumentBase.generateGeneralLedgerPendingEntries(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail,
org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)
public boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable)
isDebit
in interface GeneralLedgerPendingEntrySource
isDebit
in class JournalVoucherDocument
AccountingDocumentBase.isDebit(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public List getLaborLedgerPendingEntriesForSearching()
LaborLedgerPostingDocument
getLaborLedgerPendingEntriesForSearching
in interface LaborLedgerPostingDocumentForSearching
getLaborLedgerPendingEntriesForSearching
in interface LaborLedgerPostingDocument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |