@Service public class CommnFunctions extends Object
| Modifier and Type | Field and Description |
|---|---|
String[] |
reqFundId |
String[] |
reqFundName |
| Constructor and Description |
|---|
CommnFunctions() |
| Modifier and Type | Method and Description |
|---|---|
String |
addToAddLessSubTotals(String glcode,
BigDecimal amt,
String[] tagName,
int index,
BigDecimal[] addSubtotals,
BigDecimal[] lessSubtotals,
String status) |
String |
formatAmt(String amt,
String amt_In)
convert amount in rupeese to thousands or lakhs
|
String |
getEndDate(int finYearId)
function to get financial year end Date
|
void |
getFundList(String fundId,
String startDate,
String endDate)
This method extracts all the fund ids and fund names.
|
void |
getOpeningBalance(String fundId,
String type1,
String type2,
String substringVal,
String startDate,
String endDate,
int classification,
String[] reqFundId1,
HashMap openingBal)
Get the opening balance for the list of account codes for a particular fund if fund is passed as a parameter for a
particular financial year.
|
String |
getStartDate(int finYearId) |
void |
getTxnBalance(Connection conn,
String fundid,
String type1,
String type2,
String substringVal,
String startDate,
String endDate,
int classification,
String effFilter,
HashMap txnBalancehasmap)
Get the sum of debit amount minus the sum of credit amounts for the list of account codes for a particular fund from the GL
if fund is passed as a parameter for a particular financial year.
|
void |
getTxnCreditBalance(Connection conn,
String fundId,
String type1,
String type2,
String substringVal,
String startDate,
String endDate,
int classification,
HashMap txnCreditBalance) |
void |
getTxnDebitBalance(Connection conn,
String fundId,
String type1,
String type2,
String substringVal,
String startDate,
String endDate,
int classification,
HashMap txnDebitBalance) |
StringBuffer |
numberToString(String strNumberToConvert)
function to format amount into to Indaian rupees format
|
public void getFundList(String fundId, String startDate, String endDate) throws Exception
conn - :reference of ConnectionfundId - :The id of the fund for which the opening balances has to be calculatedstartDate - :The start date of the financial year for which opening balance has to be calculatedendDate - :The end date of the financial year for which opening balance has to be calculated.effFilter - :The Effective Date Filtertype1 - :The type of account code (A,E,L,I)type2 - :The type of account code (A,E,L,I)Exceptionpublic void getOpeningBalance(String fundId, String type1, String type2, String substringVal, String startDate, String endDate, int classification, String[] reqFundId1, HashMap openingBal) throws Exception
fundId - :The id of the fund for which the opening balances has to be calculatedtype1 - :The type of account code (A,I)type2 - :The type of account code (L,E)substringVal - :The no of digits to pick from the glcode for grouping. (2 for major code, 3 for minor code)startDate - :The start date of the financial year for which opening balance has to be calculatedendDate - :The end date of the financial year for which opening balance has to be calculated.classification:Classification - of the code for which opening balance has to be calculatedreqFundId1 - :List of fundIdsopeningBal - :This parameter is called by reference so it acts as input & outputExceptionpublic void getTxnBalance(Connection conn, String fundid, String type1, String type2, String substringVal, String startDate, String endDate, int classification, String effFilter, HashMap txnBalancehasmap) throws Exception
fundid - :The id of the fund for which the opening balances has to be calculatedtype1 - :The type of account code (A,E,L,I)type2 - :The type of account code (A,E,L,I)substringVal - :The no of digits to pick from the glcode for grouping. (2 for major code, 3 for minor code)startDate - :The start date of the financial year for which opening balance has to be calculatedendDate - :The end date of the financial year for which opening balance has to be calculatedclassification - :Classification of the code for which opening balance has to be calculatedeffFilter - :The Effective Date FiltertxnBalancehasmap:Since - HashMap is called by Reference same list will get effected in called methodExceptionpublic void getTxnCreditBalance(Connection conn, String fundId, String type1, String type2, String substringVal, String startDate, String endDate, int classification, HashMap txnCreditBalance) throws Exception
fundid - :The id of the fund for which the opening balances has to be calculatedtype1 - :The type of account code (A,E,L,I)type2 - :The type of account code (A,E,L,I)substringVal - :The no of digits to pick from the glcode for grouping. (2 for major code, 3 for minor code)startDate - :The start date of the financial year for which opening balance has to be calculatedendDate - :The end date of the financial year for which opening balance has to be calculatedclassification - :Classification of the code for which opening balance has to be calculatedtxnCreditBalance - :This parameter is called by reference so it acts as input & outputExceptionpublic void getTxnDebitBalance(Connection conn, String fundId, String type1, String type2, String substringVal, String startDate, String endDate, int classification, HashMap txnDebitBalance) throws Exception
fundId - :The id of the fund for which the opening balances has to be calculatedtype1 - :The type of account code (A,E,L,I)type2 - :The type of account code (A,E,L,I)substringVal - :The no of digits to pick from the glcode for grouping. (2 for major code, 3 for minor code)startDate - :The start date of the financial year for which opening balance has to be calculatedendDate - :The end date of the financial year for which opening balance has to be calculatedclassification - :classification of the code for which opening balance has to be calculatedtxnDebitBalance:This - parameter is called by reference so it acts as input & outputExceptionpublic String formatAmt(String amt, String amt_In)
amt - :amount to be convertedamt_In - : to "thousands" or "lakhs"public String getStartDate(int finYearId) throws TaskFailedException
TaskFailedExceptionpublic String getEndDate(int finYearId) throws TaskFailedException
con - finYearId - TaskFailedExceptionpublic StringBuffer numberToString(String strNumberToConvert)
strNumberToConvert - public String addToAddLessSubTotals(String glcode, BigDecimal amt, String[] tagName, int index, BigDecimal[] addSubtotals, BigDecimal[] lessSubtotals, String status)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.