| java.lang.Object org.kuali.module.labor.util.DebitCreditUtil
DebitCreditUtil | public class DebitCreditUtil (Code) | | This class provides a set of utilities that handle the debit credit logic.
|
getDebitCreditCode | public static String getDebitCreditCode(KualiDecimal amount, boolean isReversed)(Code) | | Determine the Debit Credit code based on the given amount. Normally (isReverse flag is set as false), the debit code returns
if the amount is positive while the credit code returns if the amount is negative. When isReverse flag is set as true, the
credit returns for positive amount and the debit code for negative amount.
Parameters: amount - the given amount, which can be either negative or positive number. Parameters: isReversed - a flag that indicates if normal accounting practice is used. False for normal accoutning practice; true forreverse. the Debit Credit code based on the given transaction amount and the value of isReversed |
getDebitCreditCode | public static String getDebitCreditCode(KualiDecimal amount, String currentDebitCreditCode, boolean isReversed)(Code) | | Determine the Debit Credit code based on the given amount. Normally (isReverse flag is set as false), the debit code returns
if the amount is positive while the credit code returns if the amount is negative. When isReverse flag is set as true, the
credit returns for positive amount and the debit code for negative amount.
Parameters: amount - the given amount, which can be either negative or positive number. Parameters: currentDebitCreditCode - the current debit credit code Parameters: isReversed - a flag that indicates if normal accounting practice is used. False for normal accoutning practice; true forreverse. the Debit Credit code based on the given transaction amount and the value of isReversed |
getDebitCreditCodeForExpenseDocument | public static String getDebitCreditCodeForExpenseDocument(ExpenseTransferAccountingLine accountingLine)(Code) | | Determines the Debit Credit code for the expense accountine line (Salary Expense and Benefit Expense documents).
Parameters: accountingLine - - line to determine code for String representing the debit/credit code for the line |
getNumericAmount | public static KualiDecimal getNumericAmount(KualiDecimal amount, String currentDebitCreditCode)(Code) | | Determine the actual amount based on Debit Credit code. If the code is credit code, then change the sign of the given amount;
otherwise, do nothing
Parameters: amount - the given amount, which can be either negative or positive number. Parameters: currentDebitCreditCode - the current debit credit code the actual numeric amount of the given amount |
getReverseDebitCreditCode | public static String getReverseDebitCreditCode(String currentDebitCreditCode)(Code) | | get the reversed debit credit code of the given code
Parameters: currentDebitCreditCode - the current debit credit code the reversed debit credit code of the given code |
|
|