From 98d2a5c9f5bd5414277701104c68f2771532307d Mon Sep 17 00:00:00 2001 From: frederico Date: Mon, 14 Jan 2019 16:47:27 +0000 Subject: [PATCH] fixed bug#13108 qua:Renato dev:Valdir git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@88826 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/entidad/PtoVtaSeguro.java | 38 ++++++++++++++++++- .../ventaboletos/entidad/PuntoVenta.java | 21 +++------- 2 files changed, 42 insertions(+), 17 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/entidad/PtoVtaSeguro.java b/src/com/rjconsultores/ventaboletos/entidad/PtoVtaSeguro.java index 0ad114a10..3473fb961 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/PtoVtaSeguro.java +++ b/src/com/rjconsultores/ventaboletos/entidad/PtoVtaSeguro.java @@ -88,6 +88,19 @@ public class PtoVtaSeguro implements Serializable { @Column(name = "INDPERMISOTASAEMBARQVTAAGEN") private Boolean indPermisoTasaEmbarqVtaAgen; + @Basic(optional = false) + @Column(name = "INDVENDESEGUROOPCEMBARCADA") + private Boolean indVendeSeguroOpcEmbarcada; + + @Basic(optional = false) + @Column(name = "INDVENDESEGUROTABELAEMBARCADA") + private Boolean indVendeSeguroTabelaEmbarcada; + + @Basic(optional = false) + @Column(name = "INDTAXAEMBARQUEEMBARCADA") + private Boolean indTaxaEmbarqueEmbarcada; + + public PtoVtaSeguro() { } @@ -230,5 +243,28 @@ public class PtoVtaSeguro implements Serializable { public void setIndPermisoTasaEmbarqueVtaAgencia(Boolean indPermisoTasaEmbarqVtaAgen) { this.indPermisoTasaEmbarqVtaAgen = indPermisoTasaEmbarqVtaAgen; } - + + public Boolean getIndVendeSeguroOpcEmbarcada() { + return indVendeSeguroOpcEmbarcada; + } + + public void setIndVendeSeguroOpcEmbarcada(Boolean indVendeSeguroOpcEmbarcada) { + this.indVendeSeguroOpcEmbarcada = indVendeSeguroOpcEmbarcada; + } + + public Boolean getIndVendeSeguroTabelaEmbarcada() { + return indVendeSeguroTabelaEmbarcada; + } + + public void setIndVendeSeguroTabelaEmbarcada(Boolean indVendeSeguroTabelaEmbarcada) { + this.indVendeSeguroTabelaEmbarcada = indVendeSeguroTabelaEmbarcada; + } + + public Boolean getIndTaxaEmbarqueEmbarcada() { + return indTaxaEmbarqueEmbarcada; + } + + public void setIndTaxaEmbarqueEmbarcada(Boolean indTaxaEmbarqueEmbarcada) { + this.indTaxaEmbarqueEmbarcada = indTaxaEmbarqueEmbarcada; + } } diff --git a/src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java b/src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java index 20b73acde..f39acc57f 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java +++ b/src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java @@ -801,22 +801,11 @@ public class PuntoVenta implements Serializable { } public PtoVtaSeguro addPtovtaSeguro(PtoVtaSeguro pto) { - PtoVtaSeguro pt = new PtoVtaSeguro(); - pt.setPuntoventaId(pto.getPuntoventaId()); - pt.setEmpresa(pto.getEmpresa()); - pt.setIndVendeSegOpcional(pto.getIndVendeSegOpcional()); - pt.setIndEstanSegOpcional(pto.getIndEstanSegOpcional()); - pt.setIndVendeSegTabela(pto.getIndVendeSegTabela()); - pt.setIndEstanSegTabela(pto.getIndEstanSegTabela()); - pt.setIndEstanTasaEmbarque(pto.getIndEstanTasaEmbarque()); - pt.setIndPermisoTasaEmbarque(pto.getIndPermisoTasaEmbarque()); - pt.setIndPermisoTasaEmbarqueVtaManual(pto.getIndPermisoTasaEmbarqueVtaManual()); - pt.setIndPermisoTasaEmbarqueVtaAgencia(pto.getIndPermisoTasaEmbarqueVtaAgencia()); - pt.setActivo(Boolean.TRUE); - pt.setFecmodif(Calendar.getInstance().getTime()); - pt.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); - this.ptovtaSeguroList.add(pt); - return pt; + pto.setActivo(Boolean.TRUE); + pto.setFecmodif(Calendar.getInstance().getTime()); + pto.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); + this.ptovtaSeguroList.add(pto); + return pto; } public void removePtovtaSeguro(PtoVtaSeguro pto) {