class GerarXmlEnvioContratoON extends BaseBusiness {

	protected void setAquisicaoOrigemManual(List<ScoItensContrato> itensContratosList, Cnet cnet) {

		boolean material = false;
		boolean servico = false;

		for (ScoItensContrato itemContrato : itensContratosList) {

			if (itemContrato.getMaterial() != null) {
				material = true;
			} else {
				if (itemContrato.getServico() != null) {
					servico = true;
				}
			}
		}

		if (material && servico) {
			cnet.setAquisicao(new ObjectFactory().createCnetAquisicao("MS"));

		} else {

			if (material) {
				cnet.setAquisicao(new ObjectFactory().createCnetAquisicao("M"));
			} else {
				if (servico) {
					cnet.setAquisicao(new ObjectFactory().createCnetAquisicao("S"));
				}
			}
		}

	}

}