fixes bug#AL-4905
parent
20777489a7
commit
30dca49f11
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ventaboletosadm</artifactId>
|
||||
<version>1.152.2</version>
|
||||
<version>1.152.3</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
|
|
|
@ -605,7 +605,9 @@ public class EditarPricingController extends PricingController {
|
|||
if (pricing.getIndreservable() == Boolean.FALSE) {
|
||||
rdReserNo.setChecked(true);
|
||||
}
|
||||
if (pricing.getDescuentoporcentaje() != null) {
|
||||
Boolean isDescPorcentagem = isDescPorcentagem();
|
||||
|
||||
if (isDescPorcentagem) {
|
||||
radioPor.setChecked(true);
|
||||
}
|
||||
|
||||
|
@ -618,7 +620,7 @@ public class EditarPricingController extends PricingController {
|
|||
chkIndSafer.setChecked(pricing.getIndSafer());
|
||||
}
|
||||
|
||||
if (lsPricingImporte.size() > 0) {
|
||||
if (!isDescPorcentagem) {
|
||||
radioImp.setChecked(true);
|
||||
onClick$radioImp(null);
|
||||
} else {
|
||||
|
@ -736,6 +738,11 @@ public class EditarPricingController extends PricingController {
|
|||
}
|
||||
}
|
||||
|
||||
private boolean isDescPorcentagem() {
|
||||
return (pricing.getDescuentoporcentaje() != null || pricing.getDescuentoporcredondo() != null)
|
||||
&& (lsPricingImporte == null || lsPricingImporte.isEmpty() || lsPricingImporte.size() < 0);
|
||||
}
|
||||
|
||||
private void incluirCategoria(Categoria categoria) {
|
||||
if (categoria != null && verificarCategoriaNaoAdicionada(categoria)) {
|
||||
PricingCategoria pc = new PricingCategoria();
|
||||
|
|
Loading…
Reference in New Issue