public interface CashDrawerService
Modifier and Type | Method and Description |
---|---|
void |
closeCashDrawer(CashDrawer cd)
Closes the cash drawer associated with the given document
|
void |
closeCashDrawer(String campusCode)
Closes the CashDrawer instance associated with the given campus code, creating one if necessary.
|
CashDrawer |
getByCampusCode(String campusCode)
Retrieves the CashDrawer instance associated with the given campus code, if any.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getCoinTotal(CashDrawer drawer)
Calculates the total amount of all the coins in the drawer.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getCurrencyTotal(CashDrawer drawer)
Calculates the total amount of all the currency in the drawer.
|
void |
lockCashDrawer(CashDrawer cd,
String documentId)
Locks the given cash drawer, if it is open
|
void |
lockCashDrawer(String campusCode,
String documentId)
Locks the currently-open CashDrawer instance associated with the given campus, throwing an IllegalStateException if
that cashDrawer is not open (i.e.
|
CashDrawer |
openCashDrawer(CashDrawer cd,
String documentId)
Opens the given cash drawer
|
CashDrawer |
openCashDrawer(String campusCode,
String documentId)
Opens the CashDrawer instance associated with the given campus, creating one if necessary.
|
void |
unlockCashDrawer(CashDrawer cd,
String documentId)
Unlocks the given cash drawer, if it is open and locked
|
void |
unlockCashDrawer(String campusCode,
String documentId)
Unlocks the currently-locked CashDrawer instance associated with the given campus code,
throwing an IllegalStateException if that cashDrawer is not locked (i.e.
|
void closeCashDrawer(String campusCode)
campusCode
- The campus code used to retrieve the cash drawer to be closed.void closeCashDrawer(CashDrawer cd)
cd
- The cash drawer to closed.CashDrawer openCashDrawer(String campusCode, String documentId)
campusCode
- The campus code to be used to retrieve the cash drawer to be closed.documentId
- The id of the document used to open the cash drawer.CashDrawer openCashDrawer(CashDrawer cd, String documentId)
cd
- The cash drawer to opendocumentId
- the document number which is opening the cash drawervoid lockCashDrawer(String campusCode, String documentId)
campusCode
- The campus code used to retrieve the cash drawer to be locked.documentId
- The id of the document used to lock the cash drawer.void lockCashDrawer(CashDrawer cd, String documentId)
cd
- The cash drawer to opendocumentId
- The document id which is locking the cash drawervoid unlockCashDrawer(String campusCode, String documentId)
campusCode
- The campus code used to retrieve the cash drawer to be unlocked.documentId
- The id of the document used to unlock the cash drawer.void unlockCashDrawer(CashDrawer cd, String documentId)
cd
- The cash drawer to unlockdocumentId
- The document which is unlocking the cash drawerCashDrawer getByCampusCode(String campusCode)
campusCode
- The campus code used to retrieve the cash drawer.org.kuali.rice.core.api.util.type.KualiDecimal getCurrencyTotal(CashDrawer drawer)
drawer
- The cash drawer to calculate the currency total from.org.kuali.rice.core.api.util.type.KualiDecimal getCoinTotal(CashDrawer drawer)
drawer
- The drawer to calculate the coin total from.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.