Commit c12908be authored by smanohar's avatar smanohar

javadoc comments corrected for all methods

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@213005 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0a34daab
...@@ -40,9 +40,10 @@ public class FinCommon { ...@@ -40,9 +40,10 @@ public class FinCommon {
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
/** /**
* Update Sundry balance opening
* @param sundrybalMap * @param sundrybalMap
* @param conn * @param conn
* @return * @return empty string if successful else Error string
* @throws ITMException * @throws ITMException
*/ */
public String sundrybalOpnUpd(HashMap sundrybalMap, Connection conn) throws ITMException { public String sundrybalOpnUpd(HashMap sundrybalMap, Connection conn) throws ITMException {
...@@ -522,9 +523,10 @@ public class FinCommon { ...@@ -522,9 +523,10 @@ public class FinCommon {
}// sundrybalOpnUpd() }// sundrybalOpnUpd()
/** /**
* Updates accout balance opening
* @param acctbalMap * @param acctbalMap
* @param conn * @param conn
* @return * @return Empty string if successful else error string
* @throws ITMException * @throws ITMException
* @throws SQLException * @throws SQLException
*/ */
...@@ -954,7 +956,7 @@ public class FinCommon { ...@@ -954,7 +956,7 @@ public class FinCommon {
}// acctbalOpnUpd() }// acctbalOpnUpd()
/** /**
* Returns updates sundry balance * Updates sundry balance
* *
* @param sundrybalMap * @param sundrybalMap
* HashMap with sundry account details * HashMap with sundry account details
...@@ -1555,7 +1557,7 @@ public class FinCommon { ...@@ -1555,7 +1557,7 @@ public class FinCommon {
}// gbf_sundrybal_upd() }// gbf_sundrybal_upd()
/** /**
* Returns updates Account balance * updates Account balance
* *
* @param acctbalMap * @param acctbalMap
* HashMap with account details * HashMap with account details
...@@ -2110,7 +2112,7 @@ public class FinCommon { ...@@ -2110,7 +2112,7 @@ public class FinCommon {
}// gbf_acctbal_upd() }// gbf_acctbal_upd()
/** /**
* Returns finparm as String * Gets the value of finparm variable as String
* *
* @param prdCode * @param prdCode
* period code String * period code String
...@@ -2170,7 +2172,7 @@ public class FinCommon { ...@@ -2170,7 +2172,7 @@ public class FinCommon {
}// getFinparams() }// getFinparams()
/** /**
* Returns daily exchange rate from one currency to another * Gets daily exchange rate from one currency to another
* *
* @param as_curr_code * @param as_curr_code
* Currency code from * Currency code from
...@@ -2517,7 +2519,7 @@ public class FinCommon { ...@@ -2517,7 +2519,7 @@ public class FinCommon {
}// getDailyExchRateSellBuy() }// getDailyExchRateSellBuy()
/** /**
* Returns error code if account code is not valid * Validates the account code
* *
* @param siteCode * @param siteCode
* Site code * Site code
...@@ -2665,7 +2667,7 @@ public class FinCommon { ...@@ -2665,7 +2667,7 @@ public class FinCommon {
} // isAcctCode() } // isAcctCode()
/** /**
* Returns error code if cost center code is not valid * Validates cost center code
* *
* @param acctCode * @param acctCode
* Account code * Account code
...@@ -2773,7 +2775,7 @@ public class FinCommon { ...@@ -2773,7 +2775,7 @@ public class FinCommon {
} // isAcctCode() } // isAcctCode()
/** /**
* Returns error code if sundry code is not valid * Validates sundry code
* *
* @param siteCode * @param siteCode
* Site code * Site code
...@@ -2879,7 +2881,7 @@ public class FinCommon { ...@@ -2879,7 +2881,7 @@ public class FinCommon {
} }
/** /**
* Returns error code if strg customer code is not valid * Validates strategic customer code
* *
* @param siteCode * @param siteCode
* Site code * Site code
...@@ -2939,7 +2941,7 @@ public class FinCommon { ...@@ -2939,7 +2941,7 @@ public class FinCommon {
} }
/** /**
* Returns error code if analysis code is not valid * Validate analysis code
* *
* @param acctCode * @param acctCode
* Account Code * Account Code
...@@ -3043,7 +3045,7 @@ public class FinCommon { ...@@ -3043,7 +3045,7 @@ public class FinCommon {
} }
/** /**
* Returns error code if loan party is not valid * Validates loan party code
* *
* @param siteCode * @param siteCode
* Site Code * Site Code
...@@ -3116,7 +3118,7 @@ public class FinCommon { ...@@ -3116,7 +3118,7 @@ public class FinCommon {
} }
/** /**
* Returns error code if tax authority is not valid * Validates Tax authority code
* *
* @param siteCode * @param siteCode
* Site Code * Site Code
...@@ -3162,7 +3164,7 @@ public class FinCommon { ...@@ -3162,7 +3164,7 @@ public class FinCommon {
} }
/** /**
* Returns error code if supplier code is not valid * Validates supplier code
* *
* @param siteCode * @param siteCode
* Site Code * Site Code
...@@ -3271,7 +3273,7 @@ public class FinCommon { ...@@ -3271,7 +3273,7 @@ public class FinCommon {
} }
/** /**
* Returns error code if employee code is not valid * Validates employee code
* *
* @param siteCode * @param siteCode
* Site Code * Site Code
...@@ -3331,7 +3333,7 @@ public class FinCommon { ...@@ -3331,7 +3333,7 @@ public class FinCommon {
} }
/** /**
* Returns error code if sales person code is not valid * Validates sales person code
* *
* @param siteCode * @param siteCode
* Site Code * Site Code
...@@ -3423,7 +3425,7 @@ public class FinCommon { ...@@ -3423,7 +3425,7 @@ public class FinCommon {
} }
/** /**
* Returns error code if account type is not valid * Validates account type
* *
* @param acctCode * @param acctCode
* Account Code * Account Code
...@@ -3512,7 +3514,7 @@ public class FinCommon { ...@@ -3512,7 +3514,7 @@ public class FinCommon {
} }
/** /**
* Returns error code if tax environment is not valid * Validates tax environment
* *
* @param taxEnv * @param taxEnv
* Tax environment * Tax environment
...@@ -3609,7 +3611,7 @@ public class FinCommon { ...@@ -3609,7 +3611,7 @@ public class FinCommon {
} }
/** /**
* Returns the cheque name of the suchdry code * Gets the cheque name
* *
* @param sundryType * @param sundryType
* Sundry type * Sundry type
...@@ -3869,7 +3871,7 @@ public class FinCommon { ...@@ -3869,7 +3871,7 @@ public class FinCommon {
} }
/** /**
* Returns the Account code and cost center code * Gets account and cost center codes
* *
* @param itemCode * @param itemCode
* Item code * Item code
...@@ -5769,7 +5771,7 @@ public class FinCommon { ...@@ -5769,7 +5771,7 @@ public class FinCommon {
} }
/** /**
* Returns the Account code and cost center code * Gets account and cost center code considering the transaction type
* *
* @param itemCode * @param itemCode
* Item code * Item code
...@@ -8140,7 +8142,7 @@ public class FinCommon { ...@@ -8140,7 +8142,7 @@ public class FinCommon {
///////////// /////////////
/** /**
* Returns error code if update fails * Inserts gltrace table
* *
* @param glTrace * @param glTrace
* HashMap with account details * HashMap with account details
...@@ -8156,7 +8158,7 @@ public class FinCommon { ...@@ -8156,7 +8158,7 @@ public class FinCommon {
} }
/** /**
* Returns error code if update fails * Inserts gltrace table or temporary gltrace_preview table
* *
* @param glTrace * @param glTrace
* HashMap with account details * HashMap with account details
...@@ -8670,6 +8672,17 @@ public class FinCommon { ...@@ -8670,6 +8672,17 @@ public class FinCommon {
} }
// Added By Dhiraj Chavan on 18-APR-2016 // Added By Dhiraj Chavan on 18-APR-2016
/**
* Validates sitespecific cost center
*
* @param siteCode
* @param cctrCode
* @param conn
* @return
* @throws ITMException
* @throws SQLException
* @throws RemoteException
*/
public String isSiteCctr(String siteCode, String cctrCode, Connection conn) throws ITMException// Added by Dhiraj public String isSiteCctr(String siteCode, String cctrCode, Connection conn) throws ITMException// Added by Dhiraj
// Chavan 18/04/16 // Chavan 18/04/16
, SQLException, RemoteException { , SQLException, RemoteException {
...@@ -8764,7 +8777,7 @@ public class FinCommon { ...@@ -8764,7 +8777,7 @@ public class FinCommon {
// nvo_business_object_fin - gbf_get_project() // nvo_business_object_fin - gbf_get_project()
/** /**
* Returns Project code from specified transaction * Gets Project code from specified transaction
* *
* @param refSer * @param refSer
* Transaction series * Transaction series
...@@ -8836,6 +8849,14 @@ public class FinCommon { ...@@ -8836,6 +8849,14 @@ public class FinCommon {
} }
// nvo_business_object_fin - gbf_get_entry_batch_no() // nvo_business_object_fin - gbf_get_entry_batch_no()
/**
* Gets entry batch number
*
* @param refSer
* @param periodCode
* @return
* @throws ITMException
*/
public String getEntryBatchNo(String refSer, String periodCode) throws ITMException// Added by Jiten public String getEntryBatchNo(String refSer, String periodCode) throws ITMException// Added by Jiten
{ {
String entryBatchNo = ""; String entryBatchNo = "";
...@@ -8867,7 +8888,7 @@ public class FinCommon { ...@@ -8867,7 +8888,7 @@ public class FinCommon {
// nvo_business_object_fin - gbf_gltran_upd() // nvo_business_object_fin - gbf_gltran_upd()
/** /**
* Returns updates gltran table * Updates gltran table
* *
* @param glTran * @param glTran
* Hashap with account details * Hashap with account details
...@@ -9459,7 +9480,7 @@ public class FinCommon { ...@@ -9459,7 +9480,7 @@ public class FinCommon {
// nvo_business_object_budget - gbf_gltrace_update_budget // nvo_business_object_budget - gbf_gltrace_update_budget
/** /**
* Returns Error code if fails * Updates budget with validation
* *
* @param tranId * @param tranId
* Transaction Id * Transaction Id
...@@ -10647,6 +10668,15 @@ public class FinCommon { ...@@ -10647,6 +10668,15 @@ public class FinCommon {
} }
// nvo_business_object_fin - gbf_check_gltran_drcr() // nvo_business_object_fin - gbf_check_gltran_drcr()
/**
* Coampares debit and credit amount in gltrace_previw
*
* @param refSer
* @param refId
* @param conn
* @return error code if not matching
* @throws ITMException
*/
public String checkGlTranDrCrPreview(String refSer, String refId, Connection conn) throws ITMException // Added by public String checkGlTranDrCrPreview(String refSer, String refId, Connection conn) throws ITMException // Added by
// Jiten // Jiten
{ {
...@@ -10797,6 +10827,13 @@ public class FinCommon { ...@@ -10797,6 +10827,13 @@ public class FinCommon {
return errString; return errString;
} }
/**
* Gets a double value with specified precision
*
* @param actVal
* @param prec
* @return
*/
public double getRequiredDecimal(double actVal, int prec) // Added by Jiten public double getRequiredDecimal(double actVal, int prec) // Added by Jiten
{ {
NumberFormat numberFormat = NumberFormat.getIntegerInstance(); NumberFormat numberFormat = NumberFormat.getIntegerInstance();
...@@ -12598,6 +12635,8 @@ public class FinCommon { ...@@ -12598,6 +12635,8 @@ public class FinCommon {
} }
/** /**
* Check period validity for date passed
*
* @param modCode * @param modCode
* @param refSer * @param refSer
* @param tranDate * @param tranDate
...@@ -12959,6 +12998,8 @@ public class FinCommon { ...@@ -12959,6 +12998,8 @@ public class FinCommon {
} }
/** /**
* Validates bank code
*
* @param siteCode * @param siteCode
* @param bankCode * @param bankCode
* @param modName * @param modName
...@@ -13068,6 +13109,8 @@ public class FinCommon { ...@@ -13068,6 +13109,8 @@ public class FinCommon {
} }
/** /**
* Validates site code
*
* @param siteCode * @param siteCode
* @param modName * @param modName
* @param con * @param con
...@@ -13114,6 +13157,8 @@ public class FinCommon { ...@@ -13114,6 +13157,8 @@ public class FinCommon {
} }
/** /**
* Validates financial entity
*
* @param finEntity * @param finEntity
* @param modName * @param modName
* @param con * @param con
...@@ -13161,6 +13206,8 @@ public class FinCommon { ...@@ -13161,6 +13206,8 @@ public class FinCommon {
} }
/** /**
* Validates customer code
*
* @param siteCode * @param siteCode
* @param custCode * @param custCode
* @param modName * @param modName
...@@ -13296,6 +13343,8 @@ public class FinCommon { ...@@ -13296,6 +13343,8 @@ public class FinCommon {
// Added by Varsha V for showing description message on 27-04-18 // Added by Varsha V for showing description message on 27-04-18
/** /**
* Gets error xml with message trace added in the trace tag
*
* @param messageValue * @param messageValue
* @param message * @param message
* @param errorId * @param errorId
...@@ -13343,6 +13392,8 @@ public class FinCommon { ...@@ -13343,6 +13392,8 @@ public class FinCommon {
// Added by Varsha V for showing description message on 30-04-18 // Added by Varsha V for showing description message on 30-04-18
/** /**
* Gets the message from an exception
*
* @param se * @param se
* @param traceInfo * @param traceInfo
* @return * @return
...@@ -13374,6 +13425,8 @@ public class FinCommon { ...@@ -13374,6 +13425,8 @@ public class FinCommon {
// Added by Anjali R. on[30/04/2018][Migrated method // Added by Anjali R. on[30/04/2018][Migrated method
// gbf_calc_discountdate][Start] // gbf_calc_discountdate][Start]
/** /**
* Gets the discount date calculated as per mater definition
*
* @param crTerm * @param crTerm
* @param tranDate * @param tranDate
* @param effDate * @param effDate
...@@ -13599,6 +13652,8 @@ public class FinCommon { ...@@ -13599,6 +13652,8 @@ public class FinCommon {
// Added by Anjali R. on[30/04/2018][Migrated method gf_bankcharges_calc][Start] // Added by Anjali R. on[30/04/2018][Migrated method gf_bankcharges_calc][Start]
/** /**
* Calculates bank charges
*
* @param bankCode * @param bankCode
* @param payMode * @param payMode
* @param date * @param date
...@@ -13738,6 +13793,8 @@ public class FinCommon { ...@@ -13738,6 +13793,8 @@ public class FinCommon {
// nvo_business_object_fin component][Start] // nvo_business_object_fin component][Start]
/** /**
* Gets the payable at
*
* @param sundryType * @param sundryType
* @param sundryCode * @param sundryCode
* @param bankCode * @param bankCode
...@@ -13902,6 +13959,8 @@ public class FinCommon { ...@@ -13902,6 +13959,8 @@ public class FinCommon {
// Added by Anjali R. on[02/05/2018][Migrated method gbf_stan_drawn from // Added by Anjali R. on[02/05/2018][Migrated method gbf_stan_drawn from
// nvo_business_object_fin component][Start] // nvo_business_object_fin component][Start]
/** /**
* Gets the station code on which the instrument is drawn
*
* @param sundryType * @param sundryType
* @param sundryCode * @param sundryCode
* @param conn * @param conn
...@@ -14066,6 +14125,8 @@ public class FinCommon { ...@@ -14066,6 +14125,8 @@ public class FinCommon {
// nvo_business_object_fin component][End] // nvo_business_object_fin component][End]
// Added by Anjali R. on[21/09/2018][Validate sundry code ][Start] // Added by Anjali R. on[21/09/2018][Validate sundry code ][Start]
/** /**
* Gets the sundry code from the applicable sundry master
*
* @param sundryCode * @param sundryCode
* @param sundryType * @param sundryType
* @param conn * @param conn
...@@ -14237,6 +14298,8 @@ public class FinCommon { ...@@ -14237,6 +14298,8 @@ public class FinCommon {
// Added by Anjali R. on[21/09/2018][Validate sundry code ][eND] // Added by Anjali R. on[21/09/2018][Validate sundry code ][eND]
// Added By PriyankaC to rounding the decimal.[Start] // Added By PriyankaC to rounding the decimal.[Start]
/** /**
* Gets rounded bigdecimal
*
* @param aNumber * @param aNumber
* @param prec * @param prec
* @return * @return
...@@ -14249,6 +14312,7 @@ public class FinCommon { ...@@ -14249,6 +14312,7 @@ public class FinCommon {
// Added by Varsha V on 06-12-18 getAcctDetrtType with site code // Added by Varsha V on 06-12-18 getAcctDetrtType with site code
/** /**
* Gets account and cost center code
* @param itemCode * @param itemCode
* @param itemSer * @param itemSer
* @param purpose * @param purpose
...@@ -14598,6 +14662,8 @@ public class FinCommon { ...@@ -14598,6 +14662,8 @@ public class FinCommon {
// Ended by Varsha V on 06-12-18 getAcctDetrtType with site code // Ended by Varsha V on 06-12-18 getAcctDetrtType with site code
// function change by pravin -- fi1fsun001 -- 01/05/12 // function change by pravin -- fi1fsun001 -- 01/05/12
/** /**
* Calculates the due date
*
* @param crTerm * @param crTerm
* @param tranDate * @param tranDate
* @param effDate * @param effDate
...@@ -14769,6 +14835,8 @@ public class FinCommon { ...@@ -14769,6 +14835,8 @@ public class FinCommon {
} }
/** /**
* calculates the due date considering holidays
*
* @param crTerm * @param crTerm
* @param adDueDate * @param adDueDate
* @param siteCode * @param siteCode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment