class ItemDevolucaoAlmoxarifadoRN extends BaseBusiness {

	public void verificarEstornoDevolucao(SceItemDas itemDa) throws ApplicationBusinessException {
		if (itemDa == null) {
			throw new IllegalArgumentException(MSG_ITEM_DA_NAO_INFORMADO);
		}
		SceDevolucaoAlmoxarifado devolucaoAlmoxarifado = 
				getSceDevolucaoAlmoxarifadoDAO().obterDevolucaoAlmoxarifadoEstorno(
						itemDa.getDevolucaoAlmoxarifado().getSeq());
		
		if (devolucaoAlmoxarifado != null) {
			throw new ApplicationBusinessException(ItemDevolucaoAlmoxarifadoRNExceptionCode.SCE_00573);
		}
	}

}