|
||||||||||
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.CashReceiptFamilyBase
org.kuali.kfs.fp.document.CreditCardReceiptDocument
public class CreditCardReceiptDocument
This is the business object that represents the CreditCardReceipt document in Kuali. This is a transactional document that will eventually post transactions to the G/L. It integrates with workflow. Since a Credit Card Receipt is a one sided transactional document, only accepting funds into the university, the accounting line data will be held in the source accounting line data structure only.
Field Summary | |
---|---|
protected List<CreditCardDetail> |
creditCardReceipts
|
protected Integer |
nextCcCrLineNumber
|
protected org.kuali.rice.kns.util.KualiDecimal |
totalCreditCardAmount
|
Fields inherited from class org.kuali.kfs.fp.document.CashReceiptFamilyBase |
---|
campusLocationCode, capitalAssetInformation, depositDate, LOG |
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 | |
---|---|
CreditCardReceiptDocument()
Default constructor that calls super. |
Method Summary | |
---|---|
void |
addCreditCardReceipt(CreditCardDetail creditCardReceiptDetail)
Adds a new credit card receipt to the list. |
List |
buildListOfDeletionAwareLists()
Overrides super to call super and then also add in the new list of credit card receipts that have to be managed. |
org.kuali.rice.kns.util.KualiDecimal |
calculateCreditCardReceiptTotal()
This method returns the sum of all of the credit card receipts for this document. |
boolean |
documentPerformsSufficientFundsCheck()
Documents in the CashReceiptFamily do not perform Sufficient Funds checking |
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 |
generateDocumentGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
Generates bank offset GLPEs for deposits, if enabled. |
CreditCardDetail |
getCreditCardReceipt(int index)
Retrieve a particular credit card receipt at a given index in the list of credit card receipts. |
List<CreditCardDetail> |
getCreditCardReceipts()
Gets the list of credit card receipts which is a list of CreditCardDetail business objects. |
String |
getCurrencyFormattedTotalCreditCardAmount()
This method returns the credit card total amount as a currency formatted string. |
Integer |
getNextCcCrLineNumber()
|
protected Bank |
getOffsetBank()
Returns the default bank code for Credit Card Receipt documents. |
org.kuali.rice.kns.util.KualiDecimal |
getTotalCreditCardAmount()
Gets the total credit card amount. |
org.kuali.rice.kns.util.KualiDecimal |
getTotalDollarAmount()
This method returns the overall total of the document - the credit card total. |
void |
postProcessSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
|
void |
prepareNewCreditCardReceipt(CreditCardDetail creditCardReceiptDetail)
This is a helper method that automatically populates document specfic information into the credit card receipt (CreditCardDetail) instance. |
void |
removeCreditCardReceipt(int index)
This method removes a credit card receipt from the list and updates the total appropriately. |
void |
setCreditCardReceipts(List<CreditCardDetail> creditCardReceipts)
Sets the credit card receipts list. |
void |
setNextCcCrLineNumber(Integer nextCcCrLineNumber)
|
void |
setTotalCreditCardAmount(org.kuali.rice.kns.util.KualiDecimal creditCardAmount)
Sets the total credit card amount which is the sum of all credit card receipts on this document. |
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, 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.rice.kns.document.Copyable |
---|
toCopy |
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 List<CreditCardDetail> creditCardReceipts
protected Integer nextCcCrLineNumber
protected org.kuali.rice.kns.util.KualiDecimal totalCreditCardAmount
Constructor Detail |
---|
public CreditCardReceiptDocument()
Method Detail |
---|
public boolean documentPerformsSufficientFundsCheck()
CashReceiptFamilyBase
documentPerformsSufficientFundsCheck
in class CashReceiptFamilyBase
GeneralLedgerPostingDocumentBase.documentPerformsSufficientFundsCheck()
public org.kuali.rice.kns.util.KualiDecimal getTotalCreditCardAmount()
public String getCurrencyFormattedTotalCreditCardAmount()
public void setTotalCreditCardAmount(org.kuali.rice.kns.util.KualiDecimal creditCardAmount)
creditCardAmount
- public List<CreditCardDetail> getCreditCardReceipts()
public void setCreditCardReceipts(List<CreditCardDetail> creditCardReceipts)
creditCardReceipts
- public void addCreditCardReceipt(CreditCardDetail creditCardReceiptDetail)
creditCardReceiptDetail
- public final void prepareNewCreditCardReceipt(CreditCardDetail creditCardReceiptDetail)
creditCardReceiptDetail
- public CreditCardDetail getCreditCardReceipt(int index)
index
-
public void removeCreditCardReceipt(int index)
index
- public Integer getNextCcCrLineNumber()
public void setNextCcCrLineNumber(Integer nextCcCrLineNumber)
nextCcCrLineNumber
- public org.kuali.rice.kns.util.KualiDecimal getTotalDollarAmount()
getTotalDollarAmount
in interface AmountTotaling
getTotalDollarAmount
in class AccountingDocumentBase
AccountingDocumentBase.getTotalDollarAmount()
public org.kuali.rice.kns.util.KualiDecimal calculateCreditCardReceiptTotal()
public List buildListOfDeletionAwareLists()
buildListOfDeletionAwareLists
in interface org.kuali.rice.kns.bo.PersistableBusinessObject
buildListOfDeletionAwareLists
in class CashReceiptFamilyBase
PersistableBusinessObjectBase.buildListOfDeletionAwareLists()
public boolean generateDocumentGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
generateDocumentGeneralLedgerPendingEntries
in interface GeneralLedgerPendingEntrySource
generateDocumentGeneralLedgerPendingEntries
in class AccountingDocumentBase
financialDocument
- submitted accounting documentsequenceHelper
- helper class for keep track of sequence for GLPEs
org.kuali.rice.kns.rule.GenerateGeneralLedgerDocumentPendingEntriesRule#processGenerateDocumentGeneralLedgerPendingEntries(org.kuali.rice.kns.document.FinancialDocument,org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)
protected Bank getOffsetBank()
public void postProcessSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
postProcessSave
in interface org.kuali.rice.kns.document.Document
postProcessSave
in class org.kuali.rice.kns.document.DocumentBase
public void doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
GeneralLedgerPostingDocumentBase
doRouteStatusChange
in interface org.kuali.rice.kns.document.Document
doRouteStatusChange
in class GeneralLedgerPostingDocumentBase
Document#doRouteStatusChange()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |