public class LedgerPostingDocumentBase extends FinancialSystemTransactionalDocumentBase implements LedgerPostingDocument
| Modifier and Type | Field and Description |
|---|---|
protected AccountingPeriod |
accountingPeriod |
protected static AccountingPeriodService |
accountingPeriodService |
protected boolean |
checkPostingYearForCopy |
protected static org.kuali.rice.kns.service.DataDictionaryService |
dataDictionaryService |
protected static org.kuali.rice.core.api.datetime.DateTimeService |
dateTimeService |
protected String |
postingPeriodCode |
protected Integer |
postingYear |
UPDATE_TOTAL_AMOUNT_IN_POST_PROCESSING_PARAMETER_NAME| Constructor and Description |
|---|
LedgerPostingDocumentBase()
Constructs a LedgerPostingDocumentBase.java.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createInitialAccountingPeriod()
Used during initialization to provide a base
. |
AccountingPeriod |
getAccountingPeriod()
This method retrieves the accounting period associated with this document.
|
String |
getAccountingPeriodCompositeString()
Composite of postingPeriodCode and postingYear
|
static AccountingPeriodService |
getAccountingPeriodService() |
static org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService() |
static org.kuali.rice.core.api.datetime.DateTimeService |
getDateTimeService() |
String |
getFinancialDocumentTypeCode()
Returns the financial document type code for the given document, using the DataDictionaryService
|
String |
getPostingPeriodCode()
Gets the postingPeriodCode attribute.
|
Integer |
getPostingYear() |
AccountingPeriod |
retrieveCurrentAccountingPeriod()
Finds the accounting period for the current date
|
void |
setAccountingPeriod(AccountingPeriod accountingPeriod)
This method sets the accounting period associated with this document.
|
void |
setAccountingPeriodCompositeString(String accountingPeriodString)
Set accountingPeriod based on incoming paramater.
|
void |
setPostingPeriodCode(String postingPeriodCode)
Sets the postingPeriodCode attribute value.
|
void |
setPostingYear(Integer postingYear)
Sets the posting year for this document
|
void |
toCopy()
If we've copied, we need to update the posting period and year
|
answerSplitNodeQuestion, doRouteLevelChange, doRouteStatusChange, getApplicationDocumentStatus, getBusinessObjectService, getFinancialSystemDocumentHeader, getFinancialSystemDocumentService, getParameterService, prepareForSave, processAfterRetrieve, setApplicationDocumentStatus, setDocumentHeader, toErrorCorrection, updateAndSaveAppDocStatusgetAllowsCopy, isSessionDocumentaddCopyErrorDocumentNote, addNote, addPessimisticLock, afterActionTaken, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, createPropertySerializabilityEvaluator, doActionTaken, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAttachmentService, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNonLockingActionTakenCodes, getNote, getNotes, getNoteService, getNoteTarget, getNoteType, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, logErrors, populateDocumentForRouting, postLoad, postProcessSave, prepareForSave, refresh, refreshIfEmpty, refreshPessimisticLocks, refreshReferenceObject, removeNote, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentNumber, setNewDocumentHeader, setNotes, setPessimisticLocks, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerializationafterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refreshNonUpdateableReferences, setExtension, setNewCollectionRecord, setObjectId, setVersionNumberclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitanswerSplitNodeQuestion, getFinancialSystemDocumentHeaderaddNote, 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, wrapDocumentWithMetadataForXmlSerializationprotected static transient org.kuali.rice.core.api.datetime.DateTimeService dateTimeService
protected static transient AccountingPeriodService accountingPeriodService
protected static transient org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
protected AccountingPeriod accountingPeriod
protected Integer postingYear
protected String postingPeriodCode
protected boolean checkPostingYearForCopy
public LedgerPostingDocumentBase()
public void createInitialAccountingPeriod()
AccountingPeriod.
This is a hack right now because its intended to be set by the
AccountingPeriodService
public AccountingPeriod retrieveCurrentAccountingPeriod()
public Integer getPostingYear()
getPostingYear in interface LedgerPostingDocumentLedgerPostingDocument.getPostingYear()public void setPostingYear(Integer postingYear)
LedgerPostingDocumentsetPostingYear in interface LedgerPostingDocumentLedgerPostingDocument.setPostingYear(java.lang.Integer)public String getPostingPeriodCode()
LedgerPostingDocumentAccountingPeriod Primary Key.getPostingPeriodCode in interface LedgerPostingDocumentLedgerPostingDocument.getPostingPeriodCode()public void setPostingPeriodCode(String postingPeriodCode)
LedgerPostingDocumentAccountingPeriod Primary Key.setPostingPeriodCode in interface LedgerPostingDocumentpostingPeriodCode - The postingPeriodCode to set.LedgerPostingDocument.setPostingPeriodCode(java.lang.String)public AccountingPeriod getAccountingPeriod()
LedgerPostingDocumentgetAccountingPeriod in interface LedgerPostingDocumentLedgerPostingDocument.getAccountingPeriod()public void setAccountingPeriod(AccountingPeriod accountingPeriod)
LedgerPostingDocumentsetAccountingPeriod in interface LedgerPostingDocumentLedgerPostingDocument.setAccountingPeriod(AccountingPeriod)public void toCopy() throws org.kuali.rice.kew.api.exception.WorkflowException, IllegalStateException
toCopy in class FinancialSystemTransactionalDocumentBaseorg.kuali.rice.kew.api.exception.WorkflowExceptionIllegalStateExceptionDocumentBase.toCopy()public String getFinancialDocumentTypeCode()
public static org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public static org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()
public static AccountingPeriodService getAccountingPeriodService()
public String getAccountingPeriodCompositeString()
public void setAccountingPeriodCompositeString(String accountingPeriodString)
accountingPeriodString - in the form of [period][year]Copyright © 2004–2015 The Kuali Foundation. All rights reserved.