|
||||||||||
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.kfs.fp.businessobject.CashDrawer
public class CashDrawer
This class represents a cash drawer used in cash management document. It contains amounts for different types of denominations for currency and coin.
Field Summary |
---|
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase |
---|
extension, versionNumber |
Constructor Summary | |
---|---|
CashDrawer()
Default constructor. |
Method Summary | |
---|---|
void |
addCoin(CoinDetail detail)
This method puts coin into the cash drawer |
void |
addCurrency(CurrencyDetail detail)
This method adds currency to the cash drawer |
org.kuali.rice.kns.bo.Campus |
getCampus()
|
String |
getCampusCode()
Gets the campusCode attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getCashDrawerTotalAmount()
Gets the cashDrawerTotalAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getCoinTotalAmount()
This method calculates the total amount of coin in the cash drawer |
org.kuali.rice.kns.util.KualiDecimal |
getCurrencyTotalAmount()
This method calculates the total amount of currency in the cash drawer |
Integer |
getFiftyCentCount()
Returns the number of half-cent coins in the drawer |
Integer |
getFiftyDollarCount()
Returns the actual count of fifty dollar bills |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentFiftyCentAmount()
Gets the financialDocumentFiftyCentAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentFiftyDollarAmount()
Gets the financialDocumentFiftyDollarAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentFiveCentAmount()
Gets the financialDocumentFiveCentAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentFiveDollarAmount()
Gets the financialDocumentFiveDollarAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentHundredCentAmount()
Gets the financialDocumentHundredCentAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentHundredDollarAmount()
Gets the financialDocumentHundredDollarAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentMiscellaneousAdvanceAmount()
Gets the financialDocumentMiscellaneousAdvanceAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentOneCentAmount()
Gets the financialDocumentOneCentAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentOneDollarAmount()
Gets the financialDocumentOneDollarAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentOtherCentAmount()
Gets the financialDocumentOtherCentAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentOtherDollarAmount()
Gets the financialDocumentOtherDollarAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentTenCentAmount()
Gets the financialDocumentTenCentAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentTenDollarAmount()
Gets the financialDocumentTenDollarAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentTwentyDollarAmount()
Gets the financialDocumentTwentyDollarAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentTwentyFiveCentAmount()
Gets the financialDocumentTwentyFiveCentAmount attribute. |
org.kuali.rice.kns.util.KualiDecimal |
getFinancialDocumentTwoDollarAmount()
Gets the financialDocumentTwoDollarAmount attribute. |
Integer |
getFiveCentCount()
Returns the number of nickels in the drawer |
Integer |
getFiveDollarCount()
Returns the actual count of five dollar bills |
Integer |
getHundredCentCount()
Returns the number of dollar coins--Sacajawea, Susan B. |
Integer |
getHundredDollarCount()
Returns the actual count of hundred dollar bills |
Integer |
getOneCentCount()
Returns the number of pennies in the drawer |
Integer |
getOneDollarCount()
Returns the actual count of one dollar bills |
String |
getReferenceFinancialDocumentNumber()
Gets the referenceFinancialDocumentNumber attribute. |
String |
getStatusCode()
Gets the statusCode attribute. |
Integer |
getTenCentCount()
Returns the number of dimes in the drawer |
Integer |
getTenDollarCount()
Returns the actual count of ten dollar bills |
org.kuali.rice.kns.util.KualiDecimal |
getTotalAmount()
This calculates the total amount of money currently in the cash drawer |
Integer |
getTwentyDollarCount()
Returns the actual count of twenty dollar bills |
Integer |
getTwentyFiveCentCount()
Returns the number of quarters in the drawer |
Integer |
getTwoDollarCount()
Returns the actual count of two dollar bills |
boolean |
isClosed()
This method returns true if the cash drawer is closed. |
boolean |
isLocked()
This method returns true if the cash drawer is locked. |
boolean |
isOpen()
This method returns true if the cash drawer is open. |
void |
removeCoin(CoinDetail detail)
This method takes coin out of the cash drawer |
void |
removeCurrency(CurrencyDetail detail)
This method removes currency amounts from the cash drawer |
void |
setCampusCode(String campusCode)
Sets the campusCode attribute. |
void |
setCashDrawerTotalAmount(org.kuali.rice.kns.util.KualiDecimal cashDrawerTotalAmount)
Sets the cashDrawerTotalAmount attribute. |
void |
setFiftyCentCount(Integer count)
Sets the number of fifty cent coins in the drawer. |
void |
setFiftyDollarCount(Integer count)
This sets the count of hundred dollar bills present in the drawer |
void |
setFinancialDocumentFiftyCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentFiftyCentAmount)
Sets the financialDocumentFiftyCentAmount attribute. |
void |
setFinancialDocumentFiftyDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentFiftyDollarAmount)
Sets the financialDocumentFiftyDollarAmount attribute. |
void |
setFinancialDocumentFiveCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentFiveCentAmount)
Sets the financialDocumentFiveCentAmount attribute. |
void |
setFinancialDocumentFiveDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentFiveDollarAmount)
Sets the financialDocumentFiveDollarAmount attribute. |
void |
setFinancialDocumentHundredCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentHundredCentAmount)
Sets the financialDocumentHundredCentAmount attribute. |
void |
setFinancialDocumentHundredDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentHundredDollarAmount)
Sets the financialDocumentHundredDollarAmount attribute. |
void |
setFinancialDocumentMiscellaneousAdvanceAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentMiscellaneousAdvanceAmount)
Sets the financialDocumentMiscellaneousAdvanceAmount attribute. |
void |
setFinancialDocumentOneCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentOneCentAmount)
Sets the financialDocumentOneCentAmount attribute. |
void |
setFinancialDocumentOneDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentOneDollarAmount)
Sets the financialDocumentOneDollarAmount attribute. |
void |
setFinancialDocumentOtherCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentOtherCentAmount)
Sets the financialDocumentOtherCentAmount attribute. |
void |
setFinancialDocumentOtherDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentOtherDollarAmount)
Sets the financialDocumentOtherDollarAmount attribute. |
void |
setFinancialDocumentTenCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentTenCentAmount)
Sets the financialDocumentTenCentAmount attribute. |
void |
setFinancialDocumentTenDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentTenDollarAmount)
Sets the financialDocumentTenDollarAmount attribute. |
void |
setFinancialDocumentTwentyDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentTwentyDollarAmount)
Sets the financialDocumentTwentyDollarAmount attribute. |
void |
setFinancialDocumentTwentyFiveCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentTwentyFiveCentAmount)
Sets the financialDocumentTwentyFiveCentAmount attribute. |
void |
setFinancialDocumentTwoDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentTwoDollarAmount)
Sets the financialDocumentTwoDollarAmount attribute. |
void |
setFiveCentCount(Integer count)
Sets the number of nickels in the drawer |
void |
setFiveDollarCount(Integer count)
This sets the count of five dollar bills present in the drawer |
void |
setHundredCentCount(Integer count)
Sets the number of hundred cent coins in the drawer |
void |
setHundredDollarCount(Integer count)
This sets the count of hundred dollar bills present in the drawer |
void |
setOneCentCount(Integer count)
Sets the number of pennies in the drawer |
void |
setOneDollarCount(Integer count)
This sets the count of one dollar bills present in the drawer |
void |
setReferenceFinancialDocumentNumber(String referenceFinancialDocumentNumber)
Sets the referenceFinancialDocumentNumber attribute. |
void |
setStatusCode(String financialDocumentOpenDepositCode)
Sets the statusCode attribute. |
void |
setTenCentCount(Integer count)
Sets the number of dimes in the drawer |
void |
setTenDollarCount(Integer count)
This sets the count of ten dollar bills present in the drawer |
void |
setTwentyDollarCount(Integer count)
This sets the count of twenty dollar bills present in the drawer |
void |
setTwentyFiveCentCount(Integer count)
Sets the number of quarters in the drawer |
void |
setTwoDollarCount(Integer count)
This sets the count of two dollar bills present in the drawer |
protected LinkedHashMap |
toStringMapper()
|
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase |
---|
addNote, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, buildListOfDeletionAwareLists, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes |
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase |
---|
prepareForWorkflow, toString, toStringBuilder |
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.bo.BusinessObject |
---|
prepareForWorkflow |
Constructor Detail |
---|
public CashDrawer()
Method Detail |
---|
public boolean isOpen()
public boolean isClosed()
public boolean isLocked()
public String getCampusCode()
public void setCampusCode(String campusCode)
campusCode
- The campusCode to set.public String getStatusCode()
public void setStatusCode(String financialDocumentOpenDepositCode)
financialDocumentOpenDepositCode
- The statusCode to set.public org.kuali.rice.kns.util.KualiDecimal getCashDrawerTotalAmount()
public void setCashDrawerTotalAmount(org.kuali.rice.kns.util.KualiDecimal cashDrawerTotalAmount)
cashDrawerTotalAmount
- The cashDrawerTotalAmount to set.public org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentHundredDollarAmount()
public void setFinancialDocumentHundredDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentHundredDollarAmount)
financialDocumentHundredDollarAmount
- The financialDocumentHundredDollarAmount to set.public Integer getHundredDollarCount()
public void setHundredDollarCount(Integer count)
count
- the number of hundred dollar bills present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentFiftyDollarAmount()
public void setFinancialDocumentFiftyDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentFiftyDollarAmount)
financialDocumentFiftyDollarAmount
- The financialDocumentFiftyDollarAmount to set.public Integer getFiftyDollarCount()
public void setFiftyDollarCount(Integer count)
count
- the number of hundred dollar bills present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentTwentyDollarAmount()
public void setFinancialDocumentTwentyDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentTwentyDollarAmount)
financialDocumentTwentyDollarAmount
- The financialDocumentTwentyDollarAmount to set.public Integer getTwentyDollarCount()
public void setTwentyDollarCount(Integer count)
count
- the number of twenty dollar bills present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentTenDollarAmount()
public void setFinancialDocumentTenDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentTenDollarAmount)
financialDocumentTenDollarAmount
- The financialDocumentTenDollarAmount to set.public Integer getTenDollarCount()
public void setTenDollarCount(Integer count)
count
- the number of ten dollar bills present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentFiveDollarAmount()
public void setFinancialDocumentFiveDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentFiveDollarAmount)
financialDocumentFiveDollarAmount
- The financialDocumentFiveDollarAmount to set.public Integer getFiveDollarCount()
public void setFiveDollarCount(Integer count)
count
- the number of five dollar bills present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentTwoDollarAmount()
public void setFinancialDocumentTwoDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentTwoDollarAmount)
financialDocumentTwoDollarAmount
- The financialDocumentTwoDollarAmount to set.public Integer getTwoDollarCount()
public void setTwoDollarCount(Integer count)
count
- the number of two dollar bills present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentOneDollarAmount()
public void setFinancialDocumentOneDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentOneDollarAmount)
financialDocumentOneDollarAmount
- The financialDocumentOneDollarAmount to set.public Integer getOneDollarCount()
public void setOneDollarCount(Integer count)
count
- the number of one dollar bills present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentOtherDollarAmount()
public void setFinancialDocumentOtherDollarAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentOtherDollarAmount)
financialDocumentOtherDollarAmount
- The financialDocumentOtherDollarAmount to set.public org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentFiftyCentAmount()
public void setFinancialDocumentFiftyCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentFiftyCentAmount)
financialDocumentFiftyCentAmount
- The financialDocumentFiftyCentAmount to set.public Integer getFiftyCentCount()
public void setFiftyCentCount(Integer count)
count
- the number of fifty cent coins present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentTwentyFiveCentAmount()
public void setFinancialDocumentTwentyFiveCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentTwentyFiveCentAmount)
financialDocumentTwentyFiveCentAmount
- The financialDocumentTwentyFiveCentAmount to set.public Integer getTwentyFiveCentCount()
public void setTwentyFiveCentCount(Integer count)
count
- the number of quarters present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentTenCentAmount()
public void setFinancialDocumentTenCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentTenCentAmount)
financialDocumentTenCentAmount
- The financialDocumentTenCentAmount to set.public Integer getTenCentCount()
public void setTenCentCount(Integer count)
count
- the number of dimes present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentFiveCentAmount()
public void setFinancialDocumentFiveCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentFiveCentAmount)
financialDocumentFiveCentAmount
- The financialDocumentFiveCentAmount to set.public Integer getFiveCentCount()
public void setFiveCentCount(Integer count)
count
- the number of nickels present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentOneCentAmount()
public void setFinancialDocumentOneCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentOneCentAmount)
financialDocumentOneCentAmount
- The financialDocumentOneCentAmount to set.public Integer getOneCentCount()
public void setOneCentCount(Integer count)
count
- the number of pennies present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentOtherCentAmount()
public void setFinancialDocumentOtherCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentOtherCentAmount)
financialDocumentOtherCentAmount
- The financialDocumentOtherCentAmount to set.public org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentHundredCentAmount()
public void setFinancialDocumentHundredCentAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentHundredCentAmount)
financialDocumentHundredCentAmount
- The financialDocumentHundredCentAmount to set.public Integer getHundredCentCount()
public void setHundredCentCount(Integer count)
count
- the number of hundred cent coins present in the drawerpublic org.kuali.rice.kns.util.KualiDecimal getFinancialDocumentMiscellaneousAdvanceAmount()
public void setFinancialDocumentMiscellaneousAdvanceAmount(org.kuali.rice.kns.util.KualiDecimal financialDocumentMiscellaneousAdvanceAmount)
financialDocumentMiscellaneousAdvanceAmount
- The financialDocumentMiscellaneousAdvanceAmount to set.public String getReferenceFinancialDocumentNumber()
public void setReferenceFinancialDocumentNumber(String referenceFinancialDocumentNumber)
referenceFinancialDocumentNumber
- The referenceFinancialDocumentNumber to set.public org.kuali.rice.kns.util.KualiDecimal getCurrencyTotalAmount()
public org.kuali.rice.kns.util.KualiDecimal getCoinTotalAmount()
public org.kuali.rice.kns.util.KualiDecimal getTotalAmount()
public void addCurrency(CurrencyDetail detail)
detail
- the record indicating how much of each denomination of currency to addpublic void addCoin(CoinDetail detail)
detail
- the record indicating how much coin of each denomiation to addpublic void removeCurrency(CurrencyDetail detail)
detail
- the record indicating how much currency of each denomination to removepublic void removeCoin(CoinDetail detail)
detail
- the record indicating how much coin of each denomination to removepublic org.kuali.rice.kns.bo.Campus getCampus()
protected LinkedHashMap toStringMapper()
toStringMapper
in class org.kuali.rice.kns.bo.BusinessObjectBase
BusinessObjectBase.toStringMapper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |