@Transactional public class CashReceiptServiceImpl extends Object implements CashReceiptService
Modifier and Type | Field and Description |
---|---|
protected org.kuali.rice.krad.service.BusinessObjectService |
businessObjectService |
protected CashDrawerService |
cashDrawerService |
protected CashManagementDao |
cashManagementDao |
protected org.kuali.rice.kns.service.DataDictionaryService |
dataDictionaryService |
protected org.kuali.rice.kns.service.DictionaryValidationService |
dictionaryValidationService |
Constructor and Description |
---|
CashReceiptServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addCashDetailsToCashDrawer(CashReceiptDocument crDoc)
This method retrieves the cash details from the cash receipt document provided and adds those details to the
associated cash drawer.
|
boolean |
areCashTotalsInvalid(CashReceiptDocument cashReceiptDocument)
Checks whether the CashReceiptDocument's cash totals are invalid, generating global errors if so.
|
protected Map |
buildCashReceiptCriteriaMap(String campusCode,
String[] statii)
This method builds out a map of search criteria for performing cash receipt lookups using the values provided.
|
List |
getCashReceipts(String verificationUnit,
String statusCode)
This method retrieves a collection of cash receipts using the verification unit and the status provided to
retrieve the cash receipts.
|
List |
getCashReceipts(String verificationUnit,
String[] statii)
This method retrieves a collection of cash receipts using the verification unit and the statuses provided to
retrieve the cash receipts.
|
String |
getCashReceiptVerificationUnitForUser(org.kuali.rice.kim.api.identity.Person user)
This method retrieves the cash receipt verification unit based on the user provided.
|
List<CashReceiptDocument> |
getPopulatedCashReceipts(String verificationUnit,
String[] statii)
This method retrieves a populated collection of cash receipts using the lookup parameters provided.
|
protected boolean |
isTotalInvalid(CashReceiptFamilyBase cashReceiptDocument,
org.kuali.rice.core.api.util.type.KualiDecimal totalAmount,
String documentEntryName,
String propertyName)
Puts an error message in the error map for that property if the amount is negative.
|
protected void |
populateWorkflowFields(List documents)
This method populates the workflowDocument field of each CashReceiptDocument in the given List
|
protected CashDrawer |
retrieveCashDrawer(CashReceiptDocument crDoc)
This method finds the appropriate cash drawer for this cash receipt document to add cash to.
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setCashDrawerService(CashDrawerService cashDrawerService) |
void |
setCashManagementDao(CashManagementDao cashManagementDao) |
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService) |
void |
setDictionaryValidationService(org.kuali.rice.kns.service.DictionaryValidationService dictionaryValidationService) |
protected boolean |
verifyCampus(String campusCode)
This method verifies the campus code provided exists.
|
protected org.kuali.rice.krad.service.BusinessObjectService businessObjectService
protected CashManagementDao cashManagementDao
protected CashDrawerService cashDrawerService
protected org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
protected org.kuali.rice.kns.service.DictionaryValidationService dictionaryValidationService
public CashReceiptServiceImpl()
protected boolean verifyCampus(String campusCode)
campusCode
- The campus code to be verified.public String getCashReceiptVerificationUnitForUser(org.kuali.rice.kim.api.identity.Person user)
getCashReceiptVerificationUnitForUser
in interface CashReceiptService
user
- The user to be used to retrieve the verification unit.org.kuali.ole.fp.document.service.CashReceiptService#getCashReceiptVerificationUnit(org.kuali.rice.krad.bo.user.KualiUser)
public List getCashReceipts(String verificationUnit, String statusCode)
getCashReceipts
in interface CashReceiptService
verificationUnit
- The verification unit used to retrieve a collection of associated cash receipts.statusCode
- The status code of the cash receipts to be retrieved.CashReceiptService.getCashReceipts(java.lang.String, java.lang.String)
public List getCashReceipts(String verificationUnit, String[] statii)
getCashReceipts
in interface CashReceiptService
verificationUnit
- The verification unit used to retrieve a collection of associated cash receipts.statii
- A collection of possible statuses that will be used in the lookup of cash receipts.CashReceiptService.getCashReceipts(java.lang.String, java.lang.String[])
public List<CashReceiptDocument> getPopulatedCashReceipts(String verificationUnit, String[] statii)
verificationUnit
- The verification unit used to retrieve a collection of associated cash receipts.statii
- A collection of possible statuses that will be used in the lookup of the cash receipts.protected Map buildCashReceiptCriteriaMap(String campusCode, String[] statii)
campusCode
- The campus code to use as search criteria for looking up cash receipts.statii
- A collection of possible statuses to use as search criteria for looking up cash receipts.protected void populateWorkflowFields(List documents)
documents
- A collection of CashReceiptDocuments to be populated with workflow document data.public void addCashDetailsToCashDrawer(CashReceiptDocument crDoc)
addCashDetailsToCashDrawer
in interface CashReceiptService
crDoc
- The cash receipt document the cash details will be retrieved from.CashReceiptService.addCashDetailsToCashDrawer(org.kuali.ole.fp.document.CashReceiptDocument)
protected CashDrawer retrieveCashDrawer(CashReceiptDocument crDoc)
crDoc
- The document the cash drawer will be retrieved from.public boolean areCashTotalsInvalid(CashReceiptDocument cashReceiptDocument)
CashReceiptService
areCashTotalsInvalid
in interface CashReceiptService
cashReceiptDocument
- submitted cash receipt documentorg.kuali.module.financial.service.CashReceiptTotalsVerificationService#areCashTotalsInvalid(org.kuali.ole.fp.document.CashReceiptDocument)
protected boolean isTotalInvalid(CashReceiptFamilyBase cashReceiptDocument, org.kuali.rice.core.api.util.type.KualiDecimal totalAmount, String documentEntryName, String propertyName)
cashReceiptDocument
- submitted cash receipt documenttotalAmount
- total amount (cash total, check total, etc)documentEntryName
- document typepropertyName
- property type (i.e totalCashAmount, totalCheckAmount, etc)public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
public void setCashManagementDao(CashManagementDao cashManagementDao)
public void setCashDrawerService(CashDrawerService cashDrawerService)
public void setDictionaryValidationService(org.kuali.rice.kns.service.DictionaryValidationService dictionaryValidationService)
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.