class ChartOfAccountService {

	@Transactional
	public List<ChartOfAccount> update(List<ChartOfAccount> chartofaccounts, BindingResult errors) {
		chartofaccounts = fetchRelated(chartofaccounts);
		validate(chartofaccounts, Constants.ACTION_UPDATE, errors);
		if (errors.hasErrors()) {
			throw new CustomBindException(errors);
		}
		return chartofaccounts;

	}

}