org.kuali.kfs.module.ar.document
Class CustomerInvoiceWriteoffDocument

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kns.document.DocumentBase
              extended by org.kuali.rice.kns.document.TransactionalDocumentBase
                  extended by org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase
                      extended by org.kuali.kfs.sys.document.LedgerPostingDocumentBase
                          extended by org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase
                              extended by org.kuali.kfs.module.ar.document.CustomerInvoiceWriteoffDocument
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, AmountTotaling, FinancialSystemTransactionalDocument, GeneralLedgerPendingEntrySource, GeneralLedgerPostingDocument, LedgerPostingDocument, org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.bo.PersistableBusinessObject, org.kuali.rice.kns.document.Document, org.kuali.rice.kns.document.SessionDocument, org.kuali.rice.kns.document.TransactionalDocument

public class CustomerInvoiceWriteoffDocument
extends GeneralLedgerPostingDocumentBase
implements GeneralLedgerPendingEntrySource, AmountTotaling

See Also:
Serialized Form

Field Summary
protected  Account account
           
protected  String accountNumber
           
protected  AccountsReceivableDocumentHeader accountsReceivableDocumentHeader
           
protected  Chart chartOfAccounts
           
protected  String chartOfAccountsCode
           
protected  CustomerInvoiceDocument customerInvoiceDocument
           
protected  String customerNote
           
protected  String financialDocumentReferenceInvoiceNumber
           
protected  ObjectCode financialObject
           
protected  String financialObjectCode
           
protected  SubObjectCode financialSubObject
           
protected  String financialSubObjectCode
           
protected  org.kuali.rice.kns.util.KualiDecimal invoiceWriteoffAmount
           
protected  String organizationReferenceIdentifier
           
protected  ProjectCode project
           
protected  String projectCode
           
protected static String REQUIRES_APPROVAL_NODE
           
protected  String statusCode
           
protected  SubAccount subAccount
           
protected  String subAccountNumber
           
 
Fields inherited from class org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase
generalLedgerPendingEntries, LOG
 
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
CustomerInvoiceWriteoffDocument()
           
 
Method Summary
protected  void addReceivableGLPEs(GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntrySourceDetail glpeSourceDetail, boolean hasClaimOnCashOffset, org.kuali.rice.kns.util.KualiDecimal amount)
          This method creates the receivable GLPEs for customer invoice details using the remaining amount
protected  void addSalesTaxGLPEs(GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntrySourceDetail glpeSourceDetail, boolean hasWriteoffTaxClaimOnCashOffset, org.kuali.rice.kns.util.KualiDecimal amount)
           
protected  void addWriteoffGLPEs(GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntrySourceDetail glpeSourceDetail, boolean hasClaimOnCashOffset, org.kuali.rice.kns.util.KualiDecimal amount)
          This method adds writeoff GLPE's for the customer invoice details using the remaining amount.
 boolean answerSplitNodeQuestion(String nodeName)
          Answers true when invoice write off amount is greater than default approved amount ($50???)
 void clearInitFields()
          Clear out the initially populated fields.
 void doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
          When document is processed do the following: 1) Apply amounts to writeoff invoice 2) Mark off invoice indiciator
 boolean generateDocumentGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
          Creates any GeneralLedgerPostingEntry's that are based on a document, not those based on GeneralLedgerPendingEntrySourceDetail entries
 boolean generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySourceDetail glpeSourceDetail, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
          This method creates the following GLPE's for the customer invoice writeoff 1.
 Account getAccount()
           
 String getAccountNumber()
           
 AccountsReceivableDocumentHeader getAccountsReceivableDocumentHeader()
           
 Chart getChartOfAccounts()
           
 String getChartOfAccountsCode()
           
protected  org.kuali.rice.kns.util.KualiDecimal getCustomerInvoiceDetailOpenPretaxAmount(CustomerInvoiceDetail customerInvoiceDetail)
           
 List<CustomerInvoiceDetail> getCustomerInvoiceDetailsForWriteoff()
          This method returns all the applicable invoice details for writeoff.
 CustomerInvoiceDocument getCustomerInvoiceDocument()
           
 String getCustomerNote()
          Gets the customerNote attribute.
 String getFinancialDocumentReferenceInvoiceNumber()
           
 ObjectCode getFinancialObject()
           
 String getFinancialObjectCode()
           
 SubObjectCode getFinancialSubObject()
           
 String getFinancialSubObjectCode()
           
 org.kuali.rice.kns.util.KualiDecimal getGeneralLedgerPendingEntryAmountForDetail(GeneralLedgerPendingEntrySourceDetail glpeSourceDetail)
          A method to determine what the actual amount, based off of a GeneralLedgerPendingEntrySourceDetail, should be for the resultant GeneralLedgerPendingEntry
 List<GeneralLedgerPendingEntrySourceDetail> getGeneralLedgerPendingEntrySourceDetails()
          Returns a list of any GeneralLedgerPostables this helper has, to create GeneralLedgerPendingEntries
 org.kuali.rice.kns.util.KualiDecimal getInvoiceWriteoffAmount()
          This method returns the total amount to be written off
 String getOrganizationReferenceIdentifier()
           
 ProjectCode getProject()
           
 String getProjectCode()
           
 String getStatusCode()
           
 SubAccount getSubAccount()
           
 String getSubAccountNumber()
           
 org.kuali.rice.kns.util.KualiDecimal getTotalDollarAmount()
          This method returns the total dollar amount for the document.
 List<Long> getWorkflowEngineDocumentIdsToLock()
           
 void initiateDocument()
          Initializes the values for a new document.
 boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable)
          This method determines if the passed in GeneralLedgerPendingEntrySourceDetail is a debit or not.
 void populateCustomerNote()
           
 void prepareForSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
          do all the calculations before the document gets saved gets called for 'Submit', 'Save', and 'Blanket Approved'
 void setAccount(Account account)
           
 void setAccountNumber(String accountNumber)
           
 void setAccountsReceivableDocumentHeader(AccountsReceivableDocumentHeader accountsReceivableDocumentHeader)
           
 void setChartOfAccounts(Chart chartOfAccounts)
           
 void setChartOfAccountsCode(String chartOfAccountsCode)
           
 void setCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)
           
 void setCustomerNote(String customerNote)
          Sets the customerNote attribute value.
 void setFinancialDocumentReferenceInvoiceNumber(String financialDocumentReferenceInvoiceNumber)
           
 void setFinancialObject(ObjectCode financialObject)
           
 void setFinancialObjectCode(String financialObjectCode)
           
 void setFinancialSubObject(SubObjectCode financialSubObject)
           
 void setFinancialSubObjectCode(String financialSubObjectCode)
           
 void setInvoiceWriteoffAmount(org.kuali.rice.kns.util.KualiDecimal invoiceWriteoffAmount)
           
 void setOrganizationReferenceIdentifier(String organizationReferenceIdentifier)
           
 void setProject(ProjectCode project)
           
 void setProjectCode(String projectCode)
           
 void setStatusCode(String statusCode)
           
 void setSubAccount(SubAccount subAccount)
           
 void setSubAccountNumber(String subAccountNumber)
           
 
Methods inherited from class org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase
addPendingEntry, changeGeneralLedgerPendingEntriesApprovedStatusCode, checkSufficientFunds, clearAnyGeneralLedgerPendingEntries, documentPerformsSufficientFundsCheck, getGeneralLedgerPendingEntries, getGeneralLedgerPendingEntry, getPendingLedgerEntriesForSufficientFundsChecking, removeGeneralLedgerPendingEntries, setGeneralLedgerPendingEntries, toCopy, toErrorCorrection
 
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
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, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNonLockingActionTakenCodes, getPessimisticLocks, getXmlForRouteReport, logErrors, populateDocumentForRouting, postProcessSave, 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, buildListOfDeletionAwareLists, 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.GeneralLedgerPendingEntrySource
addPendingEntry, clearAnyGeneralLedgerPendingEntries, getDocumentHeader, getFinancialDocumentTypeCode, getPostingYear
 
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
getDocumentHeader
 
