@Action(value="/receipts/challan-newform") @ValidationErrorPage(value=ERROR) @SkipValidation public String newform(){
  setLoginDept();
  SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yyyy");
  try {
    cutOffDate=sdf.parse(collectionsUtil.getAppConfigValue(CollectionConstants.MODULE_NAME_COLLECTIONS_CONFIG,CollectionConstants.APPCONFIG_VALUE_COLLECTIONDATAENTRYCUTOFFDATE));
  }
 catch (  ParseException e) {
    LOGGER.error(getText("Error parsing Cut Off Date") + e.getMessage());
  }
  return NEW;
}

@ Action ( value = "/receipts/challan-newform" ) @ ValidationErrorPage ( value = ERROR ) @ SkipValidation public String newform ( ) { setLoginDept ( ) ; SimpleDateFormat sdf = new SimpleDateFormat ( "dd/MM/yyyy" ) ; try { cutOffDate = sdf . parse ( collectionsUtil . getAppConfigValue ( CollectionConstants . MODULE_NAME_COLLECTIONS_CONFIG , CollectionConstants . APPCONFIG_VALUE_COLLECTIONDATAENTRYCUTOFFDATE ) ) ; } catch ( ParseException e ) { LOGGER . error ( getText ( "Error parsing Cut Off Date" ) + e . getMessage ( ) ) ; } return NEW ; }
this method is invoked when the user clicks on create challan from menu tree
