|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.module.ld.util.DebitCreditUtil
public class DebitCreditUtil
This class provides a set of utilities that handle the debit credit logic.
| Constructor Summary | |
|---|---|
DebitCreditUtil()
|
|
| Method Summary | |
|---|---|
static String |
getDebitCreditCode(org.kuali.rice.kns.util.KualiDecimal amount,
boolean isReversed)
Determine the Debit Credit code based on the given amount. |
static String |
getDebitCreditCode(org.kuali.rice.kns.util.KualiDecimal amount,
String currentDebitCreditCode,
boolean isReversed)
Determine the Debit Credit code based on the given amount. |
static String |
getDebitCreditCodeForExpenseDocument(ExpenseTransferAccountingLine accountingLine)
Determines the Debit Credit code for the expense accountine line (Salary Expense and Benefit Expense documents). |
static org.kuali.rice.kns.util.KualiDecimal |
getNumericAmount(org.kuali.rice.kns.util.KualiDecimal amount,
String currentDebitCreditCode)
Determine the actual amount based on Debit Credit code. |
static String |
getReverseDebitCreditCode(String currentDebitCreditCode)
get the reversed debit credit code of the given code |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DebitCreditUtil()
| Method Detail |
|---|
public static String getDebitCreditCode(org.kuali.rice.kns.util.KualiDecimal amount,
boolean isReversed)
amount - the given amount, which can be either negative or positive number.isReversed - a flag that indicates if normal accounting practice is used. False for normal accoutning practice; true for
reverse.
public static String getDebitCreditCode(org.kuali.rice.kns.util.KualiDecimal amount,
String currentDebitCreditCode,
boolean isReversed)
amount - the given amount, which can be either negative or positive number.currentDebitCreditCode - the current debit credit codeisReversed - a flag that indicates if normal accounting practice is used. False for normal accoutning practice; true for
reverse.
public static String getDebitCreditCodeForExpenseDocument(ExpenseTransferAccountingLine accountingLine)
accountingLine - - line to determine code for
public static String getReverseDebitCreditCode(String currentDebitCreditCode)
currentDebitCreditCode - the current debit credit code
public static org.kuali.rice.kns.util.KualiDecimal getNumericAmount(org.kuali.rice.kns.util.KualiDecimal amount,
String currentDebitCreditCode)
amount - the given amount, which can be either negative or positive number.currentDebitCreditCode - the current debit credit code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||