Methods inherited from interface org.kuali.rice.kns.document.Document
addPessimisticLock, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, doActionTaken, doRouteLevelChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAllowsCopy, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getPessimisticLocks, getXmlForRouteReport, populateDocumentForRouting, postProcessSave, prepareForSave, processAfterRetrieve, refreshPessimisticLocks, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization
 
Methods inherited from interface org.kuali.rice.kns.bo.PersistableBusinessObject
addNote, buildListOfDeletionAwareLists, 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
 

Field Detail

REQUIRES_APPROVAL_NODE

protected static final String REQUIRES_APPROVAL_NODE
See Also:
Constant Field Values

chartOfAccountsCode

protected String chartOfAccountsCode

accountNumber

protected String accountNumber

subAccountNumber

protected String subAccountNumber

financialObjectCode

protected String financialObjectCode

financialSubObjectCode

protected String financialSubObjectCode

projectCode

protected String projectCode

organizationReferenceIdentifier

protected String organizationReferenceIdentifier

financialDocumentReferenceInvoiceNumber

protected String financialDocumentReferenceInvoiceNumber

statusCode

protected String statusCode

customerNote

protected String customerNote

account

protected Account account

chartOfAccounts

protected Chart chartOfAccounts

subAccount

protected SubAccount subAccount

financialObject

protected ObjectCode financialObject

financialSubObject

protected SubObjectCode financialSubObject

project

protected ProjectCode project

customerInvoiceDocument

protected CustomerInvoiceDocument customerInvoiceDocument

accountsReceivableDocumentHeader

protected AccountsReceivableDocumentHeader accountsReceivableDocumentHeader

invoiceWriteoffAmount

protected org.kuali.rice.kns.util.KualiDecimal invoiceWriteoffAmount
Constructor Detail

CustomerInvoiceWriteoffDocument

public CustomerInvoiceWriteoffDocument()
Method Detail

getAccountsReceivableDocumentHeader

public AccountsReceivableDocumentHeader getAccountsReceivableDocumentHeader()

setAccountsReceivableDocumentHeader

public void setAccountsReceivableDocumentHeader(AccountsReceivableDocumentHeader accountsReceivableDocumentHeader)

getChartOfAccountsCode

public String getChartOfAccountsCode()

setChartOfAccountsCode

public void setChartOfAccountsCode(String chartOfAccountsCode)

getAccountNumber

public String getAccountNumber()

setAccountNumber

public void setAccountNumber(String accountNumber)

getSubAccountNumber

public String getSubAccountNumber()

setSubAccountNumber

public void setSubAccountNumber(String subAccountNumber)

getFinancialObjectCode

public String getFinancialObjectCode()

setFinancialObjectCode

public void setFinancialObjectCode(String financialObjectCode)

getFinancialSubObjectCode

public String getFinancialSubObjectCode()

setFinancialSubObjectCode

public void setFinancialSubObjectCode(String financialSubObjectCode)

getProjectCode

public String getProjectCode()

setProjectCode

public void setProjectCode(String projectCode)

getOrganizationReferenceIdentifier

public String getOrganizationReferenceIdentifier()

setOrganizationReferenceIdentifier

public void setOrganizationReferenceIdentifier(String organizationReferenceIdentifier)

getFinancialDocumentReferenceInvoiceNumber

public String getFinancialDocumentReferenceInvoiceNumber()

setFinancialDocumentReferenceInvoiceNumber

public void setFinancialDocumentReferenceInvoiceNumber(String financialDocumentReferenceInvoiceNumber)

getAccount

public Account getAccount()

setAccount

public void setAccount(Account account)

getChartOfAccounts

public Chart getChartOfAccounts()

setChartOfAccounts

public void setChartOfAccounts(Chart chartOfAccounts)

getSubAccount

public SubAccount getSubAccount()

setSubAccount

public void setSubAccount(SubAccount subAccount)

getFinancialObject

public ObjectCode getFinancialObject()

setFinancialObject

public void setFinancialObject(ObjectCode financialObject)

getFinancialSubObject

public SubObjectCode getFinancialSubObject()

setFinancialSubObject

public void setFinancialSubObject(SubObjectCode financialSubObject)

