|
||||||||||
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.fp.document.CashManagementDocument
public class CashManagementDocument
This class represents the CashManagementDocument.
Field Summary | |
---|---|
protected org.kuali.rice.kns.bo.Campus |
campus
|
protected String |
campusCode
|
protected CashDrawer |
cashDrawer
|
protected List<Check> |
checks
|
protected CashieringTransaction |
currentTransaction
|
protected List<Deposit> |
deposits
|
protected static org.apache.log4j.Logger |
LOG
|
protected String |
referenceFinancialDocumentNumber
|
protected static long |
serialVersionUID
|
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 | |
---|---|
CashManagementDocument()
Default constructor. |
Method Summary | |
---|---|
void |
addCheck(Check check)
Add a check to the cash management document |
List |
buildListOfDeletionAwareLists()
|
protected static String |
createDescription(Deposit deposit,
int interimDepositNumber)
Create description for deposit |
void |
customizeExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail postable,
GeneralLedgerPendingEntry explicitEntry)
Does nothing, as there aren't any accounting lines on this doc, so no GeneralLedgerPendingEntrySourceDetail create GLPEs |
boolean |
customizeOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail accountingLine,
GeneralLedgerPendingEntry explicitEntry,
GeneralLedgerPendingEntry offsetEntry)
Does nothing save return true, as this document has no GLPEs created from a source of GeneralLedgerPostables |
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. |
protected void |
extendDeposits(int minSize)
Adds default AccountingLineDecorators to sourceAccountingLineDecorators until it contains at least minSize elements |
boolean |
generateDocumentGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
Generates bank offset GLPEs for deposits, if enabled. |
boolean |
generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySourceDetail glpeSourceDetail,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
The Cash Management doc doesn't have accounting lines, so it doesn't create general ledger pending entries for the accounting lines it doesn't have |
boolean |
getBankCashOffsetEnabled()
Helper method on document for determining whether the document can have GLPEs. |
org.kuali.rice.kns.bo.Campus |
getCampus()
|
String |
getCampusCode()
|
CashDrawer |
getCashDrawer()
Gets the cashDrawer attribute. |
String |
getCashDrawerStatus()
Derives and returns the cash drawer status for the document's workgroup |
List<Check> |
getChecks()
Gets the checks attribute. |
CashieringTransaction |
getCurrentTransaction()
Gets the currentTransaction attribute. |
Deposit |
getDeposit(int index)
Implementation creates empty Deposits as a side-effect, so that Struts' efforts to set fields of lines which haven't been created will succeed rather than causing a NullPointerException. |
List<Deposit> |
getDeposits()
|
org.kuali.rice.kns.util.KualiDecimal |
getGeneralLedgerPendingEntryAmountForDetail(GeneralLedgerPendingEntrySourceDetail postable)
A method to determine what the actual amount, based off of a GeneralLedgerPendingEntrySourceDetail, should be for the resultant GeneralLedgerPendingEntry |
List<GeneralLedgerPendingEntrySourceDetail> |
getGeneralLedgerPendingEntrySourceDetails()
Returns an empty list as this document has no GeneralLedgerPostables |
Integer |
getNextDepositLineNumber()
|
String |
getRawCashDrawerStatus()
Alias for getCashDrawerStatus which avoids the automagic formatting |
String |
getReferenceFinancialDocumentNumber()
|
protected Integer |
getUniversityFiscalYear()
Gets the fiscal year for the GLPEs generated by this document. |
boolean |
hasFinalDeposit()
|
boolean |
isDebit(GeneralLedgerPendingEntrySourceDetail postable)
Always returns true, as there are no GeneralLedgerPostables to create GLPEs |
protected void |
logState()
|
void |
prepareForSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
|
void |
processAfterRetrieve()
This is the default implementation which ensures that document note attachment references are loaded. |
Deposit |
removeDeposit(int index)
Removes and returns the Deposit at the given index. |
void |
resetCurrentTransaction()
This method creates a clean current transaction to be the new current transaction on this document |
protected org.kuali.rice.kns.bo.Campus |
retrieveCampus()
|
void |
setCampusCode(String campusCode)
Sets the campusCode attribute value. |
void |
setCashDrawer(CashDrawer cd)
Sets the cashDrawer attribute |
void |
setCashDrawerStatus(String cashDrawerStatus)
|
void |
setChecks(List<Check> checks)
Sets the checks attribute value. |
void |
setCurrentTransaction(CashieringTransaction currentTransaction)
Sets the currentTransaction attribute value. |
void |
setDeposits(List<Deposit> deposits)
Sets the current List of Deposits |
void |
setReferenceFinancialDocumentNumber(String referenceFinancialDocumentNumber)
Sets the referenceFinancialDocumentNumber attribute value. |
protected LinkedHashMap |
toStringMapper()
|
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, 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, generateSaveEvents, 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, 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.GeneralLedgerPendingEntrySource |
---|
addPendingEntry, clearAnyGeneralLedgerPendingEntries, getDocumentHeader, getFinancialDocumentTypeCode, getPostingYear |
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, prepareForSave, refreshPessimisticLocks, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization |
Methods inherited from interface org.kuali.rice.kns.bo.PersistableBusinessObject |
---|
addNote, 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 |
Field Detail |
---|
protected static final long serialVersionUID
protected static org.apache.log4j.Logger LOG
protected String campusCode
protected String referenceFinancialDocumentNumber
protected List<Deposit> deposits
protected List<Check> checks
protected CashieringTransaction currentTransaction
protected CashDrawer cashDrawer
protected org.kuali.rice.kns.bo.Campus campus
Constructor Detail |
---|
public CashManagementDocument()
Method Detail |
---|
public String getReferenceFinancialDocumentNumber()
public void setReferenceFinancialDocumentNumber(String referenceFinancialDocumentNumber)
referenceFinancialDocumentNumber
- The referenceFinancialDocumentNumber to set.public String getCampusCode()
public void setCampusCode(String campusCode)
campusCode
- The campusCode to set.public String getCashDrawerStatus()
public void setCashDrawerStatus(String cashDrawerStatus)
cashDrawerStatus
- public String getRawCashDrawerStatus()
public List<Deposit> getDeposits()
public void setDeposits(List<Deposit> deposits)
deposits
- public Deposit getDeposit(int index)
public Deposit removeDeposit(int index)
index
-
public boolean hasFinalDeposit()
public Integer getNextDepositLineNumber()
protected void extendDeposits(int minSize)
minSize
- public List buildListOfDeletionAwareLists()
buildListOfDeletionAwareLists
in interface org.kuali.rice.kns.bo.PersistableBusinessObject
buildListOfDeletionAwareLists
in class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
PersistableBusinessObjectBase.buildListOfDeletionAwareLists()
public CashDrawer getCashDrawer()
public void setCashDrawer(CashDrawer cd)
cd
- the cash drawer to setpublic CashieringTransaction getCurrentTransaction()
public void setCurrentTransaction(CashieringTransaction currentTransaction)
currentTransaction
- The currentTransaction to set.public List<Check> getChecks()
public void setChecks(List<Check> checks)
checks
- The checks to set.public void addCheck(Check check)
check
- public void doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
GeneralLedgerPostingDocumentBase
doRouteStatusChange
in interface org.kuali.rice.kns.document.Document
doRouteStatusChange
in class GeneralLedgerPostingDocumentBase
org.kuali.rice.kns.document.DocumentBase#doRouteStatusChange()
protected void logState()
public void processAfterRetrieve()
FinancialSystemTransactionalDocumentBase
processAfterRetrieve
in interface org.kuali.rice.kns.document.Document
processAfterRetrieve
in class FinancialSystemTransactionalDocumentBase
DocumentBase.processAfterRetrieve()
protected LinkedHashMap toStringMapper()
toStringMapper
in class org.kuali.rice.kns.document.DocumentBase
BusinessObjectBase.toStringMapper()
public void resetCurrentTransaction()
public void customizeExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail postable, GeneralLedgerPendingEntry explicitEntry)
org.kuali.kfs.document.GeneralLedgerPostingHelper#customizeExplicitGeneralLedgerPendingEntry(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntry)
public boolean customizeOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry)
org.kuali.kfs.document.GeneralLedgerPostingHelper#customizeOffsetGeneralLedgerPendingEntry(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntry, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntry)
public List<GeneralLedgerPendingEntrySourceDetail> getGeneralLedgerPendingEntrySourceDetails()
getGeneralLedgerPendingEntrySourceDetails
in interface GeneralLedgerPendingEntrySource
org.kuali.kfs.document.GeneralLedgerPostingHelper#getGeneralLedgerPostables()
public boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable)
isDebit
in interface GeneralLedgerPendingEntrySource
org.kuali.kfs.document.GeneralLedgerPostingHelper#isDebit(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean generateDocumentGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
generateDocumentGeneralLedgerPendingEntries
in interface GeneralLedgerPendingEntrySource
financialDocument
- submitted accounting documentsequenceHelper
- helper class to keep track of sequence of general ledger pending entries
org.kuali.kfs.document.GeneralLedgerPostingHelper#processGenerateDocumentGeneralLedgerPendingEntries(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)
protected static String createDescription(Deposit deposit, int interimDepositNumber)
deposit
- deposit from cash management documentinterimDepositNumber
-
protected Integer getUniversityFiscalYear()
AccountingPeriodService
, which suggests to me that pulling that
property up to FinancialDocument is preferable to duplicating this logic here.
public boolean generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySourceDetail glpeSourceDetail, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
generateGeneralLedgerPendingEntries
in interface GeneralLedgerPendingEntrySource
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
GeneralLedgerPendingEntrySource.generateGeneralLedgerPendingEntries(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)
public org.kuali.rice.kns.util.KualiDecimal getGeneralLedgerPendingEntryAmountForDetail(GeneralLedgerPendingEntrySourceDetail postable)
GeneralLedgerPendingEntrySource
getGeneralLedgerPendingEntryAmountForDetail
in interface GeneralLedgerPendingEntrySource
postable
- the detail line from the general ledger pending entry source to find an amount for
org.kuali.kfs.sys.document.GeneralLedgerPendingEntrySource#getGeneralLedgerPendingEntryAmountForGeneralLedgerPostable(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean getBankCashOffsetEnabled()
public void prepareForSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
prepareForSave
in interface org.kuali.rice.kns.document.Document
prepareForSave
in class GeneralLedgerPostingDocumentBase
GeneralLedgerPostingDocumentBase.prepareForSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent)
public org.kuali.rice.kns.bo.Campus getCampus()
protected org.kuali.rice.kns.bo.Campus retrieveCampus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |