public class CreditCardReceiptDocument extends CashReceiptFamilyBase implements org.kuali.rice.krad.document.Copyable, AmountTotaling
Modifier and Type | Field and Description |
---|---|
protected Bank |
bank |
static String |
CREDIT_CARD_RECEIPT_DOCUMENT_TYPE_CODE |
protected String |
creditCardReceiptBankCode |
protected List<CreditCardDetail> |
creditCardReceipts |
protected Integer |
nextCcCrLineNumber |
protected org.kuali.rice.core.api.util.type.KualiDecimal |
totalCreditCardAmount |
campusLocationCode, depositDate, LOG
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 |
---|
CreditCardReceiptDocument()
Default constructor that calls super.
|
Modifier and Type | Method and Description |
---|---|
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.core.api.util.type.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.framework.postprocessor.DocumentRouteStatusChange 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.
|
Bank |
getBank()
Gets the bank attribute.
|
CreditCardDetail |
getCreditCardReceipt(int index)
Retrieve a particular credit card receipt at a given index in the list of credit card receipts.
|
String |
getCreditCardReceiptBankCode()
Gets the creditCardReceiptBankCode attribute.
|
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.core.api.util.type.KualiDecimal |
getTotalCreditCardAmount()
Gets the total credit card amount.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalDollarAmount()
This method returns the overall total of the document - the credit card total.
|
void |
initiateDocument()
Assigns default bank code
|
void |
postProcessSave(org.kuali.rice.krad.rules.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 |
setBank(Bank bank)
Sets the bank attribute value.
|
void |
setCreditCardReceiptBankCode(String creditCardReceiptBankCode)
Sets the creditCardReceiptBankCode attribute value.
|
void |
setCreditCardReceipts(List<CreditCardDetail> creditCardReceipts)
Sets the credit card receipts list.
|
void |
setDefaultBankCode()
Sets the bank code for a new document to the setup default for the Non Check Disbursement document.
|
void |
setNextCcCrLineNumber(Integer nextCcCrLineNumber) |
void |
setTotalCreditCardAmount(org.kuali.rice.core.api.util.type.KualiDecimal creditCardAmount)
Sets the total credit card amount which is the sum of all credit card receipts on this document.
|
customizeExplicitGeneralLedgerPendingEntry, getCampusLocationCode, getCapitalAssetInformation, getCapitalAssetManagementModuleService, getDepositDate, getSourceAccountingLinesSectionTitle, getSourceTotal, getTargetAccountingLinesSectionTitle, getTargetTotal, isDebit, setCampusLocationCode, setCapitalAssetInformation, setDepositDate
getCapitalAccountingLines, setCapitalAccountingLines
getNextCapitalAssetLineNumber, setNextCapitalAssetLineNumber
addSourceAccountingLine, addTargetAccountingLine, buildAccountingLineMap, copyAccountingLines, customizeOffsetGeneralLedgerPendingEntry, generateEvents, generateGeneralLedgerPendingEntries, generateSaveEvents, getAccountingLineParser, getDataDictionaryEntry, getDocumentClassForAccountingLineValueAllowedValidation, getEntryValue, getGeneralLedgerPendingEntryAmountForDetail, getGeneralLedgerPendingEntrySourceDetails, getNextSourceLineNumber, getNextTargetLineNumber, getPersistedSourceAccountingLinesForComparison, getPersistedTargetAccountingLinesForComparison, getSourceAccountingLine, getSourceAccountingLineClass, getSourceAccountingLineEntryName, getSourceAccountingLines, getSourceAccountingLinesForComparison, getTargetAccountingLine, getTargetAccountingLineClass, getTargetAccountingLineEntryName, getTargetAccountingLines, getTargetAccountingLinesForComparison, isDocumentFinalOrProcessed, prepareForSave, processExplicitGeneralLedgerPendingEntry, processOffsetGeneralLedgerPendingEntry, setNextSourceLineNumber, setNextTargetLineNumber, setSourceAccountingLines, setTargetAccountingLines, toCopy, toErrorCorrection, updatePostingYearForAccountingLines
addPendingEntry, changeGeneralLedgerPendingEntriesApprovedStatusCode, checkSufficientFunds, clearAnyGeneralLedgerPendingEntries, 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
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
public static final String CREDIT_CARD_RECEIPT_DOCUMENT_TYPE_CODE
protected List<CreditCardDetail> creditCardReceipts
protected Integer nextCcCrLineNumber
protected org.kuali.rice.core.api.util.type.KualiDecimal totalCreditCardAmount
protected String creditCardReceiptBankCode
public CreditCardReceiptDocument()
public void setDefaultBankCode()
public boolean documentPerformsSufficientFundsCheck()
CashReceiptFamilyBase
documentPerformsSufficientFundsCheck
in class CashReceiptFamilyBase
GeneralLedgerPostingDocumentBase.documentPerformsSufficientFundsCheck()
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalCreditCardAmount()
public String getCurrencyFormattedTotalCreditCardAmount()
public void setTotalCreditCardAmount(org.kuali.rice.core.api.util.type.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.core.api.util.type.KualiDecimal getTotalDollarAmount()
getTotalDollarAmount
in interface AmountTotaling
getTotalDollarAmount
in class AccountingDocumentBase
AccountingDocumentBase.getTotalDollarAmount()
public org.kuali.rice.core.api.util.type.KualiDecimal calculateCreditCardReceiptTotal()
public List buildListOfDeletionAwareLists()
buildListOfDeletionAwareLists
in interface org.kuali.rice.krad.bo.PersistableBusinessObject
buildListOfDeletionAwareLists
in class CapitalAssetInformationDocumentBase
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 GLPEsorg.kuali.rice.krad.rule.GenerateGeneralLedgerDocumentPendingEntriesRule#processGenerateDocumentGeneralLedgerPendingEntries(org.kuali.rice.krad.document.FinancialDocument,org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)
public void initiateDocument()
protected Bank getOffsetBank()
public String getCreditCardReceiptBankCode()
public void setCreditCardReceiptBankCode(String creditCardReceiptBankCode)
creditCardReceiptBankCode
- The creditCardReceiptBankCode to set.public void setBank(Bank bank)
bank
- The bank to set.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
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()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.