@Override public List<WorkOrder> searchWOForMB(final Map<String,Object> criteriaMap){
  logger.info("---------------------------Inside searchWOForMB----------------------------");
  final List<WorkOrder> filteredList=new ArrayList<WorkOrder>();
  criteriaMap.put(ACTION_FLAG,"searchWOForMB");
  for (  final WorkOrder workorder : searchWO(criteriaMap))   if (!isApprovalLimitReachedForWO(workorder.getId()))   filteredList.add(workorder);
  return filteredList;
}

@ Override public List < WorkOrder > searchWOForMB ( final Map < String , Object > criteriaMap ) { logger . info ( "---------------------------Inside searchWOForMB----------------------------" ) ; final List < WorkOrder > filteredList = new ArrayList < WorkOrder > ( ) ; criteriaMap . put ( ACTION_FLAG , "searchWOForMB" ) ; for ( final WorkOrder workorder : searchWO ( criteriaMap ) ) if ( ! isApprovalLimitReachedForWO ( workorder . getId ( ) ) ) filteredList . add ( workorder ) ; return filteredList ; }
this method will search list of wo ' s for the given criteria and eligible for mb . criteriamap will have : contractor_id , create_date , tender_no , workorder_no filter : 1 ) isapprovallimitreachedforwo 2 ) ismbcreatedandpendingforwo 3 ) isfinalbillapprovedforwo
