diff --git a/src/com/rjconsultores/ventaboletos/entidad/FormaPago.java b/src/com/rjconsultores/ventaboletos/entidad/FormaPago.java index c2506ff2c..2c64ad4b3 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/FormaPago.java +++ b/src/com/rjconsultores/ventaboletos/entidad/FormaPago.java @@ -26,7 +26,7 @@ import javax.persistence.TemporalType; import com.rjconsultores.ventaboletos.enums.TipoFormapago; /** - * + * * @author Administrador */ @Entity @@ -35,7 +35,7 @@ import com.rjconsultores.ventaboletos.enums.TipoFormapago; public class FormaPago implements Serializable { private static final long serialVersionUID = 1L; - + @Id @Basic(optional = false) @GeneratedValue(strategy = GenerationType.AUTO, generator = "FORMA_PAGO_SEQ") @@ -69,6 +69,8 @@ public class FormaPago implements Serializable { private TipoFormapago tipoFormapago; @Column(name = "CVESISTEMA") private String cveSistema; + @Column(name = "INDRESTRICAOFORMAPAGO") + private String indRestricaoFormaPago; public FormaPago() { super(); @@ -78,7 +80,7 @@ public class FormaPago implements Serializable { this(); this.formapagoId = formapagoId; } - + public FormaPago(Short formapagoId, String descpago) { this(); this.formapagoId = formapagoId; @@ -238,4 +240,18 @@ public class FormaPago implements Serializable { public void setCveSistema(String cveSistema) { this.cveSistema = cveSistema; } + + /** + * @return the indRestricaoFormaPago + */ + public String getIndRestricaoFormaPago() { + return indRestricaoFormaPago; + } + + /** + * @param indRestricaoFormaPago the indRestricaoFormaPago to set + */ + public void setIndRestricaoFormaPago(String indRestricaoFormaPago) { + this.indRestricaoFormaPago = indRestricaoFormaPago; + } } diff --git a/src/com/rjconsultores/ventaboletos/enums/IndRestricaoFormaPago.java b/src/com/rjconsultores/ventaboletos/enums/IndRestricaoFormaPago.java new file mode 100644 index 000000000..b7a7806cf --- /dev/null +++ b/src/com/rjconsultores/ventaboletos/enums/IndRestricaoFormaPago.java @@ -0,0 +1,33 @@ +/** + * + */ +package com.rjconsultores.ventaboletos.enums; + +/** + * @author Thiago + * + */ +public enum IndRestricaoFormaPago { + + NORMAL("NO"), + TARIFA_E_TAXAS("TT"), + SOMENTE_TARIFA("ST"); + + String sigla; + + IndRestricaoFormaPago(String sigla) { + this.sigla = sigla; + } + + public String getSigla() { + return sigla; + } + + @Override + public String toString() { + return sigla; + } + + +} +