getProject

public ProjectCode getProject()

setProject

public void setProject(ProjectCode project)

getCustomerInvoiceDocument

public CustomerInvoiceDocument getCustomerInvoiceDocument()

setCustomerInvoiceDocument

public void setCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)

getCustomerInvoiceDetailsForWriteoff

public List<CustomerInvoiceDetail> getCustomerInvoiceDetailsForWriteoff()
This method returns all the applicable invoice details for writeoff. This method also sets the writeoff document number on each of the invoice details for making retrieval of the actual writeoff amount easier.

Returns:

getInvoiceWriteoffAmount

public org.kuali.rice.kns.util.KualiDecimal getInvoiceWriteoffAmount()
This method returns the total amount to be written off

Returns:

setInvoiceWriteoffAmount

public void setInvoiceWriteoffAmount(org.kuali.rice.kns.util.KualiDecimal invoiceWriteoffAmount)

getStatusCode

public String getStatusCode()

setStatusCode

public void setStatusCode(String statusCode)

initiateDocument

public void initiateDocument()
Initializes the values for a new document.


clearInitFields

public void clearInitFields()
Clear out the initially populated fields.


getWorkflowEngineDocumentIdsToLock

public List<Long> getWorkflowEngineDocumentIdsToLock()
Specified by:
getWorkflowEngineDocumentIdsToLock in interface org.kuali.rice.kns.document.Document
Overrides:
getWorkflowEngineDocumentIdsToLock in class org.kuali.rice.kns.document.DocumentBase

doRouteStatusChange

public void doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
When document is processed do the following: 1) Apply amounts to writeoff invoice 2) Mark off invoice indiciator

Specified by:
doRouteStatusChange in interface org.kuali.rice.kns.document.Document
Overrides:
doRouteStatusChange in class GeneralLedgerPostingDocumentBase
See Also:
org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase#doRouteStatusChange()

prepareForSave

public void prepareForSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
do all the calculations before the document gets saved gets called for 'Submit', 'Save', and 'Blanket Approved'

Specified by:
prepareForSave in interface org.kuali.rice.kns.document.Document
Overrides:
prepareForSave in class GeneralLedgerPostingDocumentBase
See Also:
Document.prepareForSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent)

generateDocumentGeneralLedgerPendingEntries

public boolean generateDocumentGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
Description copied from interface: GeneralLedgerPendingEntrySource
Creates any GeneralLedgerPostingEntry's that are based on a document, not those based on GeneralLedgerPendingEntrySourceDetail entries

Specified by:
generateDocumentGeneralLedgerPendingEntries in interface GeneralLedgerPendingEntrySource
Parameters:
sequenceHelper - a sequence helper for the method to create more general ledger pending entries
Returns:
true if the pending entries were able to be successfully created and added to this GeneralLedgerPendingEntrySource; false if an error condition occurred with mean that GLPEs were not correctly generated

getCustomerInvoiceDetailOpenPretaxAmount

protected org.kuali.rice.kns.util.KualiDecimal getCustomerInvoiceDetailOpenPretaxAmount(CustomerInvoiceDetail customerInvoiceDetail)

generateGeneralLedgerPendingEntries

public boolean generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySourceDetail glpeSourceDetail,
                                                   GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
This method creates the following GLPE's for the customer invoice writeoff 1. C Receivable object code with remaining amount 2. D Writeoff object code (or Writeoff FAU) with remaining amount 3. C Receivable object code for tax on state tax account 4. D Sales Tax object code for tax on the state tax account 5. C Receivable object code for tax on district tax account 6. D District tax object code for $1.00 on the district tax account

Specified by:
generateGeneralLedgerPendingEntries in interface GeneralLedgerPendingEntrySource
Parameters:
glpeSourceDetail - the source detail line to generate general ledger pending entries for
sequenceHelper - the sequence helper which will assign sequence number to generated general ledger pending entries
Returns:
true if general ledger pending entry generation was successful; false if an error condition prevented the successful generation of the pending entries
See Also:
org.kuali.kfs.service.impl.GenericGeneralLedgerPendingEntryGenerationProcessImpl#processGenerateGeneralLedgerPendingEntries(org.kuali.kfs.sys.document.GeneralLedgerPendingEntrySource, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)

