fixes bug#7578
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@57718 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
9de014d259
commit
000b44f306
|
@ -502,7 +502,7 @@ public class ModificacionMasivaTarifasUploadController extends MyGenericForwardC
|
||||||
}
|
}
|
||||||
|
|
||||||
if (componentePreco.equals(EnumTarifaPedagio.PEDAGIO.getDescricao()) ||
|
if (componentePreco.equals(EnumTarifaPedagio.PEDAGIO.getDescricao()) ||
|
||||||
(componentePreco.equals(EnumTarifaPedagio.TODOS.getDescricao()) && row.getCell(CELL_NOVO_PRECIO) != null)) {
|
(componentePreco.equals(EnumTarifaPedagio.TODOS.getDescricao()) && row.getCell(CELL_NOVO_PEAJE) != null)) {
|
||||||
cellNovoPrecio = row.getCell(CELL_NOVO_PEAJE);
|
cellNovoPrecio = row.getCell(CELL_NOVO_PEAJE);
|
||||||
BigDecimal novoPrecio = new BigDecimal(cellNovoPrecio.getNumericCellValue());
|
BigDecimal novoPrecio = new BigDecimal(cellNovoPrecio.getNumericCellValue());
|
||||||
novoPrecio = novoPrecio.setScale(2, RoundingMode.HALF_UP);
|
novoPrecio = novoPrecio.setScale(2, RoundingMode.HALF_UP);
|
||||||
|
@ -511,7 +511,7 @@ public class ModificacionMasivaTarifasUploadController extends MyGenericForwardC
|
||||||
}
|
}
|
||||||
|
|
||||||
if (componentePreco.equals(EnumTarifaPedagio.TX_EMBARQUE.getDescricao()) ||
|
if (componentePreco.equals(EnumTarifaPedagio.TX_EMBARQUE.getDescricao()) ||
|
||||||
(componentePreco.equals(EnumTarifaPedagio.TODOS.getDescricao()) && row.getCell(CELL_NOVO_PRECIO) != null)) {
|
(componentePreco.equals(EnumTarifaPedagio.TODOS.getDescricao()) && row.getCell(CELL_NOVO_TX_EMBARQUE) != null)) {
|
||||||
cellNovoPrecio = row.getCell(CELL_NOVO_TX_EMBARQUE);
|
cellNovoPrecio = row.getCell(CELL_NOVO_TX_EMBARQUE);
|
||||||
BigDecimal novoPrecio = new BigDecimal(cellNovoPrecio.getNumericCellValue());
|
BigDecimal novoPrecio = new BigDecimal(cellNovoPrecio.getNumericCellValue());
|
||||||
novoPrecio = novoPrecio.setScale(2, RoundingMode.HALF_UP);
|
novoPrecio = novoPrecio.setScale(2, RoundingMode.HALF_UP);
|
||||||
|
@ -520,7 +520,7 @@ public class ModificacionMasivaTarifasUploadController extends MyGenericForwardC
|
||||||
}
|
}
|
||||||
|
|
||||||
if (componentePreco.equals(EnumTarifaPedagio.SEGURO.getDescricao()) ||
|
if (componentePreco.equals(EnumTarifaPedagio.SEGURO.getDescricao()) ||
|
||||||
(componentePreco.equals(EnumTarifaPedagio.TODOS.getDescricao()) && row.getCell(CELL_NOVO_PRECIO) != null)) {
|
(componentePreco.equals(EnumTarifaPedagio.TODOS.getDescricao()) && row.getCell(CELL_NOVO_SEGURO) != null)) {
|
||||||
cellNovoPrecio = row.getCell(CELL_NOVO_SEGURO);
|
cellNovoPrecio = row.getCell(CELL_NOVO_SEGURO);
|
||||||
BigDecimal novoPrecio = new BigDecimal(cellNovoPrecio.getNumericCellValue());
|
BigDecimal novoPrecio = new BigDecimal(cellNovoPrecio.getNumericCellValue());
|
||||||
novoPrecio = novoPrecio.setScale(2, RoundingMode.HALF_UP);
|
novoPrecio = novoPrecio.setScale(2, RoundingMode.HALF_UP);
|
||||||
|
|
Loading…
Reference in New Issue