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) {