fixes bug#16832
dev: Daniel qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@98494 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
3f9e4973f4
commit
b4f11e0dd2
|
@ -50,6 +50,8 @@ import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.enuns.AceiteBB;
|
import com.rjconsultores.ventaboletos.enuns.AceiteBB;
|
||||||
import com.rjconsultores.ventaboletos.enuns.BancoLayout;
|
import com.rjconsultores.ventaboletos.enuns.BancoLayout;
|
||||||
import com.rjconsultores.ventaboletos.enuns.TipoInscricaoPagador;
|
import com.rjconsultores.ventaboletos.enuns.TipoInscricaoPagador;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||||
|
|
||||||
@Repository("remessaCNABBancosDAO")
|
@Repository("remessaCNABBancosDAO")
|
||||||
@SuppressWarnings({"unchecked", "deprecation"})
|
@SuppressWarnings({"unchecked", "deprecation"})
|
||||||
|
@ -125,6 +127,8 @@ public class RemessaCNABBancosHibernateDAO extends GenericHibernateDAO<Fechament
|
||||||
ArquivoRemessaItem arquivoRemessaItem = null;
|
ArquivoRemessaItem arquivoRemessaItem = null;
|
||||||
CabecalhoRemessaBradesco cabecalhoRemessaBradesco = null;
|
CabecalhoRemessaBradesco cabecalhoRemessaBradesco = null;
|
||||||
|
|
||||||
|
boolean constanteValidacao = ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_VALIDAR_CONSTANTE_REMESSA.getDescricao());
|
||||||
|
|
||||||
for(Object[] tupla : list){
|
for(Object[] tupla : list){
|
||||||
|
|
||||||
Integer idRemessa = Integer.valueOf(tupla[1].toString());
|
Integer idRemessa = Integer.valueOf(tupla[1].toString());
|
||||||
|
@ -180,10 +184,17 @@ public class RemessaCNABBancosHibernateDAO extends GenericHibernateDAO<Fechament
|
||||||
detalhe.setNumeroDoDocumento(StringUtils.right(doc[0], 10));
|
detalhe.setNumeroDoDocumento(StringUtils.right(doc[0], 10));
|
||||||
detalhe.setVencimento((Date) tupla[9]);
|
detalhe.setVencimento((Date) tupla[9]);
|
||||||
detalhe.setValor(new BigDecimal(tupla[10].toString().replaceAll(",", ".")));
|
detalhe.setValor(new BigDecimal(tupla[10].toString().replaceAll(",", ".")));
|
||||||
detalhe.setEspecieDeTitulo(tupla[11].toString());
|
|
||||||
detalhe.setEmissao((Date) tupla[12]);
|
detalhe.setEmissao((Date) tupla[12]);
|
||||||
|
|
||||||
|
if (!constanteValidacao) {
|
||||||
|
detalhe.setEspecieDeTitulo("01");
|
||||||
|
detalhe.setInstrucao1("00");
|
||||||
|
detalhe.setInstrucao2("00");
|
||||||
|
}else {
|
||||||
|
detalhe.setEspecieDeTitulo(tupla[11].toString());
|
||||||
detalhe.setInstrucao1(tupla[13].toString());
|
detalhe.setInstrucao1(tupla[13].toString());
|
||||||
detalhe.setInstrucao2(tupla[14].toString());
|
detalhe.setInstrucao2(tupla[14].toString());
|
||||||
|
}
|
||||||
|
|
||||||
try{
|
try{
|
||||||
detalhe.setValorAtraso(new BigDecimal(tupla[15].toString().replaceAll(",", ".")));
|
detalhe.setValorAtraso(new BigDecimal(tupla[15].toString().replaceAll(",", ".")));
|
||||||
|
|
|
@ -143,7 +143,9 @@ public enum CustomEnum {
|
||||||
*/
|
*/
|
||||||
IS_TAXA_EMBARQUE_IMPRESSA_QRCODE("isTxEmbarqueImpressaEmQrcode"),
|
IS_TAXA_EMBARQUE_IMPRESSA_QRCODE("isTxEmbarqueImpressaEmQrcode"),
|
||||||
|
|
||||||
IS_DESCONSIDERA_CLIENTE_NA_BASE("isDesconsideraClienteNaBase");
|
IS_DESCONSIDERA_CLIENTE_NA_BASE("isDesconsideraClienteNaBase"),
|
||||||
|
|
||||||
|
IS_VALIDAR_CONSTANTE_REMESSA("isValidarConstanteRemessa");
|
||||||
|
|
||||||
|
|
||||||
private String descricao;
|
private String descricao;
|
||||||
|
|
Loading…
Reference in New Issue