addReceivableGLPEs

protected void addReceivableGLPEs(GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
                                  GeneralLedgerPendingEntrySourceDetail glpeSourceDetail,
                                  boolean hasClaimOnCashOffset,
                                  org.kuali.rice.kns.util.KualiDecimal amount)
This method creates the receivable GLPEs for customer invoice details using the remaining amount

Parameters:
poster -
sequenceHelper -
postable -
explicitEntry -

addWriteoffGLPEs

protected void addWriteoffGLPEs(GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
                                GeneralLedgerPendingEntrySourceDetail glpeSourceDetail,
                                boolean hasClaimOnCashOffset,
                                org.kuali.rice.kns.util.KualiDecimal amount)
This method adds writeoff GLPE's for the customer invoice details using the remaining amount.

Parameters:
poster -
sequenceHelper -
postable -
explicitEntry -

addSalesTaxGLPEs

protected void addSalesTaxGLPEs(GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
                                GeneralLedgerPendingEntrySourceDetail glpeSourceDetail,
                                boolean hasWriteoffTaxClaimOnCashOffset,
                                org.kuali.rice.kns.util.KualiDecimal amount)

getGeneralLedgerPendingEntryAmountForDetail

public org.kuali.rice.kns.util.KualiDecimal getGeneralLedgerPendingEntryAmountForDetail(GeneralLedgerPendingEntrySourceDetail glpeSourceDetail)
Description copied from interface: GeneralLedgerPendingEntrySource
A method to determine what the actual amount, based off of a GeneralLedgerPendingEntrySourceDetail, should be for the resultant GeneralLedgerPendingEntry

Specified by:
getGeneralLedgerPendingEntryAmountForDetail in interface GeneralLedgerPendingEntrySource
Parameters:
glpeSourceDetail - the detail line from the general ledger pending entry source to find an amount for
Returns:
The amount that will be used to populate the amount on the generated general ledger pending entry for the given source detail

getGeneralLedgerPendingEntrySourceDetails

public List<GeneralLedgerPendingEntrySourceDetail> getGeneralLedgerPendingEntrySourceDetails()
Description copied from interface: GeneralLedgerPendingEntrySource
Returns a list of any GeneralLedgerPostables this helper has, to create GeneralLedgerPendingEntries

Specified by:
getGeneralLedgerPendingEntrySourceDetails in interface GeneralLedgerPendingEntrySource
Returns:
a list of GeneralLedgerPostables

isDebit

public boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable)
Description copied from interface: GeneralLedgerPendingEntrySource
This method determines if the passed in GeneralLedgerPendingEntrySourceDetail is a debit or not.

Specified by:
isDebit in interface GeneralLedgerPendingEntrySource
Returns:
true if the given GeneralLedgerPendingEntrySourceDetail is a debit, false if it is a credit

getTotalDollarAmount

public org.kuali.rice.kns.util.KualiDecimal getTotalDollarAmount()
Description copied from interface: AmountTotaling
This method returns the total dollar amount for the document.

Specified by:
getTotalDollarAmount in interface AmountTotaling
Returns:
The total dollar amount as a KualiDecimal object instance.

getCustomerNote

public String getCustomerNote()
Gets the customerNote attribute.

Returns:
Returns the customerNote.

setCustomerNote

public void setCustomerNote(String customerNote)
Sets the customerNote attribute value.

Parameters:
customerNote - The customerNote to set.

populateCustomerNote

public void populateCustomerNote()

answerSplitNodeQuestion

public boolean answerSplitNodeQuestion(String nodeName)
                                throws UnsupportedOperationException
Answers true when invoice write off amount is greater than default approved amount ($50???)

Specified by:
answerSplitNodeQuestion in interface FinancialSystemTransactionalDocument
Overrides:
answerSplitNodeQuestion in class FinancialSystemTransactionalDocumentBase
Throws:
UnsupportedOperationException
See Also:
FinancialSystemTransactionalDocumentBase.answerSplitNodeQuestion(java.lang.String)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.