* @param indId int individual id
* @return boolean status of operation
*/
public boolean addGLAccounts(ArrayList PVOs, int indId)
{
GLAccountVO avo = null;
AccountHelperLocal helperL = null;
try
{
InitialContext ic = CVUtility.getInitialContext();
AccountHelperLocalHome home = (AccountHelperLocalHome ) ic.lookup("local/AccountHelper");
helperL = home.create();
int size = PVOs.size();
int cvid = 0;
for ( int i=0;i<size;i++)
{
avo = (GLAccountVO)PVOs.get(i);
cvid = this.getCVidForExtid("GLAccount",avo.getExternalID());
if (cvid == 0){
helperL.addGLAccount(avo);
}
logger.info("Added " + avo.getTitle() + " glaccount record");
}
}catch(Exception e)
{
logger.debug("Error in adding GLAccounts : "+e);
e.printStackTrace();