|
||||||||||
| 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.ProcurementCardDocument
public class ProcurementCardDocument
This is the Procurement Card Document Class. The procurement cards distributes expenses from clearing accounts. It is a two-sided document, but only target lines are displayed because source lines cannot be changed. Transaction, Card, and Vendor information are associated with the document to help better distribute the expense.
| Field Summary | |
|---|---|
protected CapitalAssetInformation |
capitalAssetInformation
|
protected CapitalAssetManagementModuleService |
capitalAssetManagementModuleService
|
protected static org.apache.log4j.Logger |
LOG
|
protected ProcurementCardHolder |
procurementCardHolder
|
protected List |
transactionEntries
|
| 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 | |
|---|---|
ProcurementCardDocument()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addSourceAccountingLine(SourceAccountingLine sourceLine)
Override to set the accounting line in the transaction detail object. |
void |
addTargetAccountingLine(TargetAccountingLine targetLine)
Override to set the accounting line in the transaction detail object. |
List |
buildListOfDeletionAwareLists()
|
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. |
CapitalAssetInformation |
getCapitalAssetInformation()
Gets the capitalAssetInformation attribute. |
protected CapitalAssetManagementModuleService |
getCapitalAssetManagementModuleService()
|
ProcurementCardHolder |
getProcurementCardHolder()
Gets the procurementCardHolder attribute. |
Class |
getSourceAccountingLineClass()
Returns the default Source accounting line class. |
List |
getSourceAccountingLines()
Override to get source accounting lines out of transactions |
Class |
getTargetAccountingLineClass()
Returns the default Target accounting line class. |
List |
getTargetAccountingLines()
Override to get target accounting lines out of transactions |
List |
getTransactionEntries()
|
boolean |
isDebit(GeneralLedgerPendingEntrySourceDetail postable)
On procurement card documents, positive source amounts are credits, negative source amounts are debits. |
void |
postProcessSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
|
void |
removeTargetAccountingLine(int index)
Removes the target accounting line at the given index from the transaction detail entry. |
void |
setCapitalAssetInformation(CapitalAssetInformation capitalAssetInformation)
Deprecated. |
void |
setProcurementCardHolder(ProcurementCardHolder procurementCardHolder)
Sets the procurementCardHolder attribute value. |
void |
setTransactionEntries(List transactionEntries)
|
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, 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, 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.AmountTotaling |
|---|
getTotalDollarAmount |
| 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, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAllowsCopy, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, populateDocumentForRouting, prepareForSave, processAfterRetrieve, 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 |
| Methods inherited from interface org.kuali.kfs.sys.document.GeneralLedgerPendingEntrySource |
|---|
addPendingEntry, clearAnyGeneralLedgerPendingEntries, getDocumentHeader, getFinancialDocumentTypeCode, getPostingYear |
| Field Detail |
|---|
protected static org.apache.log4j.Logger LOG
protected ProcurementCardHolder procurementCardHolder
protected List transactionEntries
protected transient CapitalAssetInformation capitalAssetInformation
protected transient CapitalAssetManagementModuleService capitalAssetManagementModuleService
| Constructor Detail |
|---|
public ProcurementCardDocument()
| Method Detail |
|---|
public List buildListOfDeletionAwareLists()
buildListOfDeletionAwareLists in interface org.kuali.rice.kns.bo.PersistableBusinessObjectbuildListOfDeletionAwareLists in class AccountingDocumentBaseAccountingDocumentBase.buildListOfDeletionAwareLists()public List getTransactionEntries()
public void setTransactionEntries(List transactionEntries)
transactionEntries - The transactionEntries to set.public ProcurementCardHolder getProcurementCardHolder()
public void setProcurementCardHolder(ProcurementCardHolder procurementCardHolder)
procurementCardHolder - The procurementCardHolder to set.public void removeTargetAccountingLine(int index)
index - public void addSourceAccountingLine(SourceAccountingLine sourceLine)
addSourceAccountingLine in interface AccountingDocumentaddSourceAccountingLine in class AccountingDocumentBaseAccountingDocument.addSourceAccountingLine(SourceAccountingLine)public void addTargetAccountingLine(TargetAccountingLine targetLine)
addTargetAccountingLine in interface AccountingDocumentaddTargetAccountingLine in class AccountingDocumentBaseAccountingDocument.addTargetAccountingLine(TargetAccountingLine)public List getSourceAccountingLines()
getSourceAccountingLines in interface AccountingDocumentgetSourceAccountingLines in class AccountingDocumentBaseAccountingDocument.getSourceAccountingLines()public List getTargetAccountingLines()
getTargetAccountingLines in interface AccountingDocumentgetTargetAccountingLines in class AccountingDocumentBaseAccountingDocument.getTargetAccountingLines()public Class getSourceAccountingLineClass()
AccountingDocumentBase
getSourceAccountingLineClass in interface AccountingDocumentgetSourceAccountingLineClass in class AccountingDocumentBaseAccountingDocumentBase.getSourceAccountingLineClass()public Class getTargetAccountingLineClass()
AccountingDocumentBase
getTargetAccountingLineClass in interface AccountingDocumentgetTargetAccountingLineClass in class AccountingDocumentBaseAccountingDocumentBase.getTargetAccountingLineClass()protected LinkedHashMap toStringMapper()
toStringMapper in class org.kuali.rice.kns.document.DocumentBaseBusinessObjectBase.toStringMapper()public void doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
GeneralLedgerPostingDocumentBase
doRouteStatusChange in interface org.kuali.rice.kns.document.DocumentdoRouteStatusChange in class GeneralLedgerPostingDocumentBaseDocument#doRouteStatusChange()
public boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable)
throws IllegalStateException
isDebit in interface GeneralLedgerPendingEntrySourceisDebit in class AccountingDocumentBasetransactionalDocument - The document the accounting line being checked is located in.accountingLine - The accounting line being analyzed.
Throws - an IllegalStateException if one of the following rules are violated: the accounting line amount is zero or the
accounting line is not an expense or income accounting line.
IllegalStateExceptionorg.kuali.module.financial.rules.FinancialDocumentRuleBase#isDebit(FinancialDocument,
org.kuali.rice.kns.bo.AccountingLine),
org.kuali.kfs.sys.document.validation.impl.AccountingDocumentRuleBase.IsDebitUtils#isDebitConsideringSection(AccountingDocumentRuleBase,
AccountingDocument, AccountingLine)public CapitalAssetInformation getCapitalAssetInformation()
getCapitalAssetInformation in interface CapitalAssetEditable@Deprecated public void setCapitalAssetInformation(CapitalAssetInformation capitalAssetInformation)
setCapitalAssetInformation in interface CapitalAssetEditablecapitalAssetInformation - The capitalAssetInformation to set.public void postProcessSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
postProcessSave in interface org.kuali.rice.kns.document.DocumentpostProcessSave in class org.kuali.rice.kns.document.DocumentBaseDocumentBase.postProcessSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent)protected CapitalAssetManagementModuleService getCapitalAssetManagementModuleService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||