public class ProcurementCardDocument extends CapitalAccountingLinesDocumentBase implements AmountTotaling, CapitalAssetEditable
Modifier and Type | Field and Description |
---|---|
protected CapitalAssetManagementModuleService |
capitalAssetManagementModuleService |
protected static org.apache.log4j.Logger |
LOG |
protected ProcurementCardTargetAccountingLine |
newTargetLine |
protected ProcurementCardHolder |
procurementCardHolder |
protected List |
transactionEntries |
capitalAccountingLines
capitalAssetInformation, nextCapitalAssetLineNumber
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 |
---|
ProcurementCardDocument()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
doRouteStatusChange(org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange statusChangeEvent)
Override to call super and then iterate over all GLPEs and update the approved code appropriately.
|
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.krad.rules.rule.event.KualiDocumentEvent event) |
void |
removeTargetAccountingLine(int index)
Removes the target accounting line at the given index from the transaction detail entry.
|
void |
setProcurementCardHolder(ProcurementCardHolder procurementCardHolder)
Sets the procurementCardHolder attribute value.
|
void |
setTransactionEntries(List transactionEntries) |
getCapitalAccountingLines, setCapitalAccountingLines
buildListOfDeletionAwareLists, getCapitalAssetInformation, getNextCapitalAssetLineNumber, setCapitalAssetInformation, setNextCapitalAssetLineNumber
buildAccountingLineMap, copyAccountingLines, customizeExplicitGeneralLedgerPendingEntry, customizeOffsetGeneralLedgerPendingEntry, generateDocumentGeneralLedgerPendingEntries, generateEvents, generateGeneralLedgerPendingEntries, generateSaveEvents, getAccountingLineParser, getDataDictionaryEntry, getDocumentClassForAccountingLineValueAllowedValidation, getEntryValue, getGeneralLedgerPendingEntryAmountForDetail, getGeneralLedgerPendingEntrySourceDetails, getNextSourceLineNumber, getNextTargetLineNumber, getPersistedSourceAccountingLinesForComparison, getPersistedTargetAccountingLinesForComparison, getSourceAccountingLine, getSourceAccountingLineEntryName, getSourceAccountingLinesForComparison, getSourceAccountingLinesSectionTitle, getSourceTotal, getTargetAccountingLine, getTargetAccountingLineEntryName, getTargetAccountingLinesForComparison, getTargetAccountingLinesSectionTitle, getTargetTotal, getTotalDollarAmount, isDocumentFinalOrProcessed, prepareForSave, processExplicitGeneralLedgerPendingEntry, processOffsetGeneralLedgerPendingEntry, setNextSourceLineNumber, setNextTargetLineNumber, setSourceAccountingLines, setTargetAccountingLines, toCopy, toErrorCorrection, updatePostingYearForAccountingLines
addPendingEntry, changeGeneralLedgerPendingEntriesApprovedStatusCode, checkSufficientFunds, clearAnyGeneralLedgerPendingEntries, documentPerformsSufficientFundsCheck, 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, 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
getTotalDollarAmount
getCapitalAssetInformation, setCapitalAssetInformation
checkSufficientFunds, getGeneralLedgerPendingEntries, getGeneralLedgerPendingEntry, getPendingLedgerEntriesForSufficientFundsChecking, setGeneralLedgerPendingEntries
getAccountingPeriod, getPostingPeriodCode, getPostingYear, setAccountingPeriod, setPostingPeriodCode, setPostingYear
answerSplitNodeQuestion, getFinancialSystemDocumentHeader
addNote, addPessimisticLock, afterActionTaken, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, doActionTaken, doRouteLevelChange, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAllowsCopy, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNote, getNotes, getNoteTarget, getNoteType, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, populateDocumentForRouting, prepareForSave, processAfterRetrieve, refreshPessimisticLocks, removeNote, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, setNotes, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization
getExtension, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
addPendingEntry, clearAnyGeneralLedgerPendingEntries, getDocumentHeader, getFinancialDocumentTypeCode, getFinancialSystemDocumentHeader, getPostingYear
protected static org.apache.log4j.Logger LOG
protected ProcurementCardHolder procurementCardHolder
protected List transactionEntries
protected ProcurementCardTargetAccountingLine newTargetLine
protected transient CapitalAssetManagementModuleService capitalAssetManagementModuleService
public ProcurementCardDocument()
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 AccountingDocument
addSourceAccountingLine
in class AccountingDocumentBase
AccountingDocument.addSourceAccountingLine(SourceAccountingLine)
public void addTargetAccountingLine(TargetAccountingLine targetLine)
addTargetAccountingLine
in interface AccountingDocument
addTargetAccountingLine
in class AccountingDocumentBase
AccountingDocument.addTargetAccountingLine(TargetAccountingLine)
public List getSourceAccountingLines()
getSourceAccountingLines
in interface AccountingDocument
getSourceAccountingLines
in class AccountingDocumentBase
AccountingDocument.getSourceAccountingLines()
public List getTargetAccountingLines()
getTargetAccountingLines
in interface AccountingDocument
getTargetAccountingLines
in class AccountingDocumentBase
AccountingDocument.getTargetAccountingLines()
public Class getSourceAccountingLineClass()
AccountingDocumentBase
getSourceAccountingLineClass
in interface AccountingDocument
getSourceAccountingLineClass
in class AccountingDocumentBase
AccountingDocumentBase.getSourceAccountingLineClass()
public Class getTargetAccountingLineClass()
AccountingDocumentBase
getTargetAccountingLineClass
in interface AccountingDocument
getTargetAccountingLineClass
in class AccountingDocumentBase
AccountingDocumentBase.getTargetAccountingLineClass()
public void doRouteStatusChange(org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange statusChangeEvent)
GeneralLedgerPostingDocumentBase
doRouteStatusChange
in interface org.kuali.rice.krad.document.Document
doRouteStatusChange
in class CapitalAssetInformationDocumentBase
org.kuali.ole.sys.document.GeneralLedgerPostingDocumentBase#doRouteStatusChange()
public boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable) throws IllegalStateException
isDebit
in interface GeneralLedgerPendingEntrySource
isDebit
in class CapitalAssetInformationDocumentBase
transactionalDocument
- 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.IllegalStateException
org.kuali.module.financial.rules.FinancialDocumentRuleBase#isDebit(FinancialDocument,
org.kuali.rice.krad.bo.AccountingLine)
,
org.kuali.ole.sys.document.validation.impl.AccountingDocumentRuleBase.IsDebitUtils#isDebitConsideringSection(AccountingDocumentRuleBase,
AccountingDocument, AccountingLine)
public void postProcessSave(org.kuali.rice.krad.rules.rule.event.KualiDocumentEvent event)
postProcessSave
in interface org.kuali.rice.krad.document.Document
postProcessSave
in class org.kuali.rice.krad.document.DocumentBase
org.kuali.rice.krad.document.DocumentBase#postProcessSave(org.kuali.rice.krad.rule.event.KualiDocumentEvent)
protected CapitalAssetManagementModuleService getCapitalAssetManagementModuleService()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.