class ManterItemRmpsRN extends BaseBusiness {

	public void rnIpspVerRmrEfet(final Integer newIrrRmrSeq) throws ApplicationBusinessException {
		SceReqMaterialRetornos reqMaterialRetorno = null;
		if (newIrrRmrSeq != null) {
			reqMaterialRetorno = getEstoqueFacade().obterSceReqMaterialRetornosPorChavePrimaria(newIrrRmrSeq);
		}
		
		if (reqMaterialRetorno == null) {
			throw new ApplicationBusinessException(ManterItemRmpsRNExceptionCode.SCE_00149);
		}
		
		if (reqMaterialRetorno.getIndSituacao().equals("E") || reqMaterialRetorno.getIndSituacao().equals("A")) {
			// TODO refatorar quando criar o domínio no POJO
			throw new ApplicationBusinessException(ManterItemRmpsRNExceptionCode.SCE_00587);
		}
	}

}