Merge pull request 'bug#AL-2574' (!64) from AL-2574 into master

Reviewed-on: adm/ModelWeb#64
Reviewed-by: Célio de Souza Ribeiro JR <celio@rjconsultores.com.br>
master
Célio de Souza Ribeiro JR 2023-06-16 13:17:16 +00:00
commit 8daf32565c
4 changed files with 25 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId> <groupId>br.com.rjconsultores</groupId>
<artifactId>ModelWeb</artifactId> <artifactId>ModelWeb</artifactId>
<version>1.5.3</version> <version>1.5.4</version>
<distributionManagement> <distributionManagement>
<repository> <repository>
<id>rj-releases</id> <id>rj-releases</id>

View File

@ -21,6 +21,7 @@ public enum TipoEventoExtra {
TAXA_CONVENIENCIA_SVI("TAXA_CONVENIENCIA_SVI"), TAXA_CONVENIENCIA_SVI("TAXA_CONVENIENCIA_SVI"),
TARIFA_SAFER("TARIFA_SAFER"), TARIFA_SAFER("TARIFA_SAFER"),
JUROS_CARTAO_CREDITO("JUROS_CARTAO_CREDITO"), JUROS_CARTAO_CREDITO("JUROS_CARTAO_CREDITO"),
EMBARQUE_JA("EMBARQUE_JA"),
; ;
private String descricao; private String descricao;

View File

@ -120,6 +120,12 @@ public class FormaPago implements Serializable, Auditavel<FormaPago> {
@Column(name = "TIPOEVENTOEXTRA_ID") @Column(name = "TIPOEVENTOEXTRA_ID")
private Long tipoEventoExtraId; private Long tipoEventoExtraId;
@Column(name = "INDESTORNO_RECEITA_DESPESA_CR")
private Boolean indEstornoReceitaDespesaCredito;
@Column(name = "TIPOEVENTOEXTRACREDITO_ID")
private Long tipoEventoExtraIdCredito;
@Transient @Transient
@NaoAuditar @NaoAuditar
private FormaPago formaPagoClone; private FormaPago formaPagoClone;
@ -385,6 +391,22 @@ public class FormaPago implements Serializable, Auditavel<FormaPago> {
this.percentualDesconto = percentualDesconto; this.percentualDesconto = percentualDesconto;
} }
public Boolean getIndEstornoReceitaDespesaCredito() {
return indEstornoReceitaDespesaCredito == null ? false : indEstornoReceitaDespesaCredito;
}
public void setIndEstornoReceitaDespesaCredito(Boolean indEstornoReceitaDespesaCredito) {
this.indEstornoReceitaDespesaCredito = indEstornoReceitaDespesaCredito;
}
public Long getTipoEventoExtraIdCredito() {
return tipoEventoExtraIdCredito;
}
public void setTipoEventoExtraIdCredito(Long tipoEventoExtraIdCredito) {
this.tipoEventoExtraIdCredito = tipoEventoExtraIdCredito;
}
@Override @Override
public FormaPago getCloneObject() throws CloneNotSupportedException { public FormaPago getCloneObject() throws CloneNotSupportedException {
return formaPagoClone; return formaPagoClone;

View File

@ -23,6 +23,7 @@ public enum TipoFormapago {
MOBIPIX(16,Labels.getLabel("editarFormaPagoController.lblMobiPix.label")), MOBIPIX(16,Labels.getLabel("editarFormaPagoController.lblMobiPix.label")),
ADYEN(17,Labels.getLabel("editarFormaPagoController.lblAdyen.label")), ADYEN(17,Labels.getLabel("editarFormaPagoController.lblAdyen.label")),
MERCADO_PAGO(18,Labels.getLabel("editarFormaPagoController.lblMercadoPago.label")), MERCADO_PAGO(18,Labels.getLabel("editarFormaPagoController.lblMercadoPago.label")),
EMBARQUE_JA(19,Labels.getLabel("editarFormaPagoController.lblEmbarqueJa.label")),
; ;
private Integer valor; private Integer valor;