mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-01-24 01:30:21 +00:00
modificado iva dependiendo de si es reducido o no y del lugar de la entrega
This commit is contained in:
@ -105,6 +105,20 @@ public class Presupuesto extends AbstractAuditedEntity implements Cloneable {
|
||||
}
|
||||
}
|
||||
|
||||
public enum Entrega{
|
||||
peninsula("presupuesto.entrega.peninsula"),
|
||||
canarias("presupuesto.entrega.canarias"),
|
||||
paises_ue("presupuesto.entrega.paises-ue");
|
||||
|
||||
private final String messageKey;
|
||||
Entrega(String messageKey) {
|
||||
this.messageKey = messageKey;
|
||||
}
|
||||
public String getMessageKey() {
|
||||
return messageKey;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Presupuesto clone() {
|
||||
try {
|
||||
@ -165,11 +179,18 @@ public class Presupuesto extends AbstractAuditedEntity implements Cloneable {
|
||||
@Column(name = "base_imponible", precision = 12, scale = 2)
|
||||
private BigDecimal baseImponible;
|
||||
|
||||
@Column(name = "iva_tipo", precision = 5, scale = 2)
|
||||
private BigDecimal ivaTipo;
|
||||
@Column(name = "iva_reducido")
|
||||
private Boolean ivaReducido;
|
||||
|
||||
@Column(name = "iva_importe", precision = 12, scale = 2)
|
||||
private BigDecimal ivaImporte;
|
||||
@Column(name = "entrega_tipo")
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Entrega entregaTipo;
|
||||
|
||||
@Column(name = "iva_importe_4", precision = 12, scale = 2)
|
||||
private BigDecimal ivaImporte4;
|
||||
|
||||
@Column(name = "iva_importe_21", precision = 12, scale = 2)
|
||||
private BigDecimal ivaImporte21;
|
||||
|
||||
@Column(name = "total_con_iva", precision = 12, scale = 2)
|
||||
private BigDecimal totalConIva;
|
||||
@ -481,20 +502,36 @@ public class Presupuesto extends AbstractAuditedEntity implements Cloneable {
|
||||
this.baseImponible = baseImponible;
|
||||
}
|
||||
|
||||
public BigDecimal getIvaTipo() {
|
||||
return ivaTipo;
|
||||
public Boolean getIvaReducido() {
|
||||
return ivaReducido;
|
||||
}
|
||||
|
||||
public void setIvaTipo(BigDecimal ivaTipo) {
|
||||
this.ivaTipo = ivaTipo;
|
||||
public void setIvaReducido(Boolean ivaReducido) {
|
||||
this.ivaReducido = ivaReducido;
|
||||
}
|
||||
|
||||
public BigDecimal getIvaImporte() {
|
||||
return ivaImporte;
|
||||
public Entrega getEntregaTipo() {
|
||||
return entregaTipo;
|
||||
}
|
||||
|
||||
public void setIvaImporte(BigDecimal ivaImporte) {
|
||||
this.ivaImporte = ivaImporte;
|
||||
public void setEntregaTipo(Entrega entregaTipo) {
|
||||
this.entregaTipo = entregaTipo;
|
||||
}
|
||||
|
||||
public BigDecimal getIvaImporte4() {
|
||||
return ivaImporte4;
|
||||
}
|
||||
|
||||
public void setIvaImporte4(BigDecimal ivaImporte4) {
|
||||
this.ivaImporte4 = ivaImporte4;
|
||||
}
|
||||
|
||||
public BigDecimal getIvaImporte21() {
|
||||
return ivaImporte21;
|
||||
}
|
||||
|
||||
public void setIvaImporte21(BigDecimal ivaImporte21) {
|
||||
this.ivaImporte21 = ivaImporte21;
|
||||
}
|
||||
|
||||
public BigDecimal getTotalConIva() {
|
||||
@ -881,7 +918,4 @@ public class Presupuesto extends AbstractAuditedEntity implements Cloneable {
|
||||
public void setId(Long id){
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user