Fixes Bug #0009192
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@71432 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
9ce047a294
commit
2381fc9296
|
@ -264,9 +264,13 @@ public class EditarSeguroKmController extends MyGenericForwardComposer {
|
||||||
//ChecandoDuplicado
|
//ChecandoDuplicado
|
||||||
boolean existe = false;
|
boolean existe = false;
|
||||||
for (SeguroKm km : lsSeguroKm) {
|
for (SeguroKm km : lsSeguroKm) {
|
||||||
if ((txtKm.isVisible() && km.getKmate().equals(txtKm.getValue())) || (txtKmSemTpp.isVisible() && km.getKmate().equals(txtKmSemTpp.getValue()))) {
|
if (txtKm.isVisible() && km.getKmate().equals(txtKm.getValue()) && km.getTipoSeguro().equals(TipoSeguro.SEGURO)) {
|
||||||
existe = true;
|
existe = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (txtKmSemTpp.isVisible() && km.getKmate().equals(txtKmSemTpp.getValue()) && km.getTipoSeguro().equals(cmbTipoSeguro.getValue())) {
|
||||||
|
existe = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (existe) {
|
if (existe) {
|
||||||
|
|
Loading…
Reference in New